:root{
  --c1:#FF6B35;           
  --c2:#810000;           
  --c-overlay:#FF6B35;
  --c-primary:#FF6B35;
  --c-primary-dark:#592512;
  --c-text:#333;
  --c-muted:#5a6772;
  --c-border:#d0d0d0;
  --r:8px;
  --shadow:0 0 8px rgba(0,0,0,.4);
  --font:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

*,*::before,*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}
body {
    display: flex;
    min-height: 100vh;
    font-family: var(--font);
    background: #f7f8fa;
    color: var(--c-text);
}
.left-panel,
.right-panel {
    flex: 1;
    display: flex;
    position: relative; 
}
.left-panel {
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgb(255 107 53) 0%, rgb(89 37 18) 100%);
}
.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
}
.right-panel {
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,.06);
    position: relative;
}
.logo-large {
    position: relative;
    z-index: 1;
    width: 70%;
    max-width: 260px;
    margin-top: -30%;
    filter: drop-shadow(var(--shadow));
}
.branding-text {
    position: absolute;
    bottom: 2.2rem;
    left: 2rem;
    z-index: 1;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.8rem;
    letter-spacing: .15rem;
    color: #e2e9ee;
}
.branding-text span {
    display: block;
}
.branding-text .title {
    font-size: 2.4rem;
}
.branding-text .title-2 {
    font-weight: 600;
    margin-bottom: 10px;
}
h1 {
    margin-bottom: .5rem;
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--c-primary);
    letter-spacing: .1rem;
}
h2 {
    font-weight: 500;
    color: var(--c-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
button {
    padding: .95rem 1.4rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    transition: background .3s;
}
button.primary {
    background: var(--c-primary);
    color: #fff;
}
button.primary:hover {
    background: var(--c-primary-dark);
}
button.secondary {
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}
button.secondary:hover {
    background: var(--c-primary);
    color: #fff;
}
button.access {
    background: #f1f1f1;
    color: #444;
    font-weight: 500;
    border: 1.5px solid var(--c-border);
}
button.access:hover {
    background: #d8d8d8;
}
.full-span {
    grid-column: 1/3;
}
footer {
    text-align: center;
    font-size: .9rem;
    color: #999;
    margin-top: auto;
}
footer a {
    text-decoration: none;
    font-weight: 600;
    color: #676767;
}
.modal-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--c-overlay);
    z-index: 10;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    flex-direction: column;
    justify-content: center;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, .06);
    width: 100%;
    padding: 3rem 4rem;
    position: relative;
    z-index: 20;
    height: 100%;
}
.modal h3 {
    margin-bottom: .5rem;
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--c-primary);
    letter-spacing: .1rem;
}
.modal label {
    display: block;
    font-weight: 600;
    margin-bottom: .3rem;
    color: var(--c-primary);
}
.modal input[type="text"],
.modal input[type="password"] {
    width: 100%;
    padding: .6rem .8rem;
    margin-bottom: 1.2rem;
    border: 1.5px solid var(--c-border);
    border-radius: var(--r);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color .3s;
}
.modal input[type="text"]:focus,
.modal input[type="password"]:focus {
    outline: none;
    border-color: var(--c-primary);
}
#closeModalBtn, #closeModalBtn2, #closeModalBtn3, #closeModalBtn4, #closeModalBtn5 {
    color: var(--c-muted);
    font-size: 1.1rem;
    padding: 0;
}
.modal .modal-close {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--c-primary-dark);
    cursor: pointer;
    font-weight: 700;
}
.footer-modal {
    margin-top: 40px;
}
@media (max-width: 500px) {
    body {
        flex-direction: column;
    }
    .left-panel,
    .right-panel {
        flex: none;
        width: 100%;
    }
    .left-panel {
        height: max-content;
        padding: 1.2rem 1.2rem 0;
        justify-content: flex-end;
        flex-direction: column;
    }
    .right-panel {
        padding: 1.5rem 2rem;
    }
    .logo-large {
        max-width: 70px;
        margin-top: 0%;
        filter: drop-shadow(var(--shadow));
    }
    .branding-text {
        position: static;
        padding-top: 0.8rem;
        text-align: center;
        font-size: 1.3rem;
        letter-spacing: 0.1rem;
        bottom: auto;
        left: auto;
    }
    .grid-2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .full-span {
        grid-column: auto;
    }
    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    h2 {
        font-size: 0.9rem;
        margin-bottom: 1.3rem;
    }
    button {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    button.primary:hover {
        background: var(--c-primary-dark);
    }
    button.secondary:hover {
        background: var(--c-primary);
        color: #fff;
    }
    button.access:hover {
        background: #d8d8d8;
    }
    .modal {
        padding: 2rem 2.5rem;
        width: 100%;
        height: 100%;
        box-shadow: none;
    }
    .modal input[type="text"],
    .modal input[type="password"] {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
}
@media (max-width: 400px) {
    .logo-large {
        max-width: 120px;
        margin-top: -5%;
    }
    .branding-text {
        font-size: 1.1rem;
        padding-top: 0.6rem;
        letter-spacing: 0.08rem;
    }
    h1 {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    button {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    .modal input[type="text"],
    .modal input[type="password"] {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}
@media (max-width: 320px) {
    .logo-large {
        max-width: 100px;
        margin-top: 0;
    }
    .branding-text {
        font-size: 1rem;
        padding-top: 0.4rem;
        letter-spacing: 0.06rem;
    }
    h1, .modal h3 {
        font-size: 1.2rem;
    }
    h2, #closeModalBtn, #closeModalBtn2, #closeModalBtn3, #closeModalBtn4, #closeModalBtn5 {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
    button {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
    }
    .modal input[type="text"],
    .modal input[type="password"] {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
}
.modal-overlay { display:none; }
.modal-overlay.active { display:flex; }
.center {
    text-align: center;
    margin-top: 10px;
    color: grey;
    text-decoration: none;
}
.center a {
    color: grey;
    text-decoration: none;
}
.bandeau {
    position: fixed;
    z-index: 100;
    width: 80%;
    left: 10%;
    top: 1%;
    text-align: center;
    background: #AA0000;
    padding: 1em;
    border-radius: 10px;
    color: white;
    box-shadow: -5px 0 15px rgb(92 92 92 / 40%);
    border: 2px solid #9d0000;
}
.bandeau a {
    text-decoration: none;
    color:rgb(164, 164, 164);
}
.remebercheckbox {
    display: inline-flex;
    gap: 10px;
    align-items: anchor-center;
    justify-content: center;
    width: 100%;
    margin: 0 0 20px 0;
}
.remebercheckbox input {
    accent-color: var(--c-primary);
    width: 15px;
    height: 15px;
}