/*********************
 GENERAL STYLING
 *********************/

body { margin: 0; font-family: 'Lato', sans-serif; font-size: 16px; font-weight: 400; }

* { box-sizing: border-box;}

a { text-decoration: none; color: black;}




/****************************
      TOP HEADER
 **************************/
#main-header {
   position: fixed;
   width: 100%;
   height: 60px;
   z-index: 99;
}

.header-logo {
  position: absolute;
  left: 0;
  padding: 15px 0 10px 20px;
}

#logo-mobile { display: none; }

.categories-header {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 17px 0 10px 0;
  display: none;
  cursor: pointer;
}

.categories-header h5 {
  display: inline-block;
  font-size: 0.9em;
  margin-left: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.categories-header i {
  font-size: 1em;
}

.header-search {
  position: absolute;
  right: 0;
  font-size: 1.2em;
  padding: 15px 65px 10px 0;
  cursor: pointer;
  visibility: hidden;
}

#search-input {
  width: 0px;
  transition: 0.3s;
  position: absolute;
  right:90px;
  top: 15px;
  height: 30px;
  visibility: hidden;
  padding-left: 5px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.7rem;
}


.visible {
  visibility: visible;
  width: 170px !important;
}

.header-menu {
  position: absolute;
  font-size: 1.2em;
  right: 0;
  padding: 15px 20px 10px 0;
  cursor: pointer;
}

#mobile-menu {
  display: none;
  background-color: #E4E4E4;
  position: absolute;
  top: 50px;
  right: 20px;
}

#mobile-menu p {
  padding: 0.5rem 1em 0 1em;
}

.categories-bar {
   position: fixed;
   display: none;
   top: 46px;
   width: 100%;
   z-index: 99;
   border-bottom: 1px solid #9c9c9c;
   background-color: white;
   text-align: center;
}

.categories-bar .categories-tags {
  margin: 0 1em 0 1em;
  padding: 1em 0 0.8em 0;
  font-size: 0.8rem;
}

.categories-bar .categories-tags .category {
  margin: 0 0.8em 0.5em 0;
  border: 1px solid #c8c8c8;
  padding: 0.2em 0.5em;
  border-radius: 5px;
  display: inline-block;
}

.categories-bar .categories-tags .category a {
  color: #b3afaf;
  font-size: 0.8em;
  text-decoration: none;
  padding: 0.3em 0;
  display: inline-block;
}

#subCategories .category a {
  color: #33B3FF !important;
}



/************************
      LANDING PAGE
 ***********************/
#intro {
  position: relative;
  height: 100vh;
  background: url("../images/country-quilt.png") no-repeat center center;
  background-size: cover;
  display: flex;
  
  align-items: center;
  text-align: center;
  width: 100%;
}


/**** title ****/
.intro-title { position: absolute; top: 16%; justify-content: center; width: 100%; }

.intro-title h4 {
  color: black;
  font-weight: bold;
  font-size: 2.1rem;
  padding-bottom: 0.3em; 
}

.intro-title h1 {
  color: #800000;
  font-size: 2.8rem;
  font-weight: bold;
}

.intro-images { position: absolute; top: 38%; justify-content: center; width: 100%; }

.intro-images img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  margin-left: 3em;
  transform: rotate(2deg);
}

.intro-images img:first-child { margin-left: 0; }



/**** buttons ****/
.intro-buttons { position: absolute; bottom: 21%; justify-content: center; width: 100%;}

.intro-buttons a {
  border: 2px solid #8e3b3b;
  color: #797979;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-left: 2em;
  padding: 2em 1em;
  background-color: #F4F4F4;
}

.intro-buttons a:first-child { margin-left: 0 }




/************************
      MODALS SECTION
 ***********************/
ul {
  list-style-type: none;
  margin: 1.5em 0;
}

li {
  font-size: 0.9rem;
}

 li::before {
  content: "- ";
}

.modals-section .modal-dialog {
  width: 800px;
  max-width: 800px;
}

.modals-section .modal-header {
  justify-content: flex-start;
}

.modals-section .close {
  margin: 0.1em;
  padding: 0;
}

.modals-section .p-title {
  font-size: 0.9rem;
  font-weight: bold;
  margin: 1em 1em 0.5em 1em;
}

.modals-section .p-subtitle {
  font-size: 0.9rem;
  font-weight: bold;
}

.modals-section h5 {
  line-height: 1;
  font-size: 1rem;
  padding-left: 1rem;
  padding-top: 0.4rem;
  color: #7E0007;
  font-weight: bold;
}

.modals-section h4 {
  font-size: 1rem;
  color: #33B3FF;
  font-weight: bold;
  margin: 1em 1em 0 1em;
}

.modals-section h6 {
  font-size: 0.9rem;
  font-weight: bold;
  color: #33B3FF;
  margin: 3em 1em 1em 1em;
  text-transform: uppercase;
}

.modals-section p {
  font-size: 0.9rem;
  margin: 1em 1em;
}

.modals-section p:last-child {
  margin-bottom: 2em;
}


#poster-modal input{
  font-size: 0.7rem;
}

#poster-modal .modal-introduction p:first-child {
  line-height: 5.5em;
  font-weight: bold;
}

/*poster annonce phone input*/
#phoneHelp { font-size: 0.7em; }


/*poster annonce textarea*/
#Inputdescription { font-size: 0.7rem; }

.submit-modal {
  padding: 0.70rem 1.5rem;
  border: none;
  box-shadow: none;
  color: white;
  margin: 2em 0;
}

.ad-modal-info {
  font-size: 0.7rem;
  color: #7E0007;
  margin: 2em 1em;
}


.ad-modal-tag {
  display: inline-block;
  margin-left: 0.8rem;
  color: #7E0007 !important;
}


/*inscription modal*/
#inscription-modal .modal-body p:first-child {
  font-weight: bold;
  margin-bottom: 2em;
}


/* hide up/down arrows ("spinners") on input fields marked type="number" */
.no-spinners {
  -moz-appearance:textfield;
}

.no-spinners::-webkit-outer-spin-button,
.no-spinners::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.text-color { color: #33B3FF; }

.text-bordeaux { color: #800000; }


/************************
      ADS SECTION
 ***********************/

#annonces {
  padding-top: 5em;
  border-top: 1px solid #c8c7c7;
}

.annonces-container {
  max-width: 80%;
  margin: 0 auto;
}

/*** categories ***/
.categories {
  margin-left: 1.5em;
}

.categories-title h5 {
  display: inline-block;
  font-size: 1em;
  margin-left: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
}

.categories-tags {
  margin: 0 1em 2em 0;
  padding: 1em 0 1em 0;
}

.categories-tags .category {
  margin: 0 0.8em 0.5em 0;
  border: 1px solid #c8c8c8;
  padding: 0.2em 0.5em;
  border-radius: 5px;
  display: inline-block;
}

.categories-tags .category a {
  color: #800000;
  font-size: 0.8em;
  text-decoration: none;
  padding: 0.3em 0;
  display: inline-block;
}

.categories-tags #subCategories {
  display: none;
  margin-top: 0.5em;
  padding-top: 1em;
  border-top: 1px solid #c8c8c8;
}


/**** ads cards *****/
#annonces .ads {
  margin-top: 1em;
}


#annonces .ads a:hover {
  text-decoration: none;
  color: inherit;
}

#annonces .card {
  box-shadow: 1px 1px 4px 2px #dfdfdf;
  position: relative;
  margin: 0 1.5em 3em 1.5em;
  width: 45%;
}

#annonces .card-body {
  padding: 1em 2em 1.5em 2em;
}

#annonces .card-title {
  border-bottom: 2px solid #800000;
  margin-top: 2em;
}

.card-subcat {
  color: #33B3FF;
  margin-bottom: 0.1rem;
  padding-left: 2em;
  text-transform: capitalize !important;
}

#annonces .card-title p{
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.card-subtitle .db-title {
  color: #800000;
  font-weight: bold;
  padding-bottom: 1em;
}


/*new ad text*/
.new-symbol p {
  position: absolute;
  top: 10px;
  right: 15px;
  font-weight: bold;
  color: #33B3FF;
  font-size: 0.9em;
  text-transform: uppercase;
}

#annonces .card-subtitle{
  padding: 1.3em 0 0.8em 0;
  font-size: 0.8rem;
}

#annonces .card-text {
  font-size: 0.9em;
}

.adDetail-title {
  font-size: 0.9rem;
  font-weight: bold;
  color: #33B3FF;
  margin: 2em 1em 2.5em 1em !important;
}

/*contacts*/
.ad-contacts {
  font-weight: bold;
}


/*ad categories*/
.card-info {
  font-size: 1rem;
  color: #800000 !important;
  margin-top: 0.8em;
  padding-bottom: 0.5em;
  letter-spacing: 0.1em;
}

.card-tag {
  margin-left: 0.3em;
  display: inline-block;
  margin-bottom: 0;
  text-transform: uppercase;
}

.card-readmore {

}

.read-more {
  color: #33B3FF;
  float: right;
  display: inline;
  margin-bottom: 0;
  font-size: 0.9rem;
  letter-spacing: 0;
}


/*BACK TO TOP BUTTON*/
.top {
  position: fixed;
  bottom: 100px;
  right: 35px;
  display: none;
  color: #33B3FF;
  text-align: center;
  cursor:pointer;
  opacity: 0.6;
}
.top i {font-size: 1.8em;}




/**********************************
SITE FOOTER
***********************************/

footer {
  background-color: #E4E4E4;
  text-align: center;
  font-size: 0.8rem;
  padding: 1.5em 0;
  margin-top: 3em;
}

footer i {
  padding-left: 0.9em;
  cursor: pointer;
}

footer i:first-child {
  padding-left: 2em;
}



/**********************************
MEDIA QUERIES
***********************************/

/*** Large screens ***/
@media screen and (max-width:1200px){
  #annonces .card { width: 41%; }
}


/*** Medium ***/
@media screen and (max-width:700px){
  footer {font-size: 0.7rem; padding: 1.1em 0;}
  #main-header {height: 50px;}
  .header-logo {padding: 12px 0 6px 20px;}
  #logo-web { display: none; }
  #logo-mobile { display: block; }
  .categories-header { display: none !important; }
  .header-search, .header-menu { font-size: 1em; }
  .header-search { padding: 15px 50px 10px 0;}
  #search-input { top: 15px; right:75px; height: 20px; }
  #mobile-menu { top: 40px; right: 20px; font-size: 0.7em; padding: 5px 5px 5px 0; }
  .intro-title h4 { font-size: 1.4rem }
  .intro-title h1 { font-size: 2.1rem }
  .intro-images {top: 33%;}
  .intro-images img { margin-left: 0; width: 120px; height: 120px; }
  .intro-buttons { bottom: 6%; }
  .intro-buttons a { display: block; margin-top: 1.3em; font-size: 0.7rem; padding: 1.5em 0.8em; margin-left: 0;}
  .categories-title h5 { font-size: 0.7em; }
  .categories-tags .category a { font-size: 0.7em; padding: 0; }
  .categories-tags .category { margin: 0 0.3em 0.4em 0; padding: 0.1em 0.4em;}
  .categories-tags { margin: 0 1em 1em 0;}
  #annonces .card { width: 82%; }
  #annonces .card-title p { font-size: 0.7rem; }
  #annonces .card-subtitle { font-size: 0.7rem; }
  .new-symbol p { font-size: 0.6em; }
  .card-info { font-size: 0.6rem; }
  .read-more {font-size: 0.7rem; margin-right: -10px;}
  .modals-section .modal-dialog { width: 500px; max-width: 500px; }
}

/*** Small ***/
@media screen and (max-width:480px){

  footer {font-size: 0.7rem; padding: 1.1em 0;}
  #main-header {height: 50px;}
  .header-logo {padding: 12px 0 6px 20px;}
  #logo-web { display: none !important; } 
  #logo-mobile { display: block !important; }
  .categories-header { display: none !important; }
  .header-search, .header-menu { font-size: 1em; }
  .header-search { padding: 10px 50px 10px 0;}
  .header-menu {padding: 10px 20px 10px 0;}
  #search-input { top: 15px; right:75px; height: 20px; }
  #mobile-menu { top: 40px; right: 20px; font-size: 0.7em; padding: 5px 5px 5px 0; }
  .intro-title h4 { font-size: 1.4rem }
  .intro-title h1 { font-size: 2.1rem }
  .intro-images {top: 33%;}
  .intro-images img { margin-left: 0; width: 120px; height: 120px;}
  .intro-buttons { bottom: 8%; }
  .intro-buttons a { display: block; margin-top: 1.3em; font-size: 0.7rem; padding: 1.5em 0.8em; margin-left: 0;}
  .categories-title h5 { font-size: 0.7em; }
  .categories-tags .category a { font-size: 0.7em; padding: 0; }
  .categories-tags .category { margin: 0 0.3em 0.4em 0; padding: 0.1em 0.4em;}
  .categories-tags { margin: 0 1em 1em 0;}
  #annonces .card { width: 82%; }
  #annonces .card-title p { font-size: 0.7rem; }
  #annonces .card-subtitle { font-size: 0.7rem; }
  .new-symbol p { font-size: 0.6em; }
  .card-info { font-size: 0.6rem; }
  .read-more {font-size: 0.7rem; margin-right: -10px;}
  .modals-section .modal-dialog { width: 320px; max-width: 320px; }
}


@media screen and (max-height:470px) {
 .intro-images {display: none;}
   #logo-web { display: none !important; }
  #logo-mobile { display: block !important; }
  .intro-buttons { position: absolute; bottom: 7%;}
  .intro-buttons a { padding: 1em 0.7em; font-size: 0.6rem; }
}








