/* Charte graphique */
:root {
    --primary-color : #053B50;
    --secondary-color : #176B87;
    --tertiary-color : #64CCC5;
    --quaternary-color : #EEEEEE;
}

* {
    font-family: Arial, serif, sans-serif;
}

header,
footer {
    background-color: var(--primary-color);
}

body {
    background-color: var(--quaternary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h3 {
    color: var(--primary-color);
}

.text-justify {
    text-align: justify;
    text-justify: auto;
}

.btn-primary {
    background-color: var(--primary-color);
    border: var(--primary-color);
    transition: 0.5s ease-out;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border: var(--secondary-color);
}

a.hidden-link {
    text-decoration: none;
    color: inherit;        
    display: inline-block; 
}

a.hidden-link svg {
    width: 32px;  
    height: 32px; 
    fill: white; 
}
a.hidden-link svg:hover{
    fill: var(--tertiary-color); 
}


/* Accueil */

.index .stat div {
    color: var(--primary-color);
    background-color: var(--tertiary-color);
    width: 200px;
    height: 200px;
}

.index h1,
.index h5 {
    color: var(--primary-color);
}

.index h3 {
    color: var(--secondary-color);
}

.col1-index {
    background-color: var(--secondary-color);
    color : var(--quaternary-color);
}

.col1-index p {
    text-align: justify;
    text-justify: auto;
}

.col2-index {
    background-color: var(--primary-color);
    color : var(--quaternary-color);
}

.col3-index {
    background-color: var(--tertiary-color);
    color : var(--quaternary-color);
}

.col3-index p {
    color: var(--primary-color);
}

.description {
    color: var(--secondary-color);
    font-size: x-large;
    font-weight: bold; 
}
.index .container-md a{
    text-decoration:none;
    color : #55585B;
}
.index .container-md a:hover{
    color : var(--primary-color);
}


/* Évènements */

.events h1,
.events p {
    color: var(--primary-color);
}

/* Événement (index) */

.card {
    color: var(--primary-color);
}

.event-card {
    background-color: var(--quaternary-color);
}

.event-card h2 {
    color: var(--primary-color);
}

.event-card p {
    color: var(--secondary-color);
}

.prev-link,
.next-link {
    color: var(--primary-color);
    transition: 0.5s ease-out;
}

.prev-link:hover,
.next-link:hover {
    color: var(--secondary-color);
}

/* Événement (event) */

.event-infos p,
.event-infos label,
.event-infos textarea {
    color: var(--primary-color);
}

.list-group-item.hidden {
    display: none;
}

/* Formulaire */

/* conteneur */
.container-infos,
.container-event {
    max-width: 550px;
}

/* titre */
.titre{
    background-color: var(--tertiary-color);
    color: var(--quaternary-color);
}

/* saisie des informations */
.saisie-infos {
    background-color: #f4f4f4;
}

.saisie-infos .text-infos {
    text-align: justify;
    text-justify: auto;
}

/* étiquette du formulaire */
.saisie-infos form label {
    color: var(--primary-color);
}

.saisie-infos form span:hover {
    cursor: pointer;
}

/* texte "Mot de passe oublié" */
.saisie-infos form .forgot-password {
    color: var(--secondary-color);
    transition: 0.5s ease-out;
}

/* bouton de formulaire */
.saisie-infos form button {
    background-color: var(--tertiary-color);
    color: #ffffff;
    cursor: pointer;
}

/* changement de couleur au survol du bouton */
.saisie-infos form button:hover {
    background-color: var(--tertiary-color);
}

/* lien du texte de connexion */
.texte-connexion a {
    color: var(--secondary-color);
    font-weight: bold;
    transition: 0.5s ease-out;
}

/* changement de style au survol du lien du texte de connexion */
.saisie-infos form .forgot-password:hover, .texte-connexion a:hover {
    color: var(--primary-color);
}


/* Menu */

.sidenav {
    background-color: var(--secondary-color);
}

.sidenav div,
.sidenav a {
    color: var(--quaternary-color);
}

.sidenav a:hover {
    color: var(--primary-color);
    transition: 0.3s ease-out;
}

/* Annuaire */

.titre-annuaire,
.titre-liste {
    color: var(--primary-color);
}

.table-annuaire {
    border: solid var(--primary-color);
    color: var(--primary-color);
}

.table-annuaire tbody tr td{
vertical-align: middle;
}
.table-annuaire tbody tr td a{
    text-decoration: none;
}

.table-hover tbody tr:hover td {
    background: var(--tertiary-color);
    cursor: pointer;
}


/* Timeline */

.hori-timeline .events .event-list:before {
    content: "";
    position: absolute;
    height: 36px;
    border-right: 2px dashed grey;
    top: 12px;
}

.hori-timeline .events .event-list .event-date {
    top: -16px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

@media (min-width: 1140px) {
    .hori-timeline .events .event-list {
        width: 24%;
        padding-top: 45px;
    }
}

/* 404 */

.not-found h1 {
    font-size: 200px;
    color: var(--primary-color);
}

.not-found p {
    color: var(--secondary-color);
}

/*page de profil*/
.user_page h5{
    color : var(--primary-color);
}
.user_page p{
    color : var(--primary-color);
}
.info-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 0;
    width: 100%;
    margin: auto;
}
.info-header {
    background-color: var(--tertiary-color);
    color: white;
    padding: 10px;
    border-radius: 15px;
    text-align: start;
}
.info-header h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.info-body {
    padding: 10px;
    text-align: start;
}
.photo-section img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    background-color: #e0e0e0;
}
.edit-icon {
    margin-top: 10px;
    cursor: pointer;
    width: 200px;
}

.edit-icon:hover,
.edit-icon:focus{
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.edit-icon p{
    color: white;
}

.modal-user-page{
    border-radius: 0;
    background-color: #EEEEEE;

}

.titre-modal-user-page{
    background-color: var(--tertiary-color);
    color: white;
    border-radius: 15px;
    justify-content: center;
}

.modal-body-user-page{
    background-color: #f4f4f4;
    border-radius: 15px;
    justify-content: center;
    color: var(--primary-color);
}

#drop-area{
    background-color: #ffffff;
    border-radius: 10px;
}

#img-view{
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 1px dashed black;
    background-color: white;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.extension-img{
    color: #777;
    font-size: 12px;
}

.bouton-footer-modal-user-page {
    background-color: var(--tertiary-color);
    border: 0;
    color : white;
}

.bouton-footer-modal-user-page:hover {
    background-color: var(--secondary-color);
}

/*page de modification de profil*/
.checkbox-contact{
    display: flex;
    justify-content:center;
    height: 15%;    
}

.input-update-user-page:hover,
.input-update-user-page:focus{
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.bouton-update-user-page {
    background-color: var(--tertiary-color);
    border: 0;
    color : white;
}

.bouton-update-user-page:hover,
.bouton-update-user-page:focus{
    background-color: var(--secondary-color);
    transform: scale(1.05);
    transition: 1s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/*Page création d'offre*/

.form-offer .container .title{
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--tertiary-color);
    color: white;
    border-radius: 20px;
}
.container .steps{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.steps .circle{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
    background-color: #ffffff;
    font-size: 22px;
    transition: all 200ms ease;

}
.steps .circle-active{
    background-color: var(--primary-color);
    border: 4px solid var(--secondary-color);
    color: #ffffff;
}

.steps .progress-bar {
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.progress-bar .indicator{
    position: absolute;
    display: inline-block;
    height: 4px;
    width: 0%;
    background-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 300ms ease;
}

.name-steps{
    color: var(--primary-color);
}

.bouton-offer-form {
    background-color: var(--primary-color);
    border: 0;
    color : white;
    width: 33%;
    max-width: 220px;
    height: 40px;
}
.form-offer .container .buttons{
    display: flex;
    justify-content: center;
}
.buttons #prev{
    visibility: hidden;
}

.bouton-offer-form:hover,
.bouton-offer-form:focus{
    background-color: var(--tertiary-color);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.bouton-offer-form:disabled{
    visibility: hidden;
}
#form-offer-offer-id{
    display: flex;
    flex-direction: column;
    color: var(--primary-color);

}

#form-offer-contact-id{
    display: flex;
    flex-direction: column;
    color: var(--primary-color);

}
#form-offer-contact-id input{
    margin-bottom: 3%;
    border-radius: 10px;
    border: 1px solid;
}

.offer-summary{
    display: flex;
    flex-direction: row;

}
.offer-summary .line{
    height: 80%;
    margin: auto;
    margin-top: 0;
    width: 2px;
    background-color: var(--tertiary-color);
}
.offer-summary .offer{
    margin: auto;
}
.offer-summary .contact{
    margin: auto;
}
.form-offer .overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10; 
}
.form-offer #dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 20; 
}
#dialog a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
#dialog a:hover {
    background-color: var(--tertiary-color);
}

.offer-transition {
    min-width:0%;
    transition: transform 0.7s ease, opacity 0.5s ease;
    opacity: 0;
}

.offer-offer.offer-transition.active {
    left: 0;
    opacity: 1;
}

.offer-contact.offer-transition.active {
    left: 0;
    opacity: 1;
    transform:translateX(-100%);
}

.offer-summary.offer-transition.active {
    left: 0;
    opacity: 1;
    transform:translateX(-200%);
}

.offer-transition.passed {
    opacity: 0;
    transform: translateX(-100%);
}
.autocomplete-suggestions {
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
    background-color: white;
    z-index: 1000;
    width: calc(100% - 2px);
}
.autocomplete-suggestion {
    padding: 8px;
    cursor: pointer;
}
.autocomplete-suggestion:hover {
    background-color: #f0f0f0;
}

.offer-summary .text-box {
    width: 250px;   /* Largeur fixe */
    height: 150px;  /* Hauteur fixe */
    border: 1px solid #ccc;
    background-color: white;
    overflow: auto;
    box-sizing: border-box;
}

/*Page des offres*/

.offer-card{
    display: flex;
    flex-direction: column;
    max-width: 300px;
    background-color: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;


}
.offer-card:hover{
    transform: scale(1.05);
}
.offer-card .header-card{
    text-align: center;
    background-color: var(--tertiary-color);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;

}
.offer-card .body-card{
    display: flex;
    flex-direction: column;
    border-top: 0;
}
.offer-card .body-card p{
    color: var(--primary-color);
    border-bottom: 1px solid #ccc;
    margin: 0;
    padding: 0.5rem;

}
.offer-card .footer-card{
    border-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.offer-modal-header{
    text-align: center;
    background-color: var(--tertiary-color);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}
.offer-modal-body{
    background-color: white;
    text-align: start;
    color: var(--primary-color);
}
.offer-modal-footer{
    background-color: white;
    justify-content: start;
}

.offer-modal-body .text-box {
    width: 100%;   
    height: 150px;  
    border: 1px solid #ccc;
    background-color: white;
    overflow: auto;
    box-sizing: border-box;
}