@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* color variables */
    --white: #fff;
    --dark-blue: #15253f;
    --light-blue: #91c6d9;
    --blue: #3E8DB1;
    --blue2: #3E92B2;
    --light-blue-hover: #ACD4E2;
    --turquoise: #1FBFB3;
    --turquoise2: #82D0CA;
    --white2: #fcfcfc;
    --white3: #f4f4f4;
    --light-gray: #dcdcdc;
    --gray: #b5b5b5;
    --dark-gray: #707070;
    /* --cyan: #4be6db; */
    --cyan: #43E0C8;
    --red: #d94f4f;
    --green: #88c35e;
    --yellow: #e5b430;
    --dark-blue2: #303e55;
    
    /* layout variables */
    --header-size: 120px;
    --sidebar-size: 60px;
    --sidebar-size-const: 60px;
    --footer-size: 45px;
}

body {
    font-family: 'Open Sans', 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: var(--dark-blue);
    background-color: var(--white3);
    margin: 0;
    padding: 0;
    /* min-height: calc(100lvh - var(--header-size)); */
}

.main-wrapper {
    /* margin-top: var(--header-size); */
    /* min-height: calc(100vh - var(--header-size) - var(--footer-size)); */
    /* min-height: calc(100vh - var(--header-size) - var(--footer-size) ); */
    /* padding-left: 5%; */
    /* padding-right: 5%; */
    display: flex;
    flex-direction: column;
}

.content {
    /* flex: 0 0 72%; */
    /* margin-right: 3%; */
    flex-grow: 1;
    margin-top: -50px;
    z-index: 2;
    background-color: var(--white);
    border-radius: 20px 20px 0px 0px;
    display:block;
    padding-left: 2%;
    padding-right: 5%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-width: thin;
    height: calc(100vh - var(--header-size) - var(--footer-size) + 50px);
}

.news {
    /* flex: 0 0 25%; */
    flex: 0 0 270px;
    margin-right: 3%;
    
}

.header-flex {
    display: flex;
    align-items: center;
    padding-top: 25px;
    padding-bottom: 25px;
    flex-wrap: wrap;
    gap: 5px;
}

.header-flex-title-column {
    display: flex;
    flex-direction: column;
}

.header-flex-title {
    display: flex;
    align-items: center;
    /* cursor: pointer; */
    cursor: default;
}

.header-flex-title .icon {
    margin-right: 20px; 
    font-size: 20px;
}

.header-flex-title .title-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-direction: column;
}

.header-flex-title .title-container h1 {
    font-size: 20px;
}

.header-flex .button-container {
    margin-left: 2%;
    gap: 10px;
}


.header-flex-search-container {
    margin-left: auto;
}

#search-input {
    padding: 15px;
    border: 1px solid var(--gray);
    border-radius: 40px;
    margin: 0;
}


.breadcrumb{
    margin-top: -6px;
}

.breadcrumb * {
    font-size: 14px;
    color: var(--light-blue);
    text-decoration: none;
}

.breadcrumb a::after {
    content: ">";
    margin-left: 5px;
    margin-right: 5px;
    color: #999;
    text-decoration: none;
}

.breadcrumb a:last-child::after {
    content: "";
}

.container {
    display: flex;
}

main {
    /* width: calc(100% - var(--sidebar-size)); */
    /* margin-left: var(--sidebar-size); */
    width: calc(100%);
}

.wrapper {
    display: flex;
    width: 100%;
}

textarea {
    width: 100%;
    resize: vertical;
    max-width: 100%;
    min-height: 52px;
    padding: 15px;
    margin: 4px 0;
    margin-bottom: 30px;
    box-sizing: border-box;
    border: 1px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 16px;
    background-color: var(--white2);
}

textarea:focus, select {
    border-color: var(--light-blue);
    outline: none;
}

textarea:disabled {
    background-color: var(--white3);
    color: var(--light-gray);
}

textarea.error {
    border-color: var(--red);
}

input {
    width: 100%;
    padding: 15px;
    margin: 4px 0;
    margin-bottom: 30px;
    box-sizing: border-box;
    border: 1px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 16px;
    background-color: var(--white2);
}

input:focus, select {
    border-color: var(--light-blue);
    outline: none;
}

input:disabled {
    background-color: var(--white3);
    color: var(--light-gray);
}

input.error {
    border-color: var(--red);
}

input::placeholder, textarea::placeholder {
    color: var(--dark-gray);
    opacity: 0.25;
}

input[readonly] {
    background-color: var(--white3);
    cursor: default;
}
input:autofill {
    background: var(--white);
}
input:-webkit-autofill 
{
    -webkit-box-shadow: inset 0 0 0px 9999px var(--white);
}

select {
    width: 100%;
    padding: 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
    border: 1px solid var(--light-gray);
    border-bottom: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 16px;
    background-color: var(--white2);
}

select:focus {
    border-color: var(--light-blue);
    outline: none;
}

select:disabled {
    background-color: var(--white3);
    color: var(--light-gray);
}

input[type="checkbox"] {
    width: 20px;
    margin-right: 10px;
}

label:has(+ .iti--allow-dropdown), label:has(+ select) {
    margin-bottom: 9px;
}

label {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 400;
    line-height: 0;
    padding-bottom: 4px;
}

.label, .badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    border-radius: 3px;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: left;
    
}

.form-actions button {
    /* width: 49%; */
    min-width: 23%;
    margin-right: 10px;
}

.required {
    color: var(--red);
}

.overlay {
    display: none;
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
    overflow: hidden;
}

.popup {
    background: var(--white2);
    padding: 30px;
    padding-left: 3%;
    padding-right: 3%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
    width: 70%;
    max-height: 90vh; 
    overflow-y: auto; /* to scroll */
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    font-size: 36px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--gray);
}

/* titre sur chaque page */
h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

h4 {
    font-size: 20px;
    font-weight: 600;
}

h5 {
    font-size: 18px;
    font-weight: 600;
}

h6 {
    font-size: 16px;
    font-weight: 600;
}

p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.subtitle-bold {
    font-size: 14px;
    font-weight: 500;
}

.subtitle {
    font-size: 14px;
    font-weight: 500;
}

.small-text {
    font-size: 12px;
    font-weight: 500;
}

a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--dark-blue);
}

button {
    font-size: 16px;
    font-weight: 400;
    padding: 14px 25px;
    /* background-color: var(--turquoise); */
    background: linear-gradient(var(--turquoise2), var(--turquoise));
    color: var(--white);
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background: linear-gradient(var(--turquoise), var(--blue));
}

button:disabled,
button[disabled] {
    /* background-color: var(--light-gray); */
    background: linear-gradient(var(--light-gray), var(--gray));
    color: var(--dark-gray);
    cursor: not-allowed;
}

.center-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-flex h1 {
    margin-right: 0;
    margin-left: 0;
}





/* tab system */
.tab-container {
    display: flex;
    flex-wrap: wrap;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.tab-button {
    flex: 1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 2% 3%;
    font-size: 16px;
    font-weight: 400;
    background: transparent;
    background-color: var(--white3);
    color: var(--dark-blue);
    text-align: center;
    border-radius: 0px;
}

.tab-button:hover {
    background: transparent;
    background-color: var(--light-gray);
}

.tab-button.active {
    background-color: var(--white2);
    font-weight: 600;
    cursor: default;
}

.tab-content {
    display: none;
    padding: 20px 0px;
    /* border-radius: 5px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    border-top: none;
    min-height: 800px;
    /* padding: 3%; */
    /* background-color: var(--white2); */
    color: var(--dark-blue);
}

.tab-content h3 {
    margin-top: 0;
}


@media (max-width: 600px) {
    .tab-button {
        flex-basis: 100%;
        min-width: auto;
        background-color: var(--white2);
    }

    .tab-button.active {
        background-color: var(--dark-blue);
        color: var(--white);
    }
}









/* text colors */
.white {
    color: var(--white);
}
.dark_blue {
    color: var(--dark-blue);
}
.light_blue {
    color: var(--blue);
}
.turquoise {
    color: var(--turquoise);
}
.white2 {
    color: var(--white2);
}
.white3 {
    color: var(--white3);
}
.light_gray {
    color: var(--light-gray);
}
.gray {
    color: var(--gray);
}
.dark_gray {
    color: var(--dark-gray);
}
.cyan {
    color: var(--cyan);
}
.red {
    color: var(--red);
}
.green {
    color: var(--green);
}
.yellow {
    color: var(--yellow);
}
.dark_blue2 {
    color: var(--dark-blue2);
}

/* background colors */
.background_white {
    background-color: var(--white);
}
.background_dark_blue {
    background-color: var(--dark-blue);
}
.background_light_blue {
    background-color: var(--light-blue);
}
.background_turquoise {
    background-color: var(--turquoise);
}
.background_white2 {
    background-color: var(--white2);
}
.background_white3 {
    background-color: var(--white3);
}
.background_light_gray {
    background-color: var(--light-gray);
}
.background_gray {
    background-color: var(--gray);
}
.background_dark_gray {
    background-color: var(--dark-gray);
}
.background_cyan {
    background-color: var(--cyan);
}
.background_red {
    background-color: var(--red);
}
.background_green {
    background-color: var(--green);
}
.background_yellow {
    background-color: var(--yellow);
}
.background_dark_blue2 {
    background-color: var(--dark-blue2);
}

/* modifications external ressources */
.iti--allow-dropdown {
    width: 100%;
    margin-bottom: 30px;
}

/* mobile */
@media (max-width: 699px) {

    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 20px;
    }

    .main-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .header-flex {
        flex-direction: column;
        align-items: center;
    }
    .header-flex-title {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .header-flex .button-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .header-flex-title .icon {
        margin-right: 10px;
        font-size: 30px;
    }
    .header-flex .button-container {
        margin-left: 0;
    }
    .breadcrumb{
        margin-bottom: 7px;
        text-align: center;
    }

    .popup {
        width: 90%;
    }

    .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .form-actions button {
        width: 90%;
    }

    input, select, textarea {
        font-size: 16px;
    }


    
    .header-flex-search-container {
        margin-left: 0;
        width: 100%;
    }
}

 /* mobile || tablette */
 @media (max-width: 1350px) {
    .news {
        display: none;
    }
}
@media (max-width: 1450px) {
    .header-flex-search-container {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
}