/* Surfaces et hero existants, figés hors du nouveau système de cadres. */
:root{--hero-existing-frame:on}
:root{--hero-existing-frame: on; --frame-corner-len: 24px; --frame-corner-w: 3px; --frame-corner-color: #4F7D93; --frame-dot-color: rgba(106,151,173,.35); --frame-dot-gap: 20px; --frame-margin-y: clamp(10px,2vh,22px); --frame-padding-y: clamp(16px,3vh,40px); --frame-padding-x: clamp(20px,3vw,48px); --site-ground: #040F20; --block-background: rgba(25,50,82,.18);}
body{background: var(--site-ground);}
body::before{content: none;}
@media (min-width: 768px) {#qui-sommes-nous.about-with-flow > .about-bento{width: min(100% - 48px, 1200px); height: calc(var(--screen-h) - 2*var(--frame-margin-y)); padding: var(--frame-padding-y) var(--frame-padding-x); grid-template-rows: auto minmax(0px, 1fr) auto; gap: clamp(10px, 1.5vh, 20px);}
#chiffres{min-height: 0px; height: auto;}}
#debouches .outcome-root::after, #debouches .outcome-branches::before, #debouches .outcome-branches button::before{content: none;}
 #pourquoi-echanger h2 .heading-emphasis{color: rgb(247, 244, 238);}
#chiffres .stats strong, #chiffres .stats p, #debouches .section-footnote{color: rgb(247, 244, 238);}
#debouches .section-relay .button-secondary{color: rgb(247, 244, 238); border-color: rgb(247, 244, 238);}
.journey-card, .bento-card, .scope-column, .step-card, .benefit, .form-card, #debouches .outcome, .outcome-branches button, .flow-diagram, .flow-center, .flow-partner, .exclusion-chips span{background: var(--block-background); color: rgb(247, 244, 238);}
html.js .outcomes.is-diagram .outcome{background: var(--block-background); color: rgb(247, 244, 238);}
.scope-column h3, .scope-yes h3{background: transparent; color: rgb(247, 244, 238);}
.journey-tabs button, .step-rail [role="tab"], .outcome-root, .outcome-branches button{color: rgb(247, 244, 238);}
.journey-tabs button[aria-selected="true"], .step-rail [aria-selected="true"] .rail-number, .step-card .step-number, .outcome-branches button[aria-selected="true"], .outcome-root{color: rgb(247, 244, 238);}
.rail-number, .step-card .step-number{background: var(--block-background);}
.journey-panel p, .journey-panel h2, .about-text-row p, .about-text-row h3, .step-card .step-body, .benefit p, .benefit h3, .flow-partner-content > span, .flow-center, .flow-partner{color: rgb(247, 244, 238);}
.flow-center{border-color: rgba(247, 244, 238, 0.4);}
.field input:not([type="checkbox"]), .field textarea, .faq-filter input{background: var(--block-background); color: rgb(247, 244, 238);}
input::placeholder, textarea::placeholder{color: rgba(247, 244, 238, 0.75);}
.field .optional, .email-alternative p, .form-card .error, .form-card .form-status{color: rgb(247, 244, 238);}
.flow-icon{color: rgb(106, 151, 173);}
main > .site-footer{background: var(--site-ground); border: 0px; margin: 0px; padding: 0px;}
main > .site-footer > .footer-inner{width: min(100% - 48px, 1200px); margin-inline: auto; padding: 8px 24px 0px;}
@media (min-width: 768px) and (max-height: 800px) {:root{--frame-padding-y: 12px; --frame-padding-x: 20px;}
#qui-sommes-nous.about-with-flow > .about-bento{gap: 10px;}}
@media (max-width: 767px) {:root{--frame-corner-len: 16px; --frame-corner-w: 2.5px; --frame-padding-y: 12px; --frame-padding-x: 12px;}
#qui-sommes-nous, #perimetre, #contact{display: block; min-height: 0px; padding: 0px;}
#qui-sommes-nous.about-with-flow > .about-bento{border: 0px; padding: 0px; display: contents !important;}
#chiffres{min-height: 0px; height: auto;}
main > .site-footer > .footer-inner{width: calc(100% - 16px); padding: 4px 12px 0px;}}
@container style(--hero-existing-frame: on) {#accueil > .container{position: relative; isolation: isolate; border: 1px solid rgba(247, 244, 238, 0.16); padding: var(--frame-padding-y) var(--frame-padding-x);}
#accueil > .container::before{content: ""; position: absolute; inset: 0px; z-index: -1; background: radial-gradient(circle,rgba(247,244,238,.18) 1.5px,transparent 1.5px) 0 0/var(--frame-dot-gap) var(--frame-dot-gap); mask-image: radial-gradient(rgb(247, 244, 238) 55%, transparent);}
#accueil > .container::after{content: ""; position: absolute; inset: -3px; pointer-events: none; border: var(--frame-corner-w) solid #6A97AD; mask: conic-gradient(at var(--frame-corner-len) var(--frame-corner-len),transparent 75%,#000 0) 0 0/calc(100% - var(--frame-corner-len)) calc(100% - var(--frame-corner-len));}}
#qui-sommes-nous.about-with-flow{height: auto;}
#contact .field input:not([type="checkbox"]), #contact .field textarea, .faq-filter input{background: var(--block-background); color: rgb(247, 244, 238);}
#contact input::placeholder, #contact textarea::placeholder, .faq-filter input::placeholder{color: rgb(247, 244, 238); opacity: 0.8;}
.flow-center .flow-lock{stroke: rgb(247, 244, 238);}
@media (max-width: 767px) and (max-height: 800px) {#pourquoi-echanger{--gap: 10px;}
#qui-sommes-nous .about-part-1 > .section-intro > .eyebrow{margin-bottom: 0px;}}
@container style(--hero-existing-frame: on) {#accueil{min-height: var(--screen-h); display: grid; align-content: center; padding-block: var(--frame-margin-y) !important;}
#accueil::after{content: none;}
#accueil > .container{width: min(100% - 48px, 1200px); height: calc(var(--screen-h) - 2*var(--frame-margin-y) - 1px); display: grid; align-content: center; box-shadow: none; border-radius: 0px;}
@media (max-width: 767px) {#accueil > .container{width: calc(100% - 16px); padding: 12px;}}}
#accueil > .container::before{content: none !important;}
@container style(--hero-existing-frame: on) {#accueil::before{top: var(--frame-margin-y); bottom: var(--frame-margin-y); left: max(24px, 50% - 600px); right: max(24px, 50% - 600px); width: auto;}
@media (max-width: 767px) {#accueil::before{left: 8px; right: 8px;}}}
@container style(--hero-existing-frame: off) {#accueil{border-top-width: 0.5px; border-top-color: color-mix(in srgb,var(--line-ink) 32%,transparent);}}
@container style(--hero-existing-frame: on) {#accueil > .container{border-color: transparent;}
#accueil > .container::after{left: calc(50% + 6px - 50vw); right: calc(50% + 6px - 50vw);}
#accueil::before{left: 8px; right: 8px;}
#accueil::after{content: ""; position: absolute; inset: var(--frame-margin-y) 8px; z-index: 0; width: auto; height: auto; border: 1px solid rgba(247, 244, 238, 0.16); background: none; opacity: 1; pointer-events: none;}}
 .stat-frame::after, #accueil > .container::after{background: linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left top/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left top/var(--frame-corner-w) var(--frame-corner-len) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right top/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right top/var(--frame-corner-w) var(--frame-corner-len) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left bottom/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left bottom/var(--frame-corner-w) var(--frame-corner-len) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right bottom/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right bottom/var(--frame-corner-w) var(--frame-corner-len) no-repeat;}
@container style(--hero-existing-frame: on) {#accueil > .container{--frame-corner-color: #6A97AD;}
#accueil > .container::after{border: 0px; z-index: 2;}}
.screen-dots:has(a[href="#accueil"][aria-current="location"]){visibility: hidden; pointer-events: none;}
@media (max-width: 767px) and (max-height: 800px) {#pourquoi-echanger .section-intro{margin-bottom: 4px;}
#pourquoi-echanger .section-intro > .eyebrow{margin-bottom: 2px;}
#pourquoi-echanger .benefits{gap: 4px;}
#pourquoi-echanger .section-relay{margin-top: 4px;}
#debouches > .container > .section-intro{margin-bottom: 4px;}
#debouches .section-relay{margin-top: 4px;}}
@container style(--hero-existing-frame: on) {#accueil > .container::after{mask: none;}}
#chiffres > .container{padding-inline: 0px;}
#chiffres .stats{gap: 16px; align-items: stretch;}
.stat-frame{--frame-corner-color: #4F7D93; --frame-dot-color: rgba(106,151,173,.35); position: relative; isolation: isolate; min-width: 0px; background: rgb(247, 244, 238); border: 1px solid rgba(10, 10, 10, 0.12); border-radius: 0px; box-shadow: none; overflow: visible;}
#chiffres .stats > .stat-frame{border: 1px solid rgba(10, 10, 10, 0.12); padding: 18px !important;}
#chiffres .stats .stat-frame, #chiffres .stats .stat-frame strong, #chiffres .stats .stat-frame p{color: rgb(13, 26, 48);}
.stat-frame::before{content: ""; position: absolute; inset: 0px; z-index: -1; pointer-events: none; background-image: radial-gradient(circle,var(--frame-dot-color) 1.5px,transparent 1.5px); background-size: var(--frame-dot-gap) var(--frame-dot-gap); mask-image: radial-gradient(rgb(247, 244, 238) 55%, transparent 100%);}
.stat-frame::after{content: ""; position: absolute; inset: -3px; z-index: 2; pointer-events: none;}
@media (max-width: 767px) {#chiffres > .container{width: calc(100% - 16px);}
#chiffres .stats{gap: 12px;}
#chiffres .stats > .stat-frame{padding: 12px !important;}
.stat-frame::after{inset: -2.5px;}}
.hero h1 .hero-first-line{display: block; white-space: nowrap;}
@media (max-width: 767px) {.hero h1{font-size: clamp(26px, 7.5vw, 36.96px);}}
@media (max-width: 767px) and (max-height: 800px) {#pourquoi-echanger .section-relay{margin-top: 2px;}}
#chiffres .stat-frame::before{content: none;}
#chiffres > .container{width: min(100% - 48px, 1120px);}
#chiffres .stats{gap: 32px;}
#chiffres .stats > .stat-frame{padding: 16px !important;}
#chiffres .stats strong{font-size: clamp(36px, 3.6vh + 1.8vw, 64px);}
@media (max-width: 767px) {#chiffres > .container{width: calc(100% - 32px);}
#chiffres .stats{gap: 20px;}
#chiffres .stats > .stat-frame{padding: 12px !important;}
#chiffres .stats strong{font-size: 36px;}}
#chiffres .stats > .stat-frame{text-align: center;}
#chiffres .stats strong{justify-content: center;}
#chiffres .stats > .stat-frame > span{margin-inline: auto;}
#chiffres > .container{width: min(100% - 48px, 1152px);}
#chiffres .stats > .stat-frame > span{white-space: nowrap;}
@media (min-width: 768px) and (max-width: 1199px) {#chiffres .stats{grid-template-columns: repeat(2, minmax(0px, 1fr));}}
@media (max-width: 767px) {#chiffres > .container{width: calc(100% - 32px);}
#chiffres .stats{grid-template-columns: 1fr;}}
#chiffres .stat-frame::after, #accueil > .container::after{background: linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left top/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) left top/var(--frame-corner-w) var(--frame-corner-len) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right bottom/var(--frame-corner-len) var(--frame-corner-w) no-repeat,linear-gradient(var(--frame-corner-color),var(--frame-corner-color)) right bottom/var(--frame-corner-w) var(--frame-corner-len) no-repeat;}
#chiffres .stats .stat-frame strong{color: rgb(13, 26, 48);}
/* Réassurance : présentation antérieure conservée à la demande. */
main>section#chiffres{min-height:0;height:auto}
main>section#chiffres{background:var(--paper);color:#0D1A30}
main>section.section#chiffres{padding-block:clamp(28px,5vh,56px)!important}
main>section.section#chiffres{padding-block:28px!important}
main>section#chiffres::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle,rgba(106,151,173,.35) 1.5px,transparent 1.5px);background-size:var(--frame-dot-gap) var(--frame-dot-gap);mask-image:radial-gradient(ellipse,var(--paper) 55%,transparent 100%)}
main>section.section#chiffres{padding-block:clamp(40px,6.5vh,72px)!important}
main>section.section#chiffres{padding-block:40px!important}
@media(max-width:767px){main>section.section#chiffres{padding-block:40px!important}}
/* Séparateurs antérieurs de la hero et de la réassurance. */
#accueil,#chiffres{border-top:1px solid rgba(106,151,173,.24)}
/* Couleur exacte du séparateur de la hero avant la refonte. */
#accueil{border-top-color:rgba(247,244,238,.32)}
