/* Desktop and high-zoom stability patch */
html,body{max-width:100%;overflow-x:hidden}
.nav{width:100%;max-width:none;min-width:0}
.hero,.about,.interest,.projects,.contact{max-width:none}
@media (min-width:951px){.hero{grid-template-columns:minmax(400px,.82fr) minmax(460px,1.18fr)}.hero-photo{min-width:0;width:100%}.hero-photo img{object-position:center}.about{grid-template-columns:minmax(380px,.9fr) minmax(480px,1.1fr)}.nav nav{display:flex}}
@media (max-width:950px){.nav{height:auto;min-height:66px;padding:9px 5%;gap:16px}.logo img{max-width:145px;max-height:45px}.nav nav{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.nav nav a{font-size:12px}.hero{padding:55px 7%;min-height:0}.hero h1{font-size:clamp(38px,9vw,58px)}.hero h2{font-size:clamp(22px,5.2vw,29px)}.hero .description,.credentials{font-size:15px}.hero-actions{flex-wrap:wrap}.stats{margin-top:34px;flex-wrap:wrap;gap:15px}.stats div{margin-right:12px;padding-right:12px}.hero-photo{height:min(510px,80vh);width:100%;margin:0}.hero-photo img{object-position:center}.about figure{height:min(560px,80vh)}.four-cards article{grid-template-columns:86px 1fr;padding:20px}.four-cards i{font-size:39px;padding-right:12px}.projects,.contact,.about{padding-left:7%;padding-right:7%}}
@media (max-width:560px){.nav nav{display:none}.hero-photo{height:430px}.hero-actions .button{width:100%;text-align:center}.formation{gap:10px}.training article{font-size:14px}.contact form{padding:24px}}
/* Hero refinement: the name leads, the portrait supports it. */
@media (min-width:951px){.hero{grid-template-columns:minmax(510px,1.2fr) minmax(360px,.8fr);gap:4.5%;min-height:610px;padding-top:62px;padding-bottom:62px}.hero h1{font-size:clamp(54px,4.6vw,68px);white-space:nowrap}.hero-copy{min-width:0}.hero-photo{height:470px;align-self:center}.hero-photo img{object-position:center}.hero h2{font-size:25px}.hero .description{max-width:570px}.hero-actions{margin:22px 0}.stats{margin-top:35px}}
