html,
body {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


ul.hmenu {
  border-radius: 15px;
  top: 100px !important;
}

/* to top */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: 1px solid #000;
  outline: none;
  background-color: #ff6041;
  color: white;
  cursor: pointer;
  padding: 5px 15px;
  border-radius: 50%;
}

#myBtn:hover {
  background-color: #ff6041;
}

.split,
.split-word {
  display: inline-block;
  overflow: hidden;
}

.split span,
.split-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s ease, transform .5s ease;
}

.split.inview span,
.split-word.inview span {
  opacity: 1;
  transform: translateY(0);
}

.split-blur {
  display: inline;
  /* important : inline, pas inline-block */
}

.split-blur span {
  display: inline;
  /* inline = le mot suit le flux normal */
  opacity: 0;
  transform: translateY(30px);
  filter: blur(12px);
  transition:
    opacity .55s ease,
    transform .55s ease,
    filter .55s ease;
}

.split-blur.inview span {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* cookies */
.cky-btn-reject,
.cky-btn-preferences {
  background-color: #ea5639 !important;
  border: 2px solid #ea5639 !important;
}

.cky-btn-accept {
  background: #ea5639 !important;
  border: 2px solid #ea5639 !important;
}

.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
  background-color: #ea5639 !important;
}
.cky-btn-customize {
  border: 2px solid #ea5639 !important;
  color: #000 !important;
}
/* --- PRELOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity .5s ease;
    font-family: Poppins, sans-serif;
}

/* --- CONTENU --- */
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 60px;
    background: none;
    border-radius: 16px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: fadeInBox .6s ease forwards;
    opacity: 0;
}

/* --- SPINNER --- */
.spinner-wrapper {
    /* 🔥 Isoler le spinner des transforms parents */
    transform: none !important;
    will-change: transform;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.4);
    border-top-color: #ff6041;
    border-radius: 50%;

    animation: spin 1s linear infinite, fadeInSpinner .6s ease forwards;
    opacity: 0;

    /* 🔥 Force l’indépendance du spinner */
    transform-origin: center;
    will-change: transform;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* --- TEXTE --- */
.loader-content p {
    margin-top: 16px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
    opacity: 0;
    animation: fadeInText .8s ease forwards .4s;
}

/* --- ANIMATIONS --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInSpinner {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInBox {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}
