/* Identity — finishing layer, shared by every page.
   Hero entrance (once, on load), hover and press on every control, balanced headings,
   visible focus. Loaded last so it refines the earlier sheets without editing them. */

/* headings: no lone word on the last line ("joli." alone) */
h1,h2,h3,.page-end p{text-wrap:balance}

/* ---------- hero entrance ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero-copy>*,.inner-hero>*{animation:p-rise .9s cubic-bezier(.2,.8,.2,1) backwards}
  .hero-copy>*:nth-child(1),.inner-hero>*:nth-child(1){animation-delay:.05s}
  .hero-copy>*:nth-child(2),.inner-hero>*:nth-child(2){animation-delay:.14s}
  .hero-copy>*:nth-child(3),.inner-hero>*:nth-child(3){animation-delay:.26s}
  .hero-copy>*:nth-child(4),.inner-hero>*:nth-child(4){animation-delay:.36s}
  .hero .benefits>div{animation:p-rise .8s cubic-bezier(.2,.8,.2,1) backwards}
  .hero .benefits>div:nth-child(1){animation-delay:.46s}
  .hero .benefits>div:nth-child(2){animation-delay:.54s}
  .hero .benefits>div:nth-child(3){animation-delay:.62s}
}
@keyframes p-rise{from{opacity:0;transform:translateY(18px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}

/* ---------- buttons: step on hover, press on click, arrow moves ---------- */
.button,.nav-cta,.hero-buttons .underlink,.outline-button{
  transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button.black:hover,.nav-cta:hover{box-shadow:0 12px 26px -10px rgba(8,8,8,.55)}
.button:active,.nav-cta:active,.hero-buttons .underlink:active,.outline-button:active{transform:translateY(0) scale(.97);transition-duration:.08s}
.button span,.nav-cta span{display:inline-block;transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.button:hover span,.nav-cta:hover span{transform:translateX(4px)}
.hero-buttons .underlink:hover{transform:translateY(-2px);background:#fff;border-color:#111}

/* nav links: the underline draws instead of appearing */
.nav nav a{position:relative;transition:color .2s ease}
@media (min-width:761px){
  .nav nav a:not(.active){border-bottom-color:transparent!important}
  .nav nav a:not(.active)::after{
    content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:#111;
    transform:scaleX(0);transform-origin:right;transition:transform .3s cubic-bezier(.2,.8,.2,1);
  }
  .nav nav a:not(.active):hover::after{transform:scaleX(1);transform-origin:left}
}

/* ---------- cards lift 2px, icons answer ---------- */
.editorial-card,.service-list article,.price-card,.plan,.project-card{
  transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.editorial-card:hover{transform:translateY(-2px);border-color:#d8cfc4;box-shadow:0 18px 40px -24px rgba(70,45,25,.35)}
.service-icon,.benefit-icon{transition:transform .35s cubic-bezier(.2,1.3,.4,1), background-color .3s ease}
.editorial-card:hover .service-icon,.editorial-list>div:hover .service-icon,.benefits>div:hover .benefit-icon{transform:translateY(-2px) scale(1.06)}

/* ---------- focus you can see, above the header ---------- */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{
  outline:2px solid #e11924;outline-offset:3px;border-radius:6px;
}
html{scroll-padding-top:96px}

/* the platform badge sits clear of the carousel pill on phones */
@media (max-width:760px){#hb-badge{bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;right:10px!important;transform:scale(.9);transform-origin:100% 100%}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important}
  .button:hover span,.nav-cta:hover span{transform:none}
}

/* "Un site qui vous ressemble": text keeps its own column instead of wrapping under the icon */
.editorial-list>div{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:13px;align-items:start}
.editorial-list>div::after{display:none}
.editorial-list>div .service-icon{float:none;margin:0;grid-row:1 / span 2;width:34px;height:34px}
.editorial-list>div strong{grid-column:2;margin-top:6px}
.editorial-list>div p{grid-column:2}

/* heading dots sit on the baseline at the size of the period they replace */
h1 .identity-final-dot{width:.17em;height:.17em}
h2 .identity-final-dot,h3 .identity-final-dot{width:.19em;height:.19em}
