document.addEventListener("DOMContentLoaded", function(){
const rotatingTexts = ["INTÉRIEUR UNIQUE", "ESPACE ÉLÉGANT", "DESIGN SUR-MESURE"];
let index = 0;
const span = document.querySelector('.js-rotating');
if(span){
span.textContent = rotatingTexts[index];
setInterval(() => {
span.style.opacity = 0;
setTimeout(() => {
index = (index + 1) % rotatingTexts.length;
span.textContent = rotatingTexts[index];
span.style.opacity = 1;
}, 500);
}, 15000);
}
});