
:root{--accent1:#A3CFC0;--accent2:#E099B1;}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:Inter,Segoe UI,Arial;
  height:100vh;overflow:hidden;
  background:linear-gradient(270deg,#A3CFC0,#E099B1,#A3CFC0,#E099B1);
  background-size:800% 800%;
  animation: gradientBG 15s ease infinite;
  position:relative;
}
@keyframes gradientBG{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
  
}
.login-loader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,10,10,.35);
  backdrop-filter: blur(4px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease, visibility .25s ease;
}

.login-loader.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.login-loader__box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:24px 22px;
  border-radius:18px;
  background:rgba(255,255,255,.16);
  box-shadow:0 14px 40px rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.18);
}

.camera-carousel{
  position:relative;
  width:130px;
  height:130px;
  border-radius:50%;
  animation:spinCarousel 2.8s linear infinite;
}

.camera-carousel img{
  position:absolute;
  width:28px;
  height:28px;
  object-fit:contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  opacity:.95;
}

.camera-carousel img:nth-child(1){ top:0; left:50%; transform:translateX(-50%); }
.camera-carousel img:nth-child(2){ top:22px; right:10px; }
.camera-carousel img:nth-child(3){ top:50%; right:0; transform:translateY(-50%); }
.camera-carousel img:nth-child(4){ bottom:22px; right:10px; }
.camera-carousel img:nth-child(5){ bottom:0; left:50%; transform:translateX(-50%); }
.camera-carousel img:nth-child(6){ top:50%; left:0; transform:translateY(-50%); }

.loader-ring{
  width:42px;
  height:42px;
  border:4px solid rgba(255,255,255,.25);
  border-top-color:#fff;
  border-radius:50%;
  animation:spinRing 0.9s linear infinite;
}

.loader-text{
  color:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.3px;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}

@keyframes spinCarousel{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@keyframes spinRing{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .camera-carousel,
  .loader-ring{
    animation:none;
  }
}
.snowflake {
  position: fixed;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Animation de chute */
@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.2;
  }
}

.iconFloat{
  position:absolute;
  width:60px;
  height:60px;
  opacity:0.15;
  z-index:0;
  animation: floatIcon linear infinite;
}
@keyframes floatIcon {
  0% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(50px,-80px) rotate(180deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}


.card{
  width:100%;max-width:420px;background:#d9d9d9;padding:28px;border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.18);
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:1;
}
h2{margin:0 0 12px;font-size:1.6rem;color:#222;text-align:center}
label{display:block;margin:10px 0 6px;color:#444;font-weight:600}
input[type="text"],input[type="password"]{width:100%;padding:12px;border-radius:8px;border:1px solid #e4e4e7;font-size:1rem;}

.btn{
  display:block;width:100%;padding:12px;border-radius:10px;border:none;
  background:linear-gradient(90deg,#00cc66,#009933);
  color:#fff;font-weight:800;font-size:1rem;cursor:pointer;margin-top:16px;
  transition:transform 0.2s;
}
.btn:hover{transform:translateY(-2px);}
.err{background:#fff2f2;color:#b12;padding:10px;border-radius:8px;margin-bottom:12px;text-align:center;}

.access-btn.orange{
  display:block;width:100%;padding:10px;margin-top:12px;text-align:center;
  border-radius:8px;background:linear-gradient(90deg,#ff7f00,#ff9900);
  color:#fff;font-weight:700;text-decoration:none;
  transition: transform 0.2s, opacity 0.2s;
}
.access-btn.orange:hover{transform:translateY(-2px);opacity:0.9;}


.note-fixed a { color: #A3CFC0; text-decoration: underline; }

.access-btn.default{
  display:block;width:100%;padding:10px;margin-top:12px;text-align:center;
  border-radius:8px;background:linear-gradient(90deg,#E099B1,#A3CFC0);
  color:#111;font-weight:700;text-decoration:none;
  transition: transform 0.2s, opacity 0.2s;
  
}
.access-btn.default:hover{transform:translateY(-2px);opacity:0.9;}
.foot{margin-top:12px;display:flex;justify-content:space-between;font-size:.8rem;color:#666;}
@media(max-width:480px){.card{padding:20px;width:90%;}}

/* NOTE: added fixed note in bottom-right */
.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;
}

/* Media query correctement placée */
@media (max-width: 480px) {
  body {
    overflow-y: auto; /* permet le scroll si le contenu dépasse */
    padding: 20px 0;
  }
}


  .card {
    width: 95%;
    max-width: 380px;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    top: 50%;
    transform: translate(-50%, -50%);
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }

  label {
    font-size: 0.95rem;
  }

  input[type="text"], input[type="password"] {
    font-size: 0.95rem;
    padding: 11px;
  }

  .btn {
    font-size: 1rem;
    padding: 14px;
    border-radius: 12px;
  }

  .access-btn.orange,
  .access-btn.default {
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .foot {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* NOTE FIXED */
  .note-fixed {
    bottom: 12px;
    right: 12px;
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  /* Icons flottants */
  .iconFloat {
    width: 35px;
    height: 35px;
    opacity: 0.1;
  }
.mobile-info {
    display: none; /* Masqué par défaut */
    font-size: 1.2rem;           /* Texte encore plus visible */
    font-weight: 700;            /* Gras pour accentuer */
    color: #fff200;              /* Jaune vif pour attirer l’œil */
    text-align: center;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.6); /* Fond sombre semi-transparent */
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    text-shadow: 0 0 10px #fff200, 0 0 20px #ffdd57; /* Glow lumineux */
    transition: all 0.3s ease;
    line-height: 1.6;
}

.mobile-info::before {
    content: "⚠ "; /* Icône pour attirer l'œil */
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .mobile-info {
        display: block; /* Visible uniquement en mobile */
    }
}
.note-fixed a.btn-link {
    display: inline-block;
    padding: 6px 14px; /* Un peu plus d'espace pour le texte */
    margin-left: 12px;
    /* Utilisation de ton dégradé spécifique */
    background: linear-gradient(270deg, #A3CFC0, #E099B1, #A3CFC0);
    background-size: 200% auto; /* Permet un effet de glissement au survol */
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px; /* Plus arrondi pour coller au style pastel */
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(163, 207, 192, 0.3); /* Ombre colorée discrète */
    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 {
    /* Décale le dégradé pour changer la couleur dominante au survol */
    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);
}
/* =========================
   RESPONSIVE MOBILE PROPRE
   ========================= */
@media (max-width: 768px) {

  body {
    overflow-y: auto;
    padding: 16px 0;
  }

  .card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    width: 92%;
    max-width: 380px;
    padding: 22px;
    border-radius: 14px;
  }

  h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
  }

  label {
    font-size: 0.95rem;
  }

  input[type="text"],
  input[type="password"] {
    font-size: 1rem;
    padding: 12px;
  }

  .btn {
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 12px;
  }

  .access-btn.orange,
  .access-btn.default {
    padding: 13px;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .foot {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    font-size: 0.75rem;
  }

  .note-fixed {
    bottom: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .iconFloat {
    width: 30px;
    height: 30px;
    opacity: 0.08;
  }
}

