﻿:root {
    --color-primary: #003567;
    --color-secondary: #c0834f;
    --font-family-base: "Segoe UI", sans-serif;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1rem;
}

button {
    font-size: 1rem;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

p {
    font-size: .9rem;
}

ul {
    font-size: 1rem;
}

li {
    font-size: .9rem;
}

span {
    font-size: 1rem;
}

@media (max-width: 1024px) {
    h2 {
        font-size: 1.5rem;
    }

    ul {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    ul {
        font-size: 0.8rem;
    }

    li {
        font-size: 0.8rem;
    }
}

*, *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    list-style-type: none;
}

body {
    overflow-x: hidden;
}
.help-floating {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    z-index: 30;
    scale: 0.8;
}

.help-floating-link {
    display: inline-block;
    text-decoration: none;
}

.help-floating-svg {
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transform-origin: center;
    will-change: transform;
    cursor: help;
}




.menu-open {
    overflow: hidden;
    height: 100vh;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 98;
}

button:hover {
    filter: hue-rotate(-10deg);
}


.loading-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: inherit;
}


.loading-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.loading-text {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: inherit;
    animation: loadingPulse 1s ease-in-out infinite alternate;
    color: white;
}

@keyframes loadingPulse {
    0% {
        opacity: 0.45;
    }

    100% {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spinner {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid white;
    border-top-color: white;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

.spinner-top {
    border-color: rgba(0, 0, 0, 0.35);
    border-top-color: rgba(255, 255, 255, 1);
}

.title-h1 {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: .5rem;
    margin-top: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(0%);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 50%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}


.cc-isolation-container {
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.45);
    color: white;
    z-index: 9999;
    padding: 0 1rem;
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    animation: slideUp 0.5s ease-out forwards;
    overflow: hidden;
}

    .cc-isolation-container.cc-dismissed {
        animation: slideDown 0.4s ease-in-out forwards;
    }

.cc-isolation-container {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    color: white;
    z-index: 9999;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    font-family: 'Segoe UI', sans-serif;
    animation: slideUp 0.5s ease-out forwards;
    text-align: center;
}

    .cc-isolation-container svg,
    .cc-isolation-container img {
        display: none;
    }

.cc-text-brand-text {
    margin-top: 5px;
    font-size: 1rem;
}

.cc-isolation-container h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: bold;
}

.cc-isolation-container p {
    font-size: 1rem;
    color: white;
    margin: 0.5rem 0 1rem;
}

.cc-flex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cc-self-stretch > button {
    color: white;
    border: none;
    border-radius: 6px;
    margin: 15px auto 0;
    padding: 0.5rem 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    border: 1px solid white;
}

.cc-decoration-brand-text {
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

    .cc-decoration-brand-text:hover {
        color: white;
    }

.overflow {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    top: 0;
    left: 0;
}

.container {
    width: calc(100vw - 375px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 auto;
}

.img-container {
    display: flex;
    height: 100px;
    max-height: 100px;
    align-self: flex-start;
}

.logo-societe {
    object-fit: scale-down;
    margin: 10px;
    padding: 10px;
}

.logoSociete {
    width: 200px;
    margin: 10px;
}

.data-container {
    width: clamp(600px, 80%, 1500px);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.perso-container {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 5px;
    padding-bottom: 5px;
    margin: 20px 0;
}

.title-h3 {
    color: white;
    padding: 5px 15px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 5px 5px 0 0;
    margin-bottom: 5px;
}

.btn {
    width: 335px;
    padding: .6rem;
    border-radius: 4px;
    border: none;
    color: white;
    cursor: pointer;
    margin: auto;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}


hr {
    width: auto;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    margin: 2px 20px;
}

@media screen and (max-width: 1024px) {

    .img-container {
        justify-content: flex-end;
        height: 70px;
        max-height: 70px;
        align-self: flex-end;
        margin: 10px 70px;
    }
}

@media screen and (max-width: 767px) {
    @media screen and (orientation: portrait) {
        .logo-societe {
            width: 100%;
            object-fit: scale-down;
            margin: 5px;
        }
        .img-container {          
            height: 50px;
            max-height: 50px;    
        }

        .help-floating {
            position: absolute;
            right: 1rem;
            top: .1rem;
            z-index: 30;
            scale: 0.5;
        }
    }

    @media screen and (orientation: landscape) {
    }
}

@media screen and (max-width: 480px) {
    @media screen and (orientation: portrait) {


        .bottom {
            margin-top: 40px;
        }
    }

    @media screen and (orientation: landscape) {
    }
}

/* Fallback global style for the loading bar (in case scoped CSS is missing) */
.loading-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: transparent;
    z-index: 10;
}

.loading-bar {
    width: 100%;
    height: 100%;
    background-color: var(--color-primary, #003567);
    animation: loading-bar-slide 1.5s infinite;
}

@keyframes loading-bar-slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
