/* LERIAU V47.2b - Couche UX Agence. N'alterne pas les CSS Firework. */
:root{--agence-accent:#b56b2d;--agence-accent-dark:#9e5a22;--agence-accent-soft:#f4e5d3;--agence-accent-ring:rgba(181,107,45,.22);}
.v47-selector{background:#fffdfa;padding:54px 0 48px}
.v47-heading,.v47-journey-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:24px}
.v47-heading .section-title,.v47-journey-heading .section-title{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.025em;font-size:clamp(32px,3.5vw,46px);line-height:1.12;margin:8px 0 0}
.v47-heading>p,.v47-journey-heading>p{max-width:362px;margin:0;color:#685c52;font-size:14px;line-height:1.65}
.v47-needs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.v47-need{appearance:none;-webkit-appearance:none;position:relative;overflow:hidden;min-width:0;min-height:179px;padding:19px 17px;text-align:left;border:1px solid #e9dbcd;background:#fff;border-radius:17px;cursor:pointer;box-shadow:0 10px 23px rgba(67,40,24,.035);transition:transform .2s,border-color .2s,box-shadow .2s,background-color .2s;color:#1b1714;font-family:inherit}
.v47-need:hover{transform:translateY(-2px);border-color:#d4b08c;box-shadow:0 12px 26px rgba(69,38,19,.08)}
.v47-need[aria-pressed=true]{border-color:var(--agence-accent);background:linear-gradient(180deg,#fffdfb 0%, #fff7f0 100%);box-shadow:0 0 0 2px var(--agence-accent-ring),0 14px 30px rgba(69,38,19,.08);animation:v47NeedPulse 2.4s ease-in-out infinite}.v47-need[aria-pressed=true]::before{content:"";position:absolute;left:14px;right:14px;top:0;height:3px;border-radius:0 0 999px 999px;background:linear-gradient(90deg,transparent 0%, var(--agence-accent) 16%, #d89a5b 50%, var(--agence-accent) 84%, transparent 100%);transform-origin:center;animation:v47ActiveBar 2.4s ease-in-out infinite}.v47-need[aria-pressed=true]::after{content:"";position:absolute;top:12px;right:12px;width:9px;height:9px;border-radius:50%;background:var(--agence-accent);box-shadow:0 0 0 0 rgba(181,107,45,.28);animation:v47ActiveDot 2.4s ease-out infinite}
.v47-need:focus-visible,.v47-route-links a:focus-visible,.v47-all summary:focus-visible{outline:3px solid #c99b51;outline-offset:3px}
.v47-symbol{width:43px;height:43px;background:#fbefe4;border:1px solid #f0d9c2;border-radius:13px;color:var(--agence-accent);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.v47-symbol svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.v47-need:first-child .v47-symbol svg{fill:currentColor;stroke:none}
.v47-need strong{display:block;font-size:15px;line-height:1.35;font-weight:750;margin-bottom:7px}
.v47-need small{display:block;font-size:12px;line-height:1.55;color:#655b53}
.v47-route{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-top:18px;padding:25px 26px;background:#fffaf5;border:1px solid #e8d4c4;border-radius:18px}
.v47-route-body{min-width:0;flex:1}
.v47-route-overline{display:flex;align-items:center;gap:11px;color:var(--agence-accent-dark);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:11px;margin-bottom:6px}
.v47-pulse{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:var(--agence-accent);animation:v47-pulse 2.5s ease-out infinite}
@keyframes v47-pulse{0%{box-shadow:0 0 0 0 rgba(181,107,45,.34)}78%{box-shadow:0 0 0 11px rgba(181,107,45,0)}100%{box-shadow:0 0 0 11px rgba(181,107,45,0)}}@keyframes v47NeedPulse{0%,100%{box-shadow:0 0 0 2px var(--agence-accent-ring),0 14px 30px rgba(69,38,19,.08)}50%{box-shadow:0 0 0 4px rgba(181,107,45,.14),0 16px 33px rgba(69,38,19,.10)}}@keyframes v47ActiveBar{0%,100%{opacity:.75;transform:scaleX(.9)}50%{opacity:1;transform:scaleX(1)}}@keyframes v47ActiveDot{0%{box-shadow:0 0 0 0 rgba(181,107,45,.25)}75%{box-shadow:0 0 0 10px rgba(181,107,45,0)}100%{box-shadow:0 0 0 0 rgba(181,107,45,0)}}
.v47-route h3{font:500 clamp(23px,2.35vw,31px)/1.2 Georgia,'Times New Roman',serif;letter-spacing:-.02em;margin:5px 0 8px;color:#231a16}
.v47-route p{font-size:14px;color:#574c44;margin:0 0 15px;line-height:1.65}
.v47-route-links{display:flex;flex-wrap:wrap;gap:9px}
.v47-route-links a{display:inline-flex;align-items:center;gap:6px;min-height:39px;padding:8px 14px;border:1px solid #e4d0bf;border-radius:999px;background:#fff;text-decoration:none;font-weight:700;font-size:13px;color:var(--agence-accent-dark);transition:transform .18s,box-shadow .18s,border-color .18s}
.v47-route-links a:hover{transform:translateY(-2px);border-color:#c99372;box-shadow:0 6px 14px rgba(61,41,25,.07)}
.page-agence .v47-route .btn.primary.v47-route-cta{flex:none;white-space:nowrap;min-height:48px;background:var(--agence-accent);color:#fff;border-color:var(--agence-accent);box-shadow:0 10px 22px rgba(181,107,45,.16)}.page-agence .v47-route .btn.primary.v47-route-cta:hover{background:var(--agence-accent-dark);border-color:var(--agence-accent-dark);color:#fff}
.v47-contact-alt{font-size:13px;line-height:1.6;color:#746960;margin:15px 2px 0}
.v47-contact-alt a{color:var(--agence-accent-dark);font-weight:700;text-underline-offset:3px}
.v47-journey{padding:43px 0;background:#f8f3ee;border-top:1px solid #eee2d5;border-bottom:1px solid #eee2d5}
.v47-journey-heading{margin-bottom:18px}
.v47-journey-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.v47-journey-steps>div{background:rgba(255,255,255,.78);border:1px solid #eaddd0;border-radius:14px;padding:18px}
.v47-journey-steps span{font-size:11px;font-weight:800;color:#ac5b3e;display:block;margin-bottom:8px}
.v47-journey-steps strong{font-size:14px;display:block;color:#231b16}
.v47-journey-steps small{display:block;color:#655a52;font-size:12px;line-height:1.65;margin-top:6px}
.v47-catalogue{padding:0 0 48px;background:#fffdfa}
.v47-all{border:1px solid #e9dace;background:#fffcf9;border-radius:14px;padding:0 20px}
.v47-all summary{padding:17px 0;cursor:pointer;color:#754235;font-weight:750;font-size:14px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.v47-all summary::-webkit-details-marker{display:none}
.v47-all summary span{transition:transform .2s}
.v47-all[open] summary span{transform:rotate(180deg)}
.v47-all-grid{border-top:1px solid #efe5dc;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;padding:8px 0 19px}
.v47-all-grid a{display:block;padding:11px 2px;text-decoration:none;color:#734d3d;font-size:13px;border-bottom:1px solid #efe7df}
.v47-all-grid a:hover{text-decoration:underline}
@media(max-width:960px){.v47-needs{grid-template-columns:repeat(2,minmax(0,1fr))}.v47-need{min-height:162px}}
@media(max-width:680px){.v47-selector{padding:40px 0 35px}.v47-heading,.v47-journey-heading{display:block}.v47-heading>p,.v47-journey-heading>p{margin:11px 0 0}.v47-needs{gap:9px}.v47-need{min-height:166px;padding:15px 12px}.v47-symbol{width:39px;height:39px;margin-bottom:12px}.v47-need strong{font-size:13px}.v47-need small{font-size:11px}.v47-route{display:block;padding:19px 18px}.v47-route h3{font-size:24px}.v47-route-links{display:grid;grid-template-columns:1fr;gap:8px}.v47-route-links a{border-radius:12px;min-height:44px}.v47-route .v47-route-cta{display:flex;width:100%;margin-top:19px}.v47-journey{padding:36px 0}.v47-journey-steps{grid-template-columns:1fr;gap:8px}.v47-journey-steps>div{padding:14px 16px}.v47-all-grid{grid-template-columns:1fr}}
@media(max-width:370px){.v47-needs{grid-template-columns:1fr}.v47-need{min-height:unset}.v47-route{padding:18px 15px}}
@media(prefers-reduced-motion:reduce){.v47-need,.v47-route-links a,.v47-pulse,.v47-all summary span{animation:none!important;transition:none!important}}

/* V47.3 — Premier écran plus compact, sans sacrifier l'identité Firework. */
.page-agence .branch-hero .sales-hero.sales-hero-focus{
  min-height:0!important;
  padding:38px 0 36px!important;
}
.page-agence .branch-hero .sales-hero.sales-hero-focus > div:first-child{
  width:100%!important;
  max-width:950px!important;
}
.page-agence .branch-hero .sales-hero.sales-hero-focus h1{
  font-size:clamp(2.65rem,4.25vw,3.85rem);
  line-height:1.06;
  max-width:24ch;
  margin-top:12px;
  margin-bottom:14px;
}
.page-agence .branch-hero .sales-hero.sales-hero-focus .lead{
  max-width:750px;
  font-size:clamp(1.03rem,1.45vw,1.13rem);
  line-height:1.57;
  margin-bottom:18px;
}
.page-agence .branch-hero .breadcrumb{margin-bottom:8px}
.page-agence .branch-hero .eyebrow{margin-bottom:10px}
.page-agence .branch-hero .cta-row{gap:10px}
.page-agence .v47-selector{padding-top:37px;padding-bottom:34px}
.page-agence .v47-heading{margin-bottom:20px}
.page-agence .v47-need{min-height:159px;padding:17px 17px}
.page-agence .v47-need[aria-pressed=true]{
  animation:none!important;
  background:linear-gradient(180deg,#fffdfa 0%,#fdf3e9 100%);
  box-shadow:0 0 0 2px rgba(181,107,45,.20),0 9px 22px rgba(69,38,19,.07);
}
.page-agence .v47-need[aria-pressed=true]::before{animation:none!important;opacity:.83;transform:none}
.page-agence .v47-need[aria-pressed=true]::after{
  content:'✓';position:absolute;top:11px;right:12px;
  display:grid;place-items:center;width:22px;height:22px;
  border-radius:50%;font:700 12px/1 Arial,sans-serif;color:white;
  background:var(--agence-accent,#b56b2d);
  animation:none!important;box-shadow:none!important;
}
.page-agence .v47-route{
  background:linear-gradient(115deg,#f6eee4 0%,#faf3ec 100%);
  border-color:#dec5ac;
  box-shadow:0 7px 20px rgba(95,59,29,.045);
  margin-top:15px;
  padding:22px 24px;
}
.page-agence .v47-journey{padding-top:29px;padding-bottom:31px}
.page-agence .v47-journey-heading{margin-bottom:14px}
.page-agence .v47-journey-steps>div{padding:14px 16px}
.page-agence .v47-catalogue{padding-bottom:24px}
.page-agence #contact-branch.section{padding:36px 0 39px}
.page-agence #contact-branch .contact-panel{padding:27px 32px}
.page-agence #contact-branch .contact-panel h2{font-size:clamp(1.85rem,2.8vw,2.65rem);line-height:1.15;margin:8px 0 11px}
.page-agence #contact-branch .contact-panel p{margin-top:0;margin-bottom:16px}
@media(max-width:720px){
  .page-agence .branch-hero .sales-hero.sales-hero-focus{padding:27px 0 26px!important}
  .page-agence .branch-hero .sales-hero.sales-hero-focus h1{font-size:clamp(2.35rem,10vw,2.85rem);max-width:16ch;margin-top:8px;margin-bottom:12px}
  .page-agence .branch-hero .sales-hero.sales-hero-focus .lead{font-size:.96rem;margin-bottom:15px}
  .page-agence .branch-hero .cta-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
  .page-agence .branch-hero .cta-row .btn{width:auto;min-height:43px;padding:10px 13px;font-size:.84rem;margin:0}
  .page-agence .v47-selector{padding-top:29px;padding-bottom:28px}
  .page-agence .v47-heading{margin-bottom:16px}
  .page-agence .v47-need{min-height:153px;padding:14px 12px}
  .page-agence .v47-route{padding:18px;margin-top:13px}
  .page-agence .v47-journey{padding:25px 0 27px}
  .page-agence .v47-catalogue{padding-bottom:20px}
  .page-agence #contact-branch.section{padding:24px 0 30px}
  .page-agence #contact-branch .contact-panel{padding:24px 20px}
}
@media(max-width:370px){
  .page-agence .v47-need{min-height:0}
}
@media(prefers-reduced-motion:reduce){
  .page-agence .v47-need[aria-pressed=true],.page-agence .v47-need[aria-pressed=true]::before,.page-agence .v47-need[aria-pressed=true]::after{animation:none!important}
  .page-agence .v47-pulse{animation:none!important}
}

/* V47.4 - Agence: landing orientée besoin, édition compacte validable */
.page-agence .branch-hero .sales-hero.sales-hero-focus{padding-top:24px!important;padding-bottom:27px!important;min-height:0!important}
.page-agence .branch-hero .sales-hero.sales-hero-focus h1{margin-top:8px;margin-bottom:10px}
.page-agence .branch-hero .sales-hero.sales-hero-focus .lead{margin-bottom:0!important;max-width:850px}
.page-agence .v47-selector{padding-top:29px;padding-bottom:32px}
.page-agence .v47-heading{margin-bottom:18px}
.page-agence .v47-direct-contact{color:var(--agence-accent-dark,#9e5a22);font-weight:700;text-decoration:none;border-bottom:1px solid currentColor;text-underline-offset:3px}
.page-agence .v47-direct-contact:hover{color:var(--agence-accent,#b56b2d)}
.page-agence .v47-route{margin-top:15px}
.page-agence .v462-macro{padding-top:35px;padding-bottom:37px}
.page-agence .v462-heading{margin-bottom:16px}
.page-agence .v462-picture{height:134px;min-height:134px}
.page-agence .v462-tile-body{padding:13px 16px 14px;grid-template-rows:auto auto;gap:4px 11px}
.page-agence .v462-tile p{margin:0}
.page-agence .v462-tile h3{font-size:1rem}
.page-agence .v47-catalogue{padding-top:16px;padding-bottom:28px}
.page-agence .v47-final-contact{padding:0 0 42px;background:#fffdfa}
.page-agence .v47-final-contact-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(105deg,#f5eade,#fcf7f2);border:1px solid #e4d1be;border-radius:17px;padding:23px 29px}
.page-agence .v47-final-contact h2{font:500 clamp(1.3rem,2.2vw,1.9rem)/1.2 Georgia,'Times New Roman',serif;color:#281e19;margin:0 0 4px}
.page-agence .v47-final-contact p{color:#62564f;font-size:13px;line-height:1.5;margin:0}
.page-agence .v47-final-contact .btn.primary{flex:none;min-height:43px;white-space:nowrap;background:var(--agence-accent,#b56b2d);border-color:var(--agence-accent,#b56b2d);color:white}
.page-agence .v47-final-contact .btn.primary:hover{background:var(--agence-accent-dark,#9e5a22)}
@media(max-width:850px){
  .page-agence .v47-final-contact-inner{flex-wrap:wrap}
  .page-agence .v462-tile-body{padding:13px}
}
@media(max-width:680px){
  .page-agence .branch-hero .sales-hero.sales-hero-focus{padding-top:20px!important;padding-bottom:22px!important}
  .page-agence .v47-selector{padding-top:22px;padding-bottom:26px}
  .page-agence .v462-macro{padding-top:27px;padding-bottom:28px}
  .page-agence .v462-heading{margin-bottom:14px}
  .page-agence .v462-tile{min-height:115px}
  .page-agence .v462-picture{height:auto;min-height:115px}
  .page-agence .v462-picture img{min-height:115px}
  .page-agence .v462-tile-body{justify-content:center}
  .page-agence .v47-catalogue{padding-top:8px;padding-bottom:20px}
  .page-agence .v47-final-contact{padding-bottom:25px}
  .page-agence .v47-final-contact-inner{padding:18px;gap:14px}
  .page-agence .v47-final-contact .btn.primary{width:100%;text-align:center;justify-content:center}
}


/* V47.5 — contraste et mobile orienté conversion */
.page-agence .branch-hero{
  background:radial-gradient(circle at 89% 9%,rgba(196,143,62,.10),transparent 32%),
  linear-gradient(180deg,#fffdfa 0%,#f5f1eb 100%);
}
.page-agence .v47-selector{background:#fffdfa}
.page-agence .v47-route{
  background:linear-gradient(115deg,#ebdccb 0%,#f1e6da 100%);
  border:1px solid #d4b99d;
  box-shadow:0 9px 23px rgba(87,57,35,.08);
  scroll-margin-top:87px;
}
.page-agence .v47-route-links a{background:#fffefa;border-color:#d9c5b1}
.page-agence .v47-route-overline{color:#885023}
@media(max-width:720px){
  .page-agence .v47-route{scroll-margin-top:81px}
}
@media(prefers-reduced-motion:reduce){
  .page-agence .v47-need,.page-agence .v47-route-links a{transition:none!important}
  .page-agence .v47-pulse{animation:none!important}
}


/* V47.6 — retour visuel ponctuel sur ordinateur seulement.
   Mobile : défilement V47.5 inchangé. Accessibilité : reduced-motion. */
@media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
  .page-agence .v47-route {position:relative;isolation:isolate;}
  .page-agence .v47-route.v476-refresh {
    animation:v476-response-halo 760ms ease-out both;
  }
  .page-agence .v47-route.v476-refresh::before {
    content:"";position:absolute;inset:0;border-radius:inherit;
    z-index:0;pointer-events:none;
    background:linear-gradient(115deg,rgba(223,177,95,.48),rgba(244,204,137,.25) 55%,rgba(249,239,217,.05));
    animation:v476-response-light 760ms ease-out both;
  }
  .page-agence .v47-route.v476-refresh > * {position:relative;z-index:1;}
  .page-agence .v47-route.v476-refresh .v47-route-links a {
    animation:v476-capsule-arrive 420ms cubic-bezier(.2,.8,.2,1) both;
  }
  .page-agence .v47-route.v476-refresh .v47-route-links a:nth-child(2){animation-delay:50ms;}
  .page-agence .v47-route.v476-refresh .v47-route-links a:nth-child(3){animation-delay:100ms;}
}
@keyframes v476-response-light {
  0%{opacity:0;} 30%{opacity:.64;} 100%{opacity:0;}
}
@keyframes v476-response-halo {
  0%,100%{box-shadow:0 9px 23px rgba(87,57,35,.08);}
  35%{box-shadow:0 0 0 3px rgba(196,148,71,.22),0 13px 30px rgba(87,57,35,.11);}
}
@keyframes v476-capsule-arrive {
  0%{opacity:.25;transform:translateY(6px);}
  100%{opacity:1;transform:translateY(0);}
}
