/* ❄ Effet neige (désactivé pour l'instant)
.snowflake {
    position: absolute;
    color: white;
    font-size: 1rem;
    user-select: none;
    z-index: 9999;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
*/

@keyframes fall {
    0% { transform: translateY(-350px); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(100vh); opacity: 0.8; }
}

/* ===== FONT ===== */
@font-face {
    font-family: "Insaniburger";
    src: url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.eot");
    src: url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/4124a6204d35abaf22db32c19d62d73e.svg#Insaniburger") format("svg");
    font-weight: normal;
    font-style: normal;
}
.password-wrapper { position: relative; width: 100%; display: inline-block; }
.password-wrapper .input { width: 100%; box-sizing: border-box; padding-right: 44px; /* espace pour le bouton */ }

.toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  line-height: 1;
  color: inherit;
}
.toggle-password[aria-pressed="true"] { opacity: 0.8; }
/* ===== BASE ===== */
body {
    margin: 0;
    font-family: 'Insaniburger', sans-serif;

    background-image:
        linear-gradient(-45deg,
            rgba(255,154,158,0.18),
            rgba(250,208,196,0.18),
            rgba(251,194,235,0.18),
            rgba(166,193,238,0.18)
        ),
        url('480987942010100.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: gradientBG 60s ease infinite;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.extra-mention {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6); 
  margin-top: 5px;
  text-align: center;
}

.extra-mention a {
  color: #005d3a; 
  text-decoration: none;
  font-weight: bold;
}

.extra-mention a:hover {
  text-decoration: underline;
}
#icons-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.18;
    will-change: transform, left, top;
    transform-origin: center center;
}

@media screen and (max-width: 480px) {
    .floating-icon {
        width: 26px;
        height: 26px;
        opacity: 0.14;
    }
}
#particlesCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container,
.right-side-logo,
.note-fixed {
    position: relative;
    z-index: 2;
}
.big-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background-image: url('faviconReclamo.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12; 
    z-index: 0;
}
.button .btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-sizing: border-box;
  animation: btn-spin 0.9s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.button[disabled], .button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}
.container {
    background: rgba(160, 171, 181, 0.78);
    padding: 46px;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12); 
    text-align: center;
    z-index: 2;
    position: relative;
margin-left: 50px;

    width: 390px;
    min-height: 180px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transform: translateX(50px);
    transition: transform 0.25s ease;
}
@media screen and (max-width: 720px) {
    .container {
        transform: none;
        width: 90%;
        padding: 25px;
    }
}
.logo-center {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
}
h2 {
    margin-bottom: 22px;
    color: #c33;
    font-size: 1.75rem;
    letter-spacing: 1px;
}
.form-row {
    margin-bottom: 20px;
    text-align: left;
}
label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    font-size: 0.95rem;
}
.input {
    width: 94%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
}
.input:focus {
    border: 2px solid #06d6a0;
    box-shadow: 0 0 5px rgba(6,214,160,0.2);
}

.button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #950558, #Eadda0);
    color: #fff;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}
.mention {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #333;
    opacity: 0.7;
}
.date-time {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 2.5rem;
    color: #222;
    opacity: 0.8;
    z-index: 2;
    font-family: 'Insaniburger', sans-serif;
}

.note-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}
.note-fixed svg { vertical-align: middle; margin-right: 4px; }
.note-fixed a { color: #00f; text-decoration: underline; }
@media screen and (max-width: 480px) {
    body { overflow: auto; }
    .container { width: 90%; padding: 25px; transform: none; }
    .big-icon { width: 300px; height: 300px; opacity: 0.08; }
    .floating-icon { width: 25px; height: 25px; opacity: 0.1; }
    .button { font-size: 0.95rem; padding: 10px; }
    h2 { font-size: 1.6rem; }
    .date-time { font-size: 2rem; }
}

.return-button {
    margin-top: 15px;
    background: linear-gradient(145deg, #555555, #888888);
    font-size: 0.95rem;
}

.return-button:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0,0,0,0.18);
}

.loop-wrapper {
  margin: 0 auto;
  position: relative;
  display: block;
  width: 600px;
  height: 250px;
  overflow: hidden;
  border-bottom: 3px solid #fff;
  color: #fff;
}
.main-layout {
    display: flex;
    width: 100%;
    max-width: 1200px; 
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    z-index: 2;
}

.container {
    background: rgba(160, 171, 181, 0.78);
    padding: 46px;
    border-radius: 30px;
    width: 390px;
    margin: 0; 
    transform: none !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-left: 130px;
}

.right-side-logo {
    display: flex;
    flex-direction: column;   
    align-items: center;     
    justify-content: flex-start;
    flex: 1;
    text-align: center;       
}

.right-side-logo img {
    max-width: 500px; 
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: floating 6s ease-in-out infinite; 
}

@media screen and (max-width: 900px) {
    .main-layout {
        flex-direction: column-reverse; 
    }
    .right-side-logo img {
        max-width: 250px;
        margin-bottom: 20px;
    }
}
.big-logo-text {
    margin-top: 15px;       
    font-size: 1.6rem;    
    font-weight: bold;   
    color: #ffffff;      
    text-align: center; 
    letter-spacing: 1px;    
    text-shadow: 0 3px 8px rgba(0,0,0,0.4); 
}

@keyframes fadeInLogoText {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.note-fixed a.btn-link {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 10px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.note-fixed a.btn-link:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
/* =========================================================
   MOBILE ONLY — Login card clean, logo/text hidden
   À placer tout à la fin du fichier CSS
   ========================================================= */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        min-height: 100%;
        overflow-x: hidden;
    }

    body {
        height: auto;
        min-height: 100svh;
        padding: 16px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    /* Masque tous les éléments décoratifs / non utiles sur mobile */
    #icons-layer,
    #particlesCanvas,
    .right-side-logo,
    .big-icon,
    .note-fixed,
    .date-time,
    .extra-mention,
    .mention {
        display: none !important;
    }

    /* Le layout principal devient simple */
    .main-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Card login centrée et adaptée au téléphone */
    .container {
        width: 100%;
        max-width: 420px;
        margin: 0 auto !important;
        margin-left: 0 !important;
        transform: none !important;
        padding: 22px 18px;
        border-radius: 22px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
        background: rgba(160, 171, 181, 0.90);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
        box-sizing: border-box;
    }

    /* Cache le logo dans la card */
    .logo-center {
        display: none !important;
    }

    /* Titre plus compact */
    h2 {
        margin: 0 0 18px 0;
        font-size: 1.25rem;
        line-height: 1.25;
        letter-spacing: 0.3px;
    }

    .form-row {
        margin-bottom: 14px;
    }

    label {
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .input {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        font-size: 16px; /* évite le zoom iPhone */
        border-radius: 10px;
    }

    .password-wrapper {
        width: 100%;
    }

    .password-wrapper .input {
        padding-right: 46px;
    }

    .toggle-password {
        right: 8px;
        font-size: 18px;
        padding: 6px;
    }

    .button {
        width: 100%;
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .return-button {
        margin-top: 12px;
    }

    .error-message {
        font-size: 0.88rem;
        padding: 10px 11px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
}

/* Très petits écrans */
@media screen and (max-width: 420px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 18px 14px;
        border-radius: 18px;
    }

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

    .form-row {
        margin-bottom: 12px;
    }

    label {
        font-size: 0.88rem;
    }

    .input {
        padding: 11px 12px;
        border-radius: 9px;
    }

    .button {
        padding: 11px 12px;
        font-size: 0.96rem;
    }

    .toggle-password {
        font-size: 17px;
    }

    .error-message {
        font-size: 0.84rem;
    }
}

/* Pour les téléphones en mode paysage */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .container {
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 16px 14px;
    }

    .logo-center,
    .right-side-logo,
    .big-icon,
    .note-fixed,
    .date-time,
    .extra-mention,
    .mention {
        display: none !important;
    }
}