@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap'); /*Lexend*/

:root{
    --main-color: #255740;
    --second-color: #277361;
    --third-color: #33c480;
    --green-hover-color: #0b6e40;
    --after-hover-color: #fffaf0;
    --div-color: #91bdb3;
}

html, body {
    display: flex;
    flex-direction: column;
}

header, footer{
    margin: 0.01% 0.03%;
}
body{
    font-family: "Lexend", serif; 
    color: var(--main-color);
    font-size: 18px;
    background-image: url(../images/archeofert.jpg);
    background-size: cover;
    background-attachment: fixed;
    margin: 1% 4%;
    text-align: center;
    line-height: 180%;
}

h1{
    color: var(--main-color);
}
h2{
    color: var(--second-color);
}
h3{
    color: var(--green-hover-color);
}
a{
    text-decoration: none;
    color: var(--before-hover-color);
    &:hover{
        transition: .2;
        color: var(--after-hover-color);
    }
}

.phonobase{
    font-size: 50px;
}

li{
    text-align: justify;
    list-style-type: none;
    margin-bottom: 20px;
}

p{
    text-align: justify;
}

.space-top{
    margin-top: 40px; 
}
.space-bottom{
    margin-bottom: 40px;
}

section{
    margin-top: 40px;
    margin-bottom: 40px;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #91bdb39b;
    border-radius: 15px;
    border: 1px solid #7b988c4b;
    height: 50px;
    padding: 0 10px;
    justify-content: space-between; 
    & .dropdown {
        position: relative;
        display: flex;
        flex-direction: column; 
        align-items: center;
        flex: 1;
    } 
    & .languages {
        display: flex;
        flex-direction: row;
        justify-content: flex-end; 
        align-items: center;
        margin: 0 50px 0 50px;
        flex: 1;
        *{
            margin: 18px;
        }
        & img {
            border-radius: 5px;
            width: 33px;
            box-shadow: 0 0 5px 1px #5b453539;
            margin: 10px;
        }
    }
    & a {
        display: flex; 
        justify-content: center;
        align-items: center; 
        margin: 5px; 
        cursor: pointer;
        position: relative;
        &:hover{
            color: var(--green-title-color);
        }   
    }
    .icons{
        margin: 0 200px;
    }
    & i{
        font-size: 25px;
        &:hover{
            color: var(--green-hover-color);
        }   
    }
    & .dropbtn {
        font-family: "Lexend", serif ;
        background-color: transparent;
        color: var(--before-hover-color);
        padding: 14px 16px;
        font-size: 17px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease;
    }
        & .dropdown .dropbtn{
        color: var(--main-color);
        background-color: transparent;
        &:hover{
            color: var(--green-hover-color);
        }
    }
}


footer {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    background-color: #91bdb39b;
    border-radius: 15px;
    border: 1px solid #7b988c4b;
    height: 140px;
    padding: 10px;
    & div {
        display: flex;
        justify-content: space-evenly; 
        flex-wrap: wrap; 
        align-items: center;
        width: 100%; 
    }
    & .row{
        margin: 5px;
    }
    & i{
        font-size: 30px;;
    }
    & a {
        display: flex; 
        justify-content: center; 
        align-items: center; 
        padding: 5px; 
        & img {
            border: 1px solid #75a177b1;
            border-radius: 15px;
        }
    }
}

.container li{
    text-align: justify;
    margin-left: 20%;
    list-style-type: none;
}

.div-form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding:20px;
}


form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding:20px;
    display: flex;
}

legend {
    font-size: 22px;
    font-weight: bold;
    color: #496659;
    text-align: center; 
    display: block; 
    margin: 0 auto;
}

fieldset{
    border: 2px solid #7b988cf2;
    border-radius: 10px;
    padding: 20px;
    background-color: #7db1a563;
    width: 800px;
    text-align: center;
}

input, textarea{
    background-color: #e2fefb69;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    border: 2px solid #627b71;
    padding: 10px;
    width: 500px;
    margin: 10px;
    font-size: 18px;
    opacity: 0.9;
    outline: none;

    &:focus{
        border: 2px solid #3b3b3b;
    box-shadow: 0 0 0 1px #676767;
    }

    &:hover{
        opacity: 1;
        box-shadow: 0 0 0 1px #676767;
        background-color: #ecfaffa0;
    }
}

button{
    color: #4f4f4f;
    text-align: center;
    display: inline-block;
    font-size: 20px;
    border-radius: 5px;
    border: solid 2px #4f4f4f;
    padding: 10px 30px 10px 30px;
    background-color: #fff6ec78;
    transition: .2s ease;
    -webkit-transition: all .2s ease; /*Chrome*/
    -moz-transition: all .2s ease; /*Safari*/
    -o-transition: all .2s ease; /*Firefox*/
    transition: all .2s ease;
    &:hover{
        background-color: #fff6ecb1;
        -webkit-transform: scale(1.02);
        -moz-transform: scale(1.02);
        -o-transform: scale(1.02);
        transform: scale(1.02);
    }
}

.input-container, .text-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

::placeholder{
    color: #676767;
    font-size: 18px;
    text-align: center;
    font-family: "Lexend", serif;
}

.submit{
    color: #3f5d50;
    text-align: center;
    display: inline-block;
    font-size: 22px;
    border-radius: 5px;
    border: solid 2px #7b988cd4;
    box-shadow: 0 0 5px 1px #355b5339;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #cfe1dad4;
    transition: .2s ease;
    -webkit-transition: all .2s ease; /*Chrome*/
    -moz-transition: all .2s ease; /*Safari*/
    -o-transition: all .2s ease; /*Firefox*/
    transition: all .2s ease;
    &:hover{
        background-color: #ecfff5b1;
        -webkit-transform: scale(1.02);
        -moz-transform: scale(1.02);
        -o-transform: scale(1.02);
        transform: scale(1.02);
    }
}

.error-txt{
    color: #ff4000;
    font-size: 13px;
    text-align: left;
    margin: -5px 0 10px;
    display: none;
}

.hidden {
    display: none;
}

.error .item{
    border: 2px solid #ff4000;
}

.error .error-txt{
    display: block;
}

.remerciement{
    color: var(--third-color);
    font-family: "Lexend", serif;
    font-size: 30px;
}



a{
    color: var(--main-color);
}
a:hover{
    color: var(--third-color);
}


table th, table td {
    box-sizing: border-box;
}

.ctn{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin: 0;
    height: 120px;
}
.column-name {
    text-align: center;
    margin: 0;
    font-size: 19px;
}

table {
    border-collapse: separate;
    border-spacing: 0; /* Ensure no gaps between cells */
    border-radius: 10px; /* Round corners of the table */
    overflow: hidden; /* Hide overflow to maintain rounded corners */
    width: 100%; /* Make table width 100% for consistent layout */
}

table th, table td {
    border: 1px solid #00703c; /* Apply border to cells */
    border-width: 0px 1px 1px 0px; /* Remove top border */
    padding: 10px; /* Use fixed padding for consistency */
}

table th {
    background-color: #8eb7a46e;
}

table tr:nth-child(even) {
    background-color: #b5d1c46f;
}

table td:hover {
    background-color: #ffffff4f;
}

/* Specific adjustments for rounded corners */
table tr:first-child th:first-child, table tr:first-child td:first-child {
    border-top-left-radius: 10px;
    border-left-width: 1px; /* Add left border for the first cell */
}

table tr:first-child th:last-child, table tr:first-child td:last-child {
    border-top-right-radius: 10px;
    border-right-width: 1px; /* Add right border for the last cell in the first row */
}

table tr:last-child th:first-child, table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
    border-left-width: 1px; /* Add left border for the first cell in the last row */
}

table tr:last-child th:last-child, table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
    border-right-width: 1px; /* Add right border for the last cell in the last row */
}

table tr:first-child th, table tr:first-child td {
    border-top-width: 1px; /* Add top border for the first row */
}

table tr th:last-child, table tr td:last-child {
    border-right-width: 1px; /* Add right border for the last column */
}

table tr:last-child th, table tr:last-child td {
    border-bottom-width: 1px; /* Add bottom border for the last row */
}

table tr th:first-child, table tr td:first-child {
    border-left-width: 1px; /* Add left border for the first column */
}

.full-cell-link {
    cursor: pointer;
    position: relative;
}
.link-open-new-tab {
    position: absolute;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.full-cell-link:hover{
    color: var(--third-color);
}

.detail-action-span{
    display: inline-block; 
    width: 70%; 
    text-align: center;
}

.sorter{
    width: 30px;
    padding: 2px;
    position: relative;
    transition: .2s ease;
    opacity: 0.6;
}

.sorter:hover{
    opacity: 1;
}

.pagination {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap; 
    gap: 10px; 
    justify-content: center;
}

button {
    text-align: center;
    justify-content: center;
}
.square {
    text-align: center;
    margin: 6px;
    width: 38px;
    padding: 5px 0px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    color: #486b5e;
    background-color: #73aa9300;
    border: 1px solid #7b988c;
    border-radius: 5px;
    &:hover{
        background-color: #6b9d883b;
    }
}

.square.active {
    background-color: #6b9d8893;
    color: white;
    border-color: #6b9d883b;
}


.results{
    margin-top: 20px;
    margin-bottom: 0;
}

.error-messages{
    padding: 10px;
    color: rgb(186, 40, 0);
}

.responsive-break {
  display: none;
}

.fa-regular{
    color:#d59d10;
    font-size: 30px;
}

.tooltip-container:hover .tooltip-text {
  color: #c3bd16; 
}

.tooltip-container:hover .fa-lightbulb {
  color: #c3bd16;
}
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  width: 150px;
  color: #d59d10;
  text-align: center;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -50px;
  transition: opacity 0.3s;
}
