@import "variables.css";
@import "button.css";
@import "breadcrumbs.css";
@import "micromodal.css";
@import "utils.css";
@import "multi-select.css";
@import "leaflet.css";


/*
    Document   : structure
    Created on : 2 déc. 2010, 15:27:19
    Author     : meyer
    Description:
        Purpose of the stylesheet follows.
*/

/*
   TODO customize this sample style
   Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    font-size: 100%;
}

body {
    background: var(--color-tertiary);
    font-family: var(--font-regular), Arial, var(--font-systeme);
    font-size: 0.8em;
    color: var(--color-text);
    padding: 0;
    position: relative;
}

h2,
.h2 {
    font-size: 1.5rem;
    font-family: var(--font-extra-bold);
    font-variant: small-caps;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

h3,
.h3 {
    font-size: 1.1rem;
    font-family: var(--font-semi-bold);
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 745px) {
    h2,
    .h2 {
        font-size: 2.45rem;
    }
}

fieldset {
    border: none;
}

p, label {
    font-size: 0.9rem;
}

label {
    font-size: 1rem;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: var(--bp-desktop);
    margin: 0 auto;
    background: none!important;
}

a {
    color: var(--color-secondary);
    font-weight: normal;
}

a:hover {
    text-decoration: none;
}

.container {
    flex: 1;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background-color: var(--color-white);
    overflow-x: visible;
}

#scroll-top-button {
    position: absolute;
    z-index: 99;
    width: 46px;
    height: 46px;
    right: 20px;
    bottom: -25px;
    border: none;
    background-color: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    border-radius: 50%;
}

@media screen and (min-width: 1386px) {
    #scroll-top-button {
        right: -85px;
        bottom: 0px;
        width: 62px;
        height: 62px;
    }
}

@media screen and (min-width: 431px) {
    .container  {
        padding: 2.56rem;
    }

    .container:has(.breadcrumbs) {
        padding-top: 0;
    }
}

.header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0!important;
    background: none;
    color: var(--color-text);
}

.connecte p {
    margin: 0;
}

/*  --bp-tablet: 744px; */
@media screen and (max-width: 744px) {
    .header {
        flex-direction: column;
        align-items: start;
        height: auto;
    }
}

.header .header-espace-perso {
    display: flex;
    flex-direction: row;
}

.header .header-espace-perso .connecte {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/*  --bp-tablet: 744px; */
@media screen and (max-width: 744px) {
    .header .header-espace-perso {
        padding: 0.5rem 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .header .header-espace-perso .btn {
        width: 100%;
    }
}

.header .header-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 1.3rem;
    width: calc(100% - 4rem);
    height: 90px;
    margin: 0 2rem;

    & a {
        text-decoration: none;
    }

    & #logement {
        font-size: 1.8rem;
        text-transform: uppercase;
    }
}

/*  --bp-tablet: 744px; */
@media screen and (max-width: 744px) {
    .header .header-logo {
        height: auto;
        flex-direction: column;
        padding: 1rem 0;

        & #logement {
            font-size: 1.9rem;
        }
    }
}
/*  --bp-desktop: 1200px; */
@media screen and (min-width: 1200px) {
   .header .header-logo { 
        margin: 0;
        width: 100%;
    }
}

.header .drapeau {
    right: 8px;
    bottom: 12px;
}

#footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-image: conic-gradient(var(--color-secondary) 0 0) fill 0 //0 100vw;;
    color: var(--color-white);
    padding: 3rem 0;
}

/*  --bp-tablet: 744px; */
@media screen and (max-width: 744px) {
    #footer {
        flex-direction: column;
        row-gap: 1.5rem;
        padding: 3rem 1.5rem;
        font-size: 0.9rem;
    }
}

#footer #address p {
    color: var(--color-with);
    line-height: 0.8rem;
    white-space: pre-line;
    padding: 0.4rem 0;
}

#footer a {
    color: var(--color-with);
}

#footer li {
    list-style: none;
    padding: 0.7rem 0;
}

@media screen and (min-width: 744px) {
    #footer #address,
    #footer #menu_bottom,
    #footer #menu_search {
        width: 100%;
    }
}

#footer #address img.logo-footer {
    margin-top: 0.7rem;
    margin-bottom: 1.5rem;
}

#footer ul.footer-search-list {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    justify-content: start;
    column-gap: 5rem;
    padding: 0;
}

#footer li.footer-search-list-items {
    width: max-content;
}

#mod_search .form_main {
    width: 250px;
    float: right;
}

#mod_search #results {
    width: 640px;
}

#main_map {
    width: 100%;
    height: 657px;
}

#annonce_map {
    width: 210px !important;
    width: 210px;
    height: 210px;
    clear: left;
    margin-top: 16px;
    z-index: 1;
}
#annonce_street {
    clear: left;
    height: 210px;
    margin-top: 16px;
    width: 210px !important;
}

.layout_container {
    display: flex;
    flex-direction: column-reverse;
    flex-wrap: wrap;
    gap: 2.8rem;
    margin-bottom: 2.6rem;
    position: relative;
}

.layout_container-col {
    flex-direction: column;
    gap: 1rem;
}

.layout_container-no-reverse {
    flex-direction: column;
}

.aside_bloc,
.bloc_infos {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 1.8rem;
}

.main_bloc {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media screen and (min-width: 1024px) {
    .layout_container {
        flex-direction: row;
    }

    .layout_container-col {
        flex-direction: column;
    }

    .layout_container-no-reverse {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .aside_bloc,
    .bloc_infos {
        width: 38%;
    }

    .main_bloc {
        width: 56%;
    }

    .main_bloc-full {
       width: 68%;
    }
}

.bloc_search {
    display: flex;
    padding: 2rem;
    border: 1px solid var(--color-primary);
}

#bloc_search_form {
    width: 100%;
}

.fiche_annonce {
    border: 1px solid #c5c5c5;
    padding: 10px 15px;
}

.fiche_annonce .images_annonce {
    width: 210px;
    margin-right: 10px;
    float: left;
}
.fiche_annonce .images_annonce ul {
    list-style: none;
    margin-top: 5px;
}
.fiche_annonce .images_annonce ul li {
    float: left;
    padding-right: 2px;
    padding-top: 2px;
}

div.detail_annonce {
    margin-left: 220px;
    width: 390px;
    border-bottom: dashed 1px #b8b8b8;
    padding-bottom: 10px;
}

#flashMessage.message {
    margin-top: 10px; 
    padding: 1rem 0;
    text-align: center;
    color: #333;
    width: 100%;
}

table.logeur_liste_annonces {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

table.logeur_liste_annonces th,
table.logeur_liste_annonces td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

table.logeur_liste_annonces tr.head {
    background: var(--color-secondary);
    color: var(--color-white);
    
}

table.logeur_liste_annonces tr:not(.head):nth-child(odd) {
    background: var(--color-secondary-lighter);
}

table.logeur_liste_annonces th {
    padding:  0.8rem 0.3rem;
    border-right: solid 1px var(--color-primary);
    border-left: solid 1px var(--color-primary);
    text-align: center;
    font-size: 0.9rem;
}

table.logeur_liste_annonces td {
    padding:  0.8rem 0.3rem;
    border-right: solid 1px var(--color-primary);
    border-left: solid 1px var(--color-primary);
    vertical-align: top;
    font-size: 0.9rem;
}

table.logeur_liste_annonces td.table-actions {
    font-size: 0.9rem;
    border-left: none;
}

table.logeur_liste_annonces td.table-actions a {
    display: block;
    padding: 0.3rem;
}

table.logeur_liste_annonces tr:last-child {
    border-bottom: 1px solid var(--color-primary);
}

table.logeur_liste_annonces td.last {
    width: 60px;
    text-align: center;
}

table.logeur_liste_annonces .date {
    text-align: center;
}
table.logeur_liste_annonces .euro {
    text-align: right;
}

.formlogeur {
    padding: 10px 25px;
}

table.panier_annonces {
    width: 100%;
    border-collapse: collapse;
}
table.panier_annonces th {
    padding: 0 3px;
    border-right: solid 1px #c5c5c5;
    border-bottom: solid 1px #c5c5c5;
    text-align: center;
}
table.panier_annonces td {
    padding: 0 3px;
    border-right: solid 1px #c5c5c5;
}
table.panier_annonces .first {
    border-left: solid 1px #c5c5c5;
}
table.panier_annonces td.last {
    width: 60px;
}
table.panier_annonces .date {
    text-align: center;
}
table.panier_annonces .euro {
    text-align: right;
}

table.alerte_annonces {
    width: 100%;
    border-collapse: collapse;
}
table.alerte_annonces th {
    padding: 0 3px;
    border-right: solid 1px #c5c5c5;
    border-bottom: solid 1px #c5c5c5;
    text-align: center;
}
table.alerte_annonces td {
    padding: 0 3px;
    border-right: solid 1px #c5c5c5;
    text-align: center;
}
table.alerte_annonces .first {
    border-left: solid 1px #c5c5c5;
}
table.alerte_annonces td.last {
    width: 60px;
}
table.alerte_annonces .date {
    text-align: center;
}

.header img {
    border: 0;
}
table.histostatut {
    width: 98%;
    margin: 2% 1%;
}
/*table.histostatut th {
	text-align: center;
}*/

ul.rappel_alerte {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
    list-style: none;
    color: #e6142d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--font-semi-bold);
}

ul.rappel_alerte span.rappel_alerte-label {
    color: var(--color-secondary);
    font-family: var(--font-semi-bold);
}

.input:not(:has(input[type="checkbox"] ,input[type="hidden"])) {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0.6rem 0;
}

.input.w-auto {
    width: auto!important;
}

.input.w-50 {
    width: 48%!important;
}

.input.w-auto input,
.input.w-auto select {
    width: 100px;
}

.input input,
.input select {
    position: relative;
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid var(--color-secondary-mid-lighter);
    background-color: var(--color-white);
    box-sizing: border-box;
    font-family: var(--font-regular);
}

.input select {
    overflow: hidden;
    white-space: pre-wrap;
    text-overflow: ellipsis;
    width: 100%;
}

.input:not(.checkbox) label, 
.input:not(.checkbox) .input_label {
    font-family: var(--font-extra-bold);
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.input.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.8rem;
}

/* Icon input */
.input {
    position: relative;
}

.input .input_icon {
    position: absolute !important;
    width: 20px;
    height: 20px;
    right: 14px;
    bottom: 8px;
    border: none;
    cursor: pointer;
}

a.date-picker-control,
a.date-picker-control:focus,
a.date-picker-control:hover,
a.date-picker-control:active,
a.dp-button-active:link,
a.dp-button-active:focus {
    position: absolute !important;
    width: 20px;
    height: 20px;
    right: 10px;
    bottom: 10px;
    border: none;
    cursor: pointer;
    background: url("../img/icon_date_picker.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

.datePicker,
.datePicker * {
    background-color: var(--color-white) !important;
    background-image: unset !important;
    opacity: 1 !important;
}

.icon_eye-opened {
    background: url("../img/icon_eye-open.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.icon_eye-closed {
    background: url("../img/icon_eye-close.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
}

/* Checkbox apparence personnalisée */
.input.checkbox input[type="checkbox"].checkbox--dark {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.input.checkbox input[type="checkbox"].checkbox--dark + label {
    display: flex;
    position: relative;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.input.checkbox input[type="checkbox"].checkbox--dark + label::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-tertiary);
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.2s, border-color 0.2s;
}

.input.checkbox input[type="checkbox"].checkbox--dark:focus + label::before {
    outline: 1px solid var(--color-secondary-mid-lighter);
}

.input.checkbox input[type="checkbox"].checkbox--dark:checked + label::after {
    content: "✓";
    width: 12px;
    height: 12px;
    position: absolute;
    left: 1px;
    top: -2px;
    font-size: 1.1rem;
    color: var(--color-tertiary);
}

.checkbox_switch-wrapper {
    display: flex;
    column-gap: 1rem;
}

.checkbox_switch-wrapper .checkbox_switch {
    position: relative;
    appearance: none;
    background-color: var(--color-secondary);
    border-radius: 72px;
    border-style: none;
    flex-shrink: 0;
    width: 36px;
    height: 14px;
    margin: 0;
}

.checkbox_switch-wrapper .checkbox_switch::before {
    bottom: -6px;
    content: "";
    left: -6px;
    position: absolute;
    right: -7px;
    top: -6px;
}

.checkbox_switch-wrapper .checkbox_switch,
.checkbox_switch-wrapper .checkbox_switch::after {
    transition: all 100ms ease-out;
}

.checkbox_switch-wrapper .checkbox_switch::after {
    background-color: #fff;
    border-radius: 50%;
    content: "";
    width: 14px;
    height: 14px;
    left: 2px;
    position: absolute;
    top: 2.4px;
}

.checkbox_switch-wrapper input[type="checkbox"] {
    cursor: pointer;
}

.checkbox_switch-wrapper .checkbox_switch:hover {
    background-color: #c9cbcd;
    transition-duration: 0s;
}

.checkbox_switch-wrapper .checkbox_switch:checked {
    background-color: var(--color-green);
}

.checkbox_switch-wrapper .checkbox_switch:checked::after {
    background-color: var(--color-white);
    left: 19px;
}

label.required::after, 
label:has(~.required)::after {
    content:  ' *';
    font-size: 0.8rem;
    color: var(--color-primary);
}

.window {
    background: none;
}
/*  Style Input radio  */
.input.radio input[type="radio"] {
    position: absolute;
    width: 0px!important;
    height: 0px!important;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
  
.input.radio input[type="radio"] + label {
    position: relative;
    padding-left: 1.6rem !important;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}
  
.input.radio input[type="radio"] + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc; 
    background-color: var(--color-white);
    transition: background 0.3s, border-color 0.3s;
}
  
/* Lorsque le radio button est coché */
.input.radio input[type="radio"]:checked + label::before {
    background: radial-gradient(circle, var(--color-green) 50%, var(--color-white) 50%);
    border-color: var(--color-secondary);
}

.input.radio input[type="radio"]:hover + label::before {
    border-color: #999;
}

.input.radio input[type="radio"]:focus + label::before {
    outline: 1px solid var(--color-text);
    outline-offset: 1px;
}

.campus-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: 16px 16px 0 0;
    padding: 2rem 3rem;
    margin-bottom: 0.7rem;
    min-height: 90px;
}

.campus-list h3, 
.campus-list h3 span {
    font-size: 0.9rem!important;
}

.campus-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    list-style: none;
}

.campus-list ul a {
    color: var(--color-white);
    border: 1px solid var(--color-white);
    font-size: 0.8rem;
    text-decoration: none;
}

nav#quik-access-menu {
    position: absolute;
    left: -99999px;
}

nav#quik-access-menu ul li a:focus {
    position: fixed;
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-secondary);
    top: 0.5rem;
    left: 0.5rem;
}

p.credit {
    font-size: 0.8rem!important;
}
