Hello, thank you for your answers. Indeed I should have cleaned the css before posting... I finally found the solution, I had left a mixin in my globals scss which was preventing it from working properly:
@mixin containerInit($containerName: section, $containerType: inline-size) {
container-type: #{$containerType};
container-name: #{$containerName};
}
section,
header,
footer {
&:not(.customContainer) {
@include containerInit();
}
}
Thank you for all your advice and also for the Stackblitz starter templates, next time I will use them !