* { 
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
background-color: #f2f2f2;
font-family: 'Montserra';
}

/* ---------- HEADER ---------- */

.header {
  font-family: 'Montserra';
  position: sticky;
  top: 0;
  padding: 10px 16px;
  background: #e43b3b;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  z-index: 10;
}

@font-face {
  font-family: "Montserra";
  src: url("../Montserrat/Montserrat-VariableFont_wght.ttf");
}

.inhead {
  flex-grow: 1; 
  text-align: center; 
}

img {
  align-self: center; 
}

.link_head {
  color: #f1f1f1;
  text-decoration: none;
}

.header .right {
margin-left: auto;
display: flex;
align-items: center;
}

/* ---------- Body ---------- */
.link {
color: #e43b3b;
text-decoration: underline;
font-weight: bold;
}

.image-container {
display: flex;
width: 100%;
}

.container {
  position: relative;
  width: auto;
  max-height: 350px;
}

.image {
  display: block;
  width: 100%;
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  transition: .5s ease;
  opacity: 0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

.container:hover .overlay {
  opacity: 1;
}

.text {
font-family: 'Montserra';
text-align: center;
font-size: large;
margin-left: 5%;
margin-right: 5%;
}

/* --------- Accordéon --------- */

.accordion {
background-color: #e28282;
color: #ffffff;
cursor: pointer;
padding: 18px;
width: 100%;
text-align: left;
border: none;
outline: none;
transition: 0.4s;
}

.active, .accordion:hover {
background-color: #f49c9c;
color: black;
}

.panel {
padding: 0 18px;
background-color: #f7c9ca;
display: none; 
overflow: hidden;
}
 
.accordion.active + .panel {
  display: block;
}

/* ---------- RECHERCHE CONTACT ---------- */

.recherche {
  font-family: 'Montserra';
  text-align: left;
  margin-left: 30%;
  margin-right: 30%;
  }

.villes {
  width: 80%;
  border-radius: 5px;
}

.entete_recherche {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rech_sub {
  background-color: #e43b3b;
  border-radius: 10px;
  color: white;
  padding: 4px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  font-family: "Montserra";
}

.rech_cb {
  accent-color: #e28282;
}

.resultat {
  font-family: 'Montserra';
  text-align: left;
  margin-left: 30%;
  margin-right: 30%;
  display: flex;
  align-items: center;
  gap :15px;
}

/* ---------- CONNEXION ---------- */

.menu_co{
  font-family: 'Montserra';
  text-align: center;
  margin-left: 35%;
  margin-top: 10%;
  margin-right: 35%;
}

.box-container {
  font-family: 'Montserra';
  position:relative;
  padding-top: 10%;
  width: 100%;
  height: 500px;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 16px 20px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.box-container-post {
  align-items: flex-start;
}

.post-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin: 20px 0 0 0;
  padding-left: 20px;
  gap: 20px;
}

.post-input {
  border: none;
  background: transparent;
  font-size: 2em;
  font-style: italic;
  color: #fff;
  outline: none;
  width: 90%;          
  min-height: 400px;    
  resize: none;
  font-family: 'Montserra', sans-serif;
  overflow-wrap: break-word;
  line-height: 1.2;
  margin-top: 0;       
}

.mdp-forgor {
  font-family: 'Montserra';
  font-style: italic;
  color: rgb(0, 83, 190);
  text-align: left;
  display: flex;
  margin-left: 10%;
}

.co-entry {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-left: 10%;
  margin-right: 10%;
}

.co-entry input {
  border: none;
  border-bottom: 2px solid black;
  width: 80%;
  font-family: 'Montserra';
  padding: 12px;
  
}

.co-entry input:placeholder-shown {
  font-style: italic;
}

.connect {
  padding: 12px;
  font-family: 'Montserra';
  border: none;
  background-color: #e28282;
  color: white;
  font-size: large;
}

.creacompt {
  padding: 12px;
  font-family: 'Montserra';
  border: none;
  background-color: white;
  color: #e28282;
  font-size: large;
}

/* ---------- ETUDIANT --------- */

.menu-etu {
  text-align: center;
  font-size: 20px;
}

.link-etu {
  text-decoration: none;
  color: black;
}

.menu-post-etu {
  font-family: 'Montserra';
  margin-left: 15%;
  margin-right: 15%;

}
.contain-post-etu {
  font-family: 'Montserra';
  position:relative;
  padding: 10px;
  width: 100%;
  height: auto;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  background-color: #e28282;
  border-radius: 10px;
  margin-top: 2%;
  }

.publi_input {
  text-align: left;
  border: solid 2px  #acacac;
  background-color: #d1d1d1;
  padding: 5px;
}

.file_input [type=file]::file-selector-button {
  border: none;
  background-color: #f49c9c;
  margin-right: 8px;
  border: none;
  background: #e43b3b;
  padding: 8px 12px;
  color: black;
  cursor: pointer;
}

.mem-sub{
  padding: 12px;
  border-radius: 5%;
  font-family: 'Montserra';
  border: none;
  background-color: #f49c9c;
  color: black;
  font-size: large;
  align-items: center;
  width: 20%;
  margin-left: 40%;
  margin-right: 40%;
}

/* ---------- ORTHOPOST ---------- */

.box-container2 {
    font-family: 'Montserra';
    width: 100%;
    min-height: 150px;
    background-color: #EE8282;
    border-radius: 10px;
    border: #F49C9C solid 10px;
    margin-bottom: 30px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}
 
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
 
.avatar-post {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #E43B3B;
    background: #fff;
}
 
.post-user {
    font-weight: bold;
    font-style: italic;
    color: #fff;
    font-size: 1.2em;
}
 
.post-body p {
    color: #fff;
    margin: 0;
    font-size: 1em;
}
 
.publish-btn {
    background-color: #E43B3B;
    color: white;
    border: none;
    padding: 10px 20px;
    font-family: 'Montserra';
    font-size: large;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 5px;
    width: 20%;
    height: 5%;
}
