/* PT Sans local */
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-sans-400.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/pt-sans-700.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/pt-sans-italic-400.ttf') format('truetype');
}
@font-face {
    font-family: 'PT Sans';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/pt-sans-italic-700.ttf') format('truetype');
}

/* Variables */
:root {
    --brand:       #006ab3;
    --brand-dark:  #005a98;
    --footer-bg:   #2d2c2c;
    --footer-text: #8f9192;
    --max-w:       800px;
    --header-h:    90px;
    --footer-h:    110px;
}

/* Base */
* {
    font-family: 'PT Sans', sans-serif;
}

body {
    background: #f5f2ee;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    padding-top: var(--header-h);
    padding-bottom: var(--footer-h);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--brand);
    color: #fff;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #2d2c2c;
}

.site-header .header-inner {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
}

.site-header .logo-placeholder {
    display: flex;
    align-items: center;
}

.site-header .logo-placeholder img {
    height: 70px;
    width: auto;
}

.lang-switcher .btn-lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    font-size: .8rem;
    font-family: 'PT Sans', sans-serif;
    padding: .22rem .6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    text-decoration: none;
}

.lang-switcher .btn-lang.active,
.lang-switcher .btn-lang:hover {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.content-card {
    background: var(--brand);
    color: #fff;
    width: 100%;
    max-width: var(--max-w);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    text-align: center;
}

.content-card h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: .5rem;
}

.content-card p.lead {
    font-size: 1rem;
    opacity: .9;
}

/* ICÔNE STATUT */
.status-icon {
    font-size: 8rem;
    margin-bottom: 1.25rem;
    opacity: .9;
}

/* FORMULAIRE */
.captive-form {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* Champ password */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
    margin: 0 auto;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding: .55rem 2.8rem .55rem .85rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'PT Sans', sans-serif;
    outline: none;
    background: rgba(255, 255, 255, .92);
    color: #222;
}

.password-wrapper input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .4);
}

.btn-eye {
    position: absolute;
    right: .6rem;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.btn-eye:hover {
    color: var(--brand);
}

.form-check-label {
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
}

.btn-inline-link {
    background: none;
    border: none;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* MESSAGE D'ERREUR */
.error-msg {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #c0392b;
    border: 2px solid #e74c3c;
    color: #ffffff;
    font-size: .95rem;
    font-weight: 700;
    padding: .55rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* TEXTE CGU */
.cgu-notice {
    font-size: 1.785rem;
    opacity: .88;
    line-height: 1.4;
    margin: 2rem 0;
    text-align: justify;
}

.cgu-notice a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* BOUTON OK */
.btn-ok {
    width: 154px;
    height: 96px;
    background: #61bbf8;
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: .08em;
    border: 2px solid #2d2c2c;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    transition: transform .15s, box-shadow .15s, background .15s;
    display: block;
    margin: 0 auto;
}

.btn-ok:hover:not(:disabled) {
    background: #3faef5;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .32);
    transform: translateY(-3px);
}

.btn-ok:active:not(:disabled) {
    transform: scale(.93);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.btn-ok:disabled {
    background: rgba(97, 187, 248, .4);
    color: rgba(255, 255, 255, .5);
    border-color: rgba(45, 44, 44, .3);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* FOOTER */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    background: var(--footer-bg);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer .footer-inner {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
}

.footer-row-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0 .6rem;
}

.footer-row-logos img {
    height: 47px;
    width: auto;
    display: block;
}

.footer-row-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    flex-wrap: wrap;
    padding: .5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-row-links .btn-footer-link {
    background: transparent;
    border: none;
    color: var(--footer-text);
    font-size: .95rem;
    font-family: 'PT Sans', sans-serif;
    padding: .15rem .5rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}

.footer-row-links .btn-footer-link:hover {
    color: #fff;
}

.footer-row-links .separator {
    color: var(--footer-text);
    font-size: .9rem;
}

/* PANNEAU OVERLAY */
.info-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.info-panel-overlay.active {
    display: flex;
}

.info-panel {
    background: #ffffff;
    color: var(--brand);
    border: 5px solid var(--brand);
    border-radius: 10px;
    max-width: 1040px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}

.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 106, 179, .2);
    flex-shrink: 0;
}

.info-panel-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand);
}

.info-panel-body {
    overflow-y: auto;
    padding: 1.5rem;
    flex: 1;
}

.info-panel-body p {
    font-size: .92rem;
    color: #000;
    line-height: 1.65;
    margin-bottom: .75rem;
    text-align: justify;
}

.info-panel-body a {
    color: var(--brand);
    opacity: .85;
}

.info-panel-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
    margin: 1.5rem 0 .5rem;
    padding-bottom: .3rem;
    border-bottom: 2px solid rgba(0, 106, 179, .2);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.info-panel-body h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--brand);
    margin: 1rem 0 .4rem;
}

.info-panel-body ul {
    padding-left: 1.4rem;
    margin-bottom: .75rem;
}

.info-panel-body ul li {
    font-size: .92rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: .25rem;
    text-align: justify;
}

.info-panel-body blockquote {
    border-left: 3px solid var(--brand);
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: rgba(0, 106, 179, .05);
    border-radius: 0 6px 6px 0;
}

.info-panel-body blockquote p {
    font-style: italic;
    color: #000;
    margin-bottom: .4rem;
    text-align: justify;
}

.cgu-intro {
    margin-bottom: 1rem;
}

.info-panel-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 106, 179, .2);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.btn-close-bottom {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: .5rem 2.5rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-close-bottom:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-close-panel {
    background: rgba(0, 106, 179, .1);
    border: none;
    color: var(--brand);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.btn-close-panel:hover {
    background: rgba(0, 106, 179, .2);
}

/* RESPONSIVE mobile */
@media (max-width: 480px) {
    :root {
        --header-h: 86px;
        --footer-h: 120px;
    }

    .site-header .logo-placeholder img {
        height: 48px;
    }

    .cgu-notice,
    .cgu-notice a {
        font-size: 1.5rem;
    }

    .password-wrapper {
        width: 100%;
    }

    .footer-row-logos {
        padding: 1.1rem 0 .6rem;
    }

    .footer-row-links {
        padding: .5rem 0;
    }

    .footer-row-links .btn-footer-link {
        font-size: .85rem;
    }

    .footer-row-logos img {
        height: 28px;
    }

    .btn-ok {
        width: 128px;
        height: 64px;
        font-size: 1.3rem;
    }
}

/* PETIT ECRAN EN HAUTEUR */
@media (max-height: 700px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding-bottom: 0;
    }

    .main-content {
        min-height: calc(100vh - var(--header-h));
    }

    .site-footer {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
    }
}
 