:root { --red: #CC3333; --red-dark: #b7272d; --ink: #393638; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--red);  }
button, input { font: inherit; }
.bell-screen, .connection-screen { position: relative; min-height: 100vh; min-height: 100svh; background: var(--red); overflow: hidden; }
.bell-screen { display: flex; justify-content: center; align-items: center; padding: 18px 0px 18px 155px; }
.bell-screen { animation: arriveeDroite 1s linear both; }
@keyframes arriveeDroite { 0% { transform: translateX(100%); } 100% { transform: translateX(0); } }
.bell-illustration { display: block; width: min(76vw, 930px, calc((100svh - 210px) * 930 / 629)); height: auto; user-select: none; }
.scroll-down-container { position: absolute; bottom: 11px; left: 50%; transform: translateX(-50%); display: grid; place-items: center; width: 70px; height: 70px; color: white; border-radius: 50%; text-decoration: none; }
.scroll-down-container:hover, .scroll-down-container:focus-visible { background: rgba(255,255,255,.1); outline-offset: 3px; }
.scroll-down { display: block; width: 58px; height: 58px; /* sans rebond -- animation: float-arrow 2.4s ease-in-out infinite;*/ }
@keyframes float-arrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.connection-screen { display: flex; justify-content: center; align-items: center; padding: 25px 14px 40px; }
.connection-content { width: min(100%, 690px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.logo-animated { display: block; width: min(100%, 395px); height: auto; margin: 0 auto 0; /* marges rouges incluses dans le GIF original */ }
.served-login { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 630px); padding-bottom: 0px; }
.login { position: relative; z-index: 2; width: min(90%, 360px); margin: 0 auto; padding: 22px 25px; background: #fff; border-radius: 6px; box-shadow: 0 12px 30px rgba(75,0,0,.17); }
.login h3 { margin: 0 0 16px; text-align: center; font-size: 21px; font-weight: 600; }
.field { margin-bottom: 13px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: bold; }
.field input { width: 100%; height: 41px; background: #fcfbfb; border: 1px solid #ddd5d5; border-radius: 3px; padding: 9px 11px; outline: none; }
.field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,47,50,.13); }
.password-field { position: relative; }
.password-field input { padding-right: 78px; }
.toggle-password { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: none; padding: 6px 4px; color: var(--red); font-size: 11px; cursor: pointer; }
.submit { width: 100%; min-height: 42px; margin-top: 4px; border: 0; border-radius: 3px; background: var(--red); color: white; font-weight: bold; cursor: pointer; }
.submit:hover { background: var(--red-dark); }
.submit span { margin-left: 9px; font-size: 19px; vertical-align: -1px; }
.form-status { margin: 0; text-align: center; color: #666; font-size: 12px; }
.form-status:not(:empty) { margin-top: 10px; }
/* .serving-tray { position: absolute; z-index: 1; top: calc(100% - 100px); left: 50%; transform: translateX(-50%); width: 100%; max-width: 631px; height: auto; pointer-events: none; } */
.serving-tray { position: relative; z-index: 1; margin-top:35px; top: auto; left: 48%; transform: translateX(-50%); width: 100%; max-width: 631px; height: auto; pointer-events: none; }
.site-footer { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 10px; min-height: 80px; padding: 18px; text-align: center; }
.footer-logo { width: 125px; height: auto; }
.site-footer p, .site-footer a { margin: 0; color: #ffff; font-size: 12px; text-decoration: none;}
.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; }


/* Écrans étroits : tablettes et mobiles */
@media (max-width: 700px) {

    .bell-screen {
        padding: 18px 0 18px 12vw;
    }

    .bell-illustration {
        width: min(88vw, calc((100svh - 155px) * 930 / 629));
    }

    .scroll-down-container {
        width: 60px;
        height: 60px;
    }

    .scroll-down {
        width: 50px;
        height: 50px;
    }

    .connection-screen {
        padding: 35px 12px 45px;
        overflow: visible;
    }

    .connection-content {
        width: 100%;
    }

    .logo-animated {
        width: min(100%, 335px);
    }

    .login {
        padding: 20px;
    }
}

/* Écrans larges mais peu hauts */
@media (max-height: 670px) and (min-width: 701px) {

    .bell-illustration {
        width: min(76vw, 930px, calc((100svh - 160px) * 930 / 629));
    }

    .connection-screen {
        overflow: visible;
    }

    .logo-animated {
        width: 300px;
    }

    .login {
        padding: 15px 20px;
    }

    .field {
        margin-bottom: 8px;
    }

    .serving-tray {
        width: min(100%, 500px);
    }
}

/* Petit écran : mobiles étroits */
@media (max-width: 400px) {

    .bell-screen {
        padding-left: 20vw;
    }

    .bell-illustration {
        width: min(92vw, calc((100svh - 140px) * 930 / 629));
    }

    .logo-animated {
        width: min(100%, 290px);
    }

    .login {
        width: 94%;
        padding: 18px;
    }

    .login h3 {
        font-size: 19px;
    }

    .serving-tray {
        margin-top: 25px;
    }
}


/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bell-screen, .scroll-down { animation: none; } }
