html, body { margin:0; padding:0; height:100%; font-family: 'Sherlyn', sans-serif; color: #6f998b; }

body {
  position: relative;
  overflow-x: hidden;
  margin:0;
  padding:0;
  height:100%;
  font-family: 'Sherlyn', sans-serif;
  color: #6f998b;
}
/* background animé */
body::before {
  content:"";
  position: fixed;
  inset:0;
  background: url('bg') no-repeat center center/cover;
  z-index:-1;

  transform: scale(1);
  animation: bgZoom 20s ease-in-out infinite;
  will-change: transform;
}

/* zoom très léger */
@keyframes bgZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05); /* zoom très léger */
  }
  100% {
    transform: scale(1);
  }
}
html:not(.fast-load) body {
  opacity: 0;
  animation: fadeInBG 1s forwards;
}
@keyframes fadeInBG { 0% {opacity:0;} 100% {opacity:1;} }

.overlay {
  min-height:100vh;
  background: rgba(0,0,0,0.35);
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
  opacity: 1;
}

html:not(.fast-load) .overlay {
  opacity:0;
  animation: fadeInOverlay 1s forwards 1s;
}
@keyframes fadeInOverlay { 0% {opacity:0;} 100% {opacity:1;} }


h1 { font-family: 'Histora Beralin Regular', serif; font-size:6rem; margin-bottom:10px; text-shadow:2px 2px 8px rgba(0,0,0,0.7); opacity:1; }
h2 { font-family: 'Sherlyn', sans-serif; font-size:3rem; margin-bottom:40px; font-style:italic; text-shadow:1px 1px 5px rgba(0,0,0,0.6); opacity:1; }

html:not(.fast-load) h1 { opacity:0; animation: fadeInUp 1s forwards 2s; }
html:not(.fast-load) h2 { opacity:0; animation: fadeInUp 1s forwards 2.5s; }


.buttons { display:flex; gap:20px; flex-wrap: wrap; justify-content:center; opacity:1; }
html:not(.fast-load) .buttons { opacity:0; animation: fadeInUp 1s forwards 3s; }

@keyframes fadeInUp { 0% {opacity:0; transform:translateY(20px);} 100% {opacity:1; transform:translateY(0);} }

.btn { 
  padding:15px 30px; border:2px solid #A3CFC0; border-radius:12px; text-decoration:none; 
  color:#fff; font-weight:bold; font-size:1rem; font-family: 'Montserrat', sans-serif; 
  transition: all 0.2s ease; cursor:pointer; position:relative; overflow:hidden;
}
.btn:hover { background:#A3CFC0; color:#111; transform: translateY(-3px);}
.btn:active { transform:scale(0.95); box-shadow:0 5px 10px rgba(0,0,0,0.3);}

.site-footer {
  position: fixed;        
  bottom: -220px; 
  left: 0;
  width: 100%;
  text-align: center;     
  padding: 18px;
  background: linear-gradient(270deg, #A3CFC0, #E099B1, #A3CFC0); 
  background-size: 400% 400%; 
  animation: gradientMove 12s ease infinite;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 14px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: bottom 0.4s ease-in-out;
  z-index: 10;
}

.note-fixed {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  pointer-events: auto;
}
.note-fixed a.btn-link {
    display: inline-block;
    padding: 6px 14px;
    margin-left: 12px;

    background: linear-gradient(270deg, #A3CFC0, #E099B1, #A3CFC0);
    background-size: 200% auto; 
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(163, 207, 192, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.note-fixed a.btn-link:hover {

    background-position: right center;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(224, 153, 177, 0.4);
    color: #fff;
}

.note-fixed a.btn-link:active {
    transform: translateY(0) scale(0.98);
}
.footer-toggle {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #A3CFC0;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  z-index: 20;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #111;
  line-height: 20px;
}

.footer-toggle:hover + .site-footer,
.site-footer:hover {
  bottom: 0;
}
/* overlay mobile-friendly */
#ekizo-intro{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;               /* important pour mobile */
  height: 100vh;              /* important pour mobile */
  background: rgba(0,0,0,0.85);
  z-index: 2147483647;        /* maximal pour éviter d'être masqué */
  pointer-events: none;
  overflow: hidden;
  display: block;
  transition: opacity 0.35s ease;
  -webkit-transform: translateZ(0); /* force compositing layer */
}

/* cacher proprement */
#ekizo-intro.hide { opacity: 0; visibility: hidden; }

/* flash style */
.ekizo-flash{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  filter: blur(10px);
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
  transform-origin: center center;
}

/* court "pop" rapide */
@keyframes ekizoFlash {
  0%   { opacity: 0; transform: scale(0.6); }
  20%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* réduire animations pour users qui ont demandé */
@media (prefers-reduced-motion: reduce) {
  #ekizo-intro { display: none !important; }
}


@media (max-width: 768px) {
  :root { --footer-height: 88px; }

  body {
    background-position: center top;
    background-size: cover;
    -webkit-text-size-adjust: 100%;
  }

  .overlay {
    padding: 22px 18px calc(22px + var(--footer-height));
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.05;
    margin-bottom: 8px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    opacity: 1;

  }

  h2 {
    font-size: 1.15rem;
    margin-bottom: 18px;
    font-style: italic;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.55);
    opacity: 1;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    padding: 0 6px;
    opacity: 1;
  }

  .btn {
    width: 100%;
    max-width: 480px;
    padding: 14px 18px;
    font-size: 1.05rem;
    border-radius: 12px;
    box-sizing: border-box;
    min-height: 48px;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    touch-action: manipulation;
  }
  .btn + .btn { margin-top: 6px; }

  .footer-toggle { display: none; } 

  .site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.22);
    z-index: 9999;
    transition: transform 0.25s ease;
    transform: translateY(0);
    background-size: 300% 300%;
  }

  .note-fixed { display: none !important; }

  h1, h2, .btn, .site-footer {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  h1, h2 { text-shadow: 1px 1px 6px rgba(0,0,0,0.55); }

  .overlay::after {
    content: "";
    display: block;
    height: var(--footer-height);
    width: 100%;
    pointer-events: none;
  }

  @keyframes fadeInUp { 0% {opacity:0; transform:translateY(16px);} 100% {opacity:1; transform:translateY(0);} }

  html, body { overflow-x: hidden; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.site-footer a { color:#111; text-decoration:none; font-weight:bold;}
.site-footer a:hover { text-decoration:underline;}
.dev-credit { margin-top:10px; font-size:12px; color:rgba(0,0,0,0.7);}


html.fast-load *,
html.fast-load *::before,
html.fast-load *::after {
  animation: none !important;
  transition: none !important;
}

html.fast-load body {
  opacity: 1 !important;
}

html.fast-load .overlay,
html.fast-load h1,
html.fast-load h2,
html.fast-load .buttons {
  opacity: 1 !important;
  transform: none !important;
} 

@media (max-width: 768px) {

  .footer-toggle {
    display: block !important;
    z-index: 100001 !important;
    pointer-events: auto !important;
  }


  .site-footer {
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    transform: translateY(100%) !important; 
    transition: transform 0.35s ease-in-out !important;
    z-index: 100000 !important;
    will-change: transform;
    pointer-events: auto;
  }


  .site-footer.open {
    transform: translateY(0) !important;
  }

  .footer-toggle:hover + .site-footer,
  .site-footer:hover {
    transform: translateY(0) !important;
    bottom: 0 !important;
  }
}
