/* Ajustements de présentation du candidat, sans rebranding. */
.hero-image-wrap::after { display: none; }
.pathway { grid-template-columns: repeat(3, minmax(0,1fr)); }
.service-item { grid-template-columns: 2.8rem minmax(0,1fr); }
.network > .container > p:last-of-type { max-width: 68ch; }
.sticky-contact a { font-size: .95rem; }
@media (max-width: 620px) { .pathway { grid-template-columns: 1fr; } }

/* Mouvement et micro-interactions du candidat */
:root { --motion-ease: cubic-bezier(.2,.75,.25,1); }
html { scroll-padding-top: 5rem; }
.header { transition: box-shadow .35s ease, background-color .35s ease; }
.header:hover { box-shadow: 0 12px 30px rgba(16,42,48,.12); }
.primary-nav a { position: relative; transition: color .25s ease, transform .25s var(--motion-ease); }
.primary-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-.35rem; height:2px; background:var(--orange); transition:right .3s var(--motion-ease); }
.primary-nav a:hover { transform:translateY(-2px); }
.primary-nav a:hover::after { right:0; }
.button { position:relative; overflow:hidden; isolation:isolate; transition:transform .3s var(--motion-ease), box-shadow .3s ease, background .25s ease; }
.button::before { content:""; position:absolute; z-index:-1; inset:-30% auto -30% -55%; width:35%; transform:skewX(-22deg); background:rgba(255,255,255,.32); transition:left .6s var(--motion-ease); }
.button:hover { transform:translateY(-4px) scale(1.015); box-shadow:0 12px 26px rgba(13,42,48,.2); }
.button:hover::before { left:125%; }
.brand-icon { flex:none; width:1.22em; height:1.22em; vertical-align:-.22em; margin-right:.42em; transition:transform .35s var(--motion-ease); }
a:hover > .brand-icon { transform:rotate(-9deg) scale(1.16); }
.whatsapp-icon { color:#20a464; }
.phone-icon { color:currentColor; }
.contact-links a { position:relative; transition:transform .28s var(--motion-ease), opacity .28s ease; }
.contact-links a:hover { transform:translateX(7px); }
.service-item,.timeline-item,.action,.path-step,.network-card { transition:transform .38s var(--motion-ease), box-shadow .38s ease, border-color .3s ease; }
.service-item:hover,.timeline-item:hover,.action:hover,.path-step:hover,.network-card:hover { transform:translateY(-6px); box-shadow:0 16px 34px rgba(10,40,46,.14); }
.service-item { border-left:3px solid transparent; }
.service-list { border-top: 0 !important; }
.service-list .service-item { border-top: 1px solid rgba(255,255,255,.68) !important; border-bottom: 0 !important; }
.service-item:hover { border-left-color:var(--orange); }
.checklist li { transition:transform .25s var(--motion-ease), color .25s ease; }
.checklist li:hover { transform:translateX(5px); color:var(--orange); }
.network-card:hover { background-image:linear-gradient(135deg,rgba(255,255,255,.12),transparent 60%); }
.subhero { position:relative; isolation:isolate; }
.subhero::after { content:""; position:absolute; z-index:-1; width:min(40vw,28rem); aspect-ratio:1; right:-7rem; top:-8rem; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 2.6rem rgba(255,255,255,.025),0 0 0 5.2rem rgba(255,255,255,.018); animation:hero-ring 12s ease-in-out infinite alternate; pointer-events:none; }
.sticky-contact a { position:relative; transition:transform .3s var(--motion-ease), box-shadow .3s ease; }
.sticky-contact a:hover { transform:scale(1.1) translateY(-3px); box-shadow:0 0 0 7px rgba(255,255,255,.13),var(--shadow); }
.sticky-contact a:first-child { animation:contact-pulse 3s ease-in-out infinite; }
.js .service-item,.js .timeline-item,.js .action,.js .path-step,.js .network-card,.js .contact-links a { opacity:0; transform:translateY(1rem); transition:opacity .65s ease,transform .65s var(--motion-ease),box-shadow .38s ease,border-color .3s ease; }
.js .service-item.is-visible,.js .timeline-item.is-visible,.js .action.is-visible,.js .path-step.is-visible,.js .network-card.is-visible,.js .contact-links a.is-visible { opacity:1; transform:none; }
.js .service-item:nth-child(3n+2),.js .timeline-item:nth-child(3n+2),.js .network-card:nth-child(2) { transition-delay:.08s; }
.js .service-item:nth-child(3n),.js .timeline-item:nth-child(3n),.js .network-card:nth-child(3) { transition-delay:.16s; }
@keyframes hero-ring { from { transform:translate3d(0,0,0) rotate(0); opacity:.55; } to { transform:translate3d(-1.2rem,1rem,0) rotate(13deg); opacity:1; } }
@keyframes contact-pulse { 0%,100% { box-shadow:var(--shadow); } 50% { box-shadow:0 0 0 7px rgba(255,255,255,.12),var(--shadow); } }
@media (prefers-reduced-motion: reduce) {
  .subhero::after,.sticky-contact a:first-child { animation:none !important; }
  .button,.service-item,.timeline-item,.action,.path-step,.network-card,.contact-links a,.checklist li { transition:none !important; }
  .button:hover,.service-item:hover,.timeline-item:hover,.action:hover,.path-step:hover,.network-card:hover,.contact-links a:hover,.checklist li:hover { transform:none !important; }
}
.scroll-progress { position:fixed; z-index:1000; inset:0 auto auto 0; width:100%; height:4px; transform:scaleX(0); transform-origin:left center; background:linear-gradient(90deg,var(--sun),var(--orange),#19a37a); box-shadow:0 1px 10px rgba(13,42,48,.18); pointer-events:none; will-change:transform; }

/* Effets immersifs renforcés */
.js h1, .js h2 { text-wrap:balance; }
.js h1.reveal, .js h2.reveal { filter:blur(7px); transform:translateY(2rem) scale(.975); transition:opacity .9s ease,transform .95s var(--motion-ease),filter .8s ease; }
.js h1.reveal.is-visible, .js h2.reveal.is-visible { filter:blur(0); }
.js .hero h1.reveal, .js .subhero h1.reveal { transition-duration:1.1s; }
.hero { background-image:radial-gradient(ellipse at 82% 18%,rgba(247,182,60,.15),transparent 34%); }
.hero-image-wrap { transform-style:preserve-3d; }
.hero-image-wrap img, .image-essay img { transition:transform 1s var(--motion-ease),filter .8s ease; }
.image-essay figure:hover img { transform:scale(1.055) rotate(.35deg); filter:saturate(1.12) contrast(1.02); }
.figure, figure { perspective:1000px; }
.service-item,.action,.path-step,.network-card,.timeline-item { transform-style:preserve-3d; }
.js .tilt-card { --card-rx:0deg; --card-ry:0deg; transition:transform .42s var(--motion-ease),box-shadow .42s ease; }
.js .tilt-card:hover { transform:perspective(900px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) translateY(-7px) scale(1.012); }
.service-item::before { content:""; position:absolute; left:-2px; top:50%; width:3px; height:0; background:linear-gradient(var(--sun),var(--orange)); transition:height .35s ease,top .35s ease; }
.service-item:hover::before { top:0; height:100%; }
.contact-links a .brand-icon { width:1.35em; height:1.35em; }
.contact-links a:hover .whatsapp-icon { animation:icon-pop .5s var(--motion-ease); }
.contact-links a:hover .phone-icon { animation:ring-phone .65s ease-in-out; }
.button:hover .whatsapp-icon { animation:icon-pop .5s var(--motion-ease); }
.button:hover .phone-icon { animation:ring-phone .65s ease-in-out; }
.sticky-contact a { backdrop-filter:blur(8px); }
.sticky-contact .brand-icon { width:1.35rem; height:1.35rem; margin:0; }
.sticky-contact a:first-child { background:#25D366; }
.sticky-contact a:nth-child(2) { background:#153f60; }
.sticky-contact a:first-child::after,.sticky-contact a:nth-child(2)::after { content:""; position:absolute; inset:-5px; border:1px solid currentColor; border-radius:50%; opacity:.42; animation:ring-wave 2.8s ease-out infinite; }
.sticky-contact a:nth-child(2)::after { animation-delay:1.3s; }
.ribbon-inner { animation-duration:19s; }
@keyframes icon-pop { 0%,100%{transform:scale(1)} 50%{transform:scale(1.23) rotate(-7deg)} }
@keyframes ring-phone { 0%,100%{transform:rotate(0)} 20%,60%{transform:rotate(-15deg)} 40%,80%{transform:rotate(15deg)} }
@keyframes ring-wave { 0%{transform:scale(.84);opacity:.45} 100%{transform:scale(1.48);opacity:0} }
@media (prefers-reduced-motion: reduce) {
  .sticky-contact a::after { animation:none !important; }
  .hero-image-wrap img,.image-essay img { transition:none !important; }
}
/* Contrastes renforcés dans les aplats colorés */
.contact-band .section-id { color:var(--white); }
.path-step:nth-child(3n) strong { color:var(--ink); }
.services-section .button { color:var(--ink); background:var(--sun); border-color:var(--sun); }
.services-section .button:hover { color:var(--ink); background:var(--white); border-color:var(--white); }

/* Logos officiels en PNG transparent : pas de cartouche blanc ni d’ombre derrière la marque */
.brand-official { flex: 0 0 auto; min-width: 0; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand-logo { display: block; height: auto; object-fit: contain; }
.brand-logo-clinic { width: clamp(15rem, 23vw, 18rem); }
.brand-logo-prioris { width: clamp(13rem, 19vw, 15rem); }
@media (max-width: 540px) { .brand-logo-clinic { width: clamp(10.5rem, 47vw, 13rem); } .brand-logo-prioris { width: clamp(10rem, 44vw, 12.5rem); } }

/* Galerie : accueil puis salle d’hospitalisation — proportions originales préservées */
.image-mosaic.clinic-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: auto; align-items: start; }
.image-mosaic.clinic-gallery figure, .image-mosaic.clinic-gallery figure:first-child { min-height: 0; height: auto; grid-row: auto; aspect-ratio: auto; background: #eef1f2; }
.image-mosaic.clinic-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.image-mosaic.clinic-gallery figcaption { position: static; inset: auto; padding: .7rem .9rem; color: var(--ink); background: var(--paper); font-size: .8rem; }
@media (max-width: 900px) { .image-mosaic.clinic-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .image-mosaic.clinic-gallery { grid-template-columns: 1fr; } }

/* Parcours patient sans repetition de la photo documentaire utilisee dans la galerie */
.image-essay.clinic-story { grid-template-columns: minmax(0,1fr); max-width: 72rem; }
