
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&family=Roboto:ital,wght@0,100;1,100&display=swap');



body {
    font-family: "Roboto", serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #333333; /* Couleur par défaut du texte */
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}


h1, h2, h3, h4, h5{
    font-weight: 100;
    font-size: 2rem;
    color: #222222;
}

h8 {
	margin-top: 20px;
    font:600 16px/1.2 system-ui, sans-serif;
    color: #222222;
}

h7 {
	margin-top: 0px;
    font-weight: 900;
    font-size: 1.2rem;
    color: #222222;
}

h6 {
	margin: 0;
	margin-top: 20px;
    font-weight: 100;
    font-size: 2rem;
    color: #222222;
}

p {
    line-height: 1.6;
    margin: 0.5em 0;
    font-weight: 300;
}


.Normal {
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-size: 2.5rem;
  font-variation-settings:
    "wdth" 100;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Layout des div principales */
header {
    background-color: #fff;
    padding: 2px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font:600 28px/1.2 system-ui, sans-serif;
}

main {
    flex: 1;
	text-align: center;
}


footer {  padding: 10px; text-align: center; display: block; }

    #main-box {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap; 
    }

    #box1, #box2 {
      width: 50%; 
	  padding: 10px;
      text-align: center;
	  box-sizing: border-box;
	  font-family: "Roboto", serif;
	  font-optical-sizing: auto;
	  font-weight: 100;
	  font-style: normal;
	  font-size: 1rem;
    }

    @media (max-width: 768px) {
      #box1, #box2 {
        width: 100%;
      }
    }

/*

.btn-1 {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;

}

.btn-1 a {
    width: 200px;
  min-width: 200px;
  max-width: 200px;
  text-decoration: none;
  border: 2px solid #010100;
  padding: 15px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

span {
  position: relative;
  z-index: 3;
}

.btn-1 a::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -2px;
  width: calc(100% + 6px);
  height: calc(100% - 10px);
  background-color: #ffffff;
  transition: all 0.5s ease-in-out;
  transform: scaleY(1);
}

.btn-1 a:hover::before {
  transform: scaleY(0);
}

.btn-1 a::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -5px;
  width: calc(100% - 10px);
  height: calc(100% + 10px);
  background-color: #ffffff;
  transition: all 0.5s ease-in-out;
  transform: scaleX(1);
}


.btn-1 a:hover::after {
  transform: scaleX(0);
}
*/

.btn {
    display: inline-block; /* Nécessaire pour styliser comme un bouton */
    width: 250px;
    height: 50px;
    line-height: 50px; /* Aligne le texte verticalement */
    text-align: center; /* Aligne le texte horizontalement */
    border: 1px solid #000;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    text-decoration: none; /* Supprime le soulignement */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f0f0f0;
    color: #333;
    border-color: #333;
}

#div_inscription {
	width: 600px;
	margin : 0 auto;
	
}
@media (max-width: 768px) {
      #div_inscription {
        width: 99%;
      }
    }


#div_login {
	width: 600px;
	margin : 0 auto;
	
}
@media (max-width: 768px) {
      #div_login {
        width: 99%; 
      }
    }


#div_main {
	width: 600px;
	margin : 0 auto;
	
}
@media (max-width: 768px) {
      #div_main {
        width: 99%; 
      }
    }

// iOS Reset 
input {
	appearance: none;
	border-radius: 0;
}


.input {
	
	display: flex;
	flex-direction: column-reverse;
	position: relative;
	padding-top: 1.5rem;
	&+.input {
		margin-top: 1.5rem;
	}
}

.input-label {
	color: #8597a3;
	position: absolute;
	top: 1.5rem;
	transition: .25s ease;
	font-weight: 900;
	font-size: 16px;
}

.input-field {
	border: 0;
	z-index: 1;
	background-color: transparent;
	border-bottom: 2px solid #eee; 
	font: inherit;
	font-size: 1.125rem;
	padding: .25rem 0;

}

.input-field:focus,
.input-field:not(:placeholder-shown) {
    outline: 0;
    border-bottom-color: #6658d3;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
    color: #6658d3;
    transform: translateY(-1.5rem);
}

.input-field[required] + .input-label::after {
    content: " *";
    color: red;
    font-size: 0.8em;
    margin-left: 3px;
}

.action {
	margin-top: 2rem;
}

.action-button {
	font: inherit;
	font-size: 1.25rem;
	padding: 1em;
	width: 100%;
	font-weight: bold;
	background-color: #6658d3;
	border-radius: 6px;
	color: #FFF;
	border: 0;
	&:focus {
		outline: 0;
	}

}

.action-button:disabled {
	background-color: red !important;
	color: white !important;
	cursor: not-allowed;
	opacity: 0.9;
	border: none;
}

.card-info {
	padding: 1rem 1rem;
	text-align: center;
	font-size: .875rem;
	color: #8597a3;
	a {
		display: block;
		color: #6658d3;
		text-decoration: none;
	}
}


.link-button {
	font: inherit;
	font-size: 1.25rem;
	padding: 1em;
	font-weight: 500;
	background-color: #6658d3;
	border-radius: 6px;
	color: #FFF;
	cursor: pointer;
	border: 0;
	&:focus {
		outline: 0;
	}
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
  justify-content: flex-start; 
}

.box-menu {
  flex: 0 0 calc(33.33% - 10px); 
  min-width: 200px;
  max-width: 200px;
  background-color: #ddd;
  padding: 20px;
  text-align: center;
  border: 1px solid #aaa;
  box-sizing: border-box;
}


@media (max-width: 650px) {
  .menu {
    justify-content: center;
  }
  .box-menu {
    flex: 0 0 90%; 
    max-width: 300px;
  }
}


.container-immeuble {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
	width : 300px;
	max-width: 300px;
	margin: 0 auto;
}

.immeuble-card {
	font-weight: bold;
    flex: 0 0 calc(50% - 10px); 
    box-sizing: border-box;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: center;
	height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.immeuble-card:hover {
    background: #ddd;
}

/* En responsive (< 768px) -> 1 div par ligne */
@media (max-width: 768px) {
    .immeuble-card {
        flex: 0 0 100%;
    }
}

.container-edl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
	width : 600px;
	margin: 0 auto;
}

.edl-card {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	font-weight: bold;
    box-sizing: border-box;
    background: #CAFFBF;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
	height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: left;
}

.edl-card:hover {
    background: #ddd;
}

/* En responsive (< 768px) -> 1 div par ligne */
@media (max-width: 768px) {
    .edl-card {
        flex: 0 0 100%;
    }
}

#loadMore {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    cursor: pointer;
}

/* ===== Pastilles de statut 1..4 ===== */
.pastilles { display:flex; gap:6px; align-items:center; }

/* Base */
.pastille{
  --size:18px;
  width:var(--size); height:var(--size);
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  font:600 12px/1 system-ui, sans-serif;
  color:#fff;
  background:#bbb;
  box-shadow:
    inset 0 -2px 0 rgba(0,0,0,.20), /* léger relief */
    0 0 0 1px rgba(0,0,0,.08);      /* fin liseré */
}

/* Tailles */
.pastille.sm{ --size:14px; font-size:10px; }
.pastille.md{ --size:18px; }
.pastille.lg{ --size:24px; font-size:13px; }

/* Couleurs par état (1 à 4) */
.pastille[data-etat="1"]{ background:#e53935; } /* rouge */
.pastille[data-etat="2"]{ background:#fb8c00; } /* orange */
.pastille[data-etat="3"]{ background:#fbc02d; color:#222; } /* jaune -> texte foncé */
.pastille[data-etat="4"]{ background:#43a047; } /* vert */

/* Variante “sans chiffre” (pur picto) */
.pastille.no-num{ font-size:0; }


.item-card{
  border:1px solid #e3e3e3; border-radius:10px; padding:12px 14px; margin:10px 0; background:#fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  max-width: 550px;
  margin: 0 auto;
  margin-top: 5px;
}
.item-title{
  font:600 16px/1.2 system-ui, sans-serif; margin-bottom:10px; text-align: left;
}
.pills { display:flex; gap:10px; flex-wrap:wrap; margin:6px 0 10px; justify-content: center; }

.pill{
  --size:18px;
    display: flex;
  flex-direction: column;
  align-items: center; align-items:center; gap:8px;
  padding:6px 8px; border-radius:5px; background:#f7f7f7; border:1px solid #e5e5e5;
  cursor:pointer; user-select:none;
  min-width: 60px;
}
.pill-dot{
  width:var(--size); height:var(--size); border-radius:50%;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07);
}
.pill[data-v="1"] .pill-dot{ background:#e53935; }
.pill[data-v="2"] .pill-dot{ background:#fb8c00; }
.pill[data-v="3"] .pill-dot{ background:#fbc02d; }
.pill[data-v="4"] .pill-dot{ background:#43a047; }

.pill input[type="radio"]{ display:none; }
.pill.active{ border-color:#bbb; box-shadow:0 0 0 2px rgba(0,0,0,.04) inset; background:#8FBDFA; }
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* couleurs pour la pastille de statut */
.status-dot.etat-1 { background: #e53935; }
.status-dot.etat-2 { background: #fb8c00; }
.status-dot.etat-3 { background: #fbc02d; }
.status-dot.etat-4 { background: #43a047; }
.item-actions{ display:flex; gap:10px; margin-top:8px; }
.btn{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border-radius:10px; border:1px solid #d8d8d8; background:#fafafa;
  text-decoration:none; color:#222; font:500 14px/1 system-ui, sans-serif;
}
.btn:hover{ background:#f0f0f0; }

/* petit feedback ajax */
.save-status{ font:12px/1.2 system-ui, sans-serif; color:#666; margin-left:auto; }
.save-status.ok{ color:#2e7d32; }
.save-status.err{ color:#c62828; }



.item-actions { display:flex; gap:10px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.btn { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px; border:1px solid #d8d8d8; background:#fafafa; text-decoration:none; color:#222; font:500 14px/1 system-ui,sans-serif; }
.btn:hover{ background:#f0f0f0; }
.btn-photo{ cursor:pointer; }

.item-gallery { display:grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap:10px; margin-top:10px; }
.photo-card { position:relative; border:1px solid #e5e5e5; border-radius:8px; overflow:hidden; background:#fff; }
.photo-card img { width:100%; height:100%; object-fit:cover; display:block; aspect-ratio: 1 / 1; }
.photo-del { position:absolute; top:6px; right:6px; width:24px; height:24px; border-radius:50%; background:#fff; border:1px solid #c62828; color:#c62828; display:flex; align-items:center; justify-content:center; cursor:pointer; font-weight:700; }
.photo-del:hover { background:#c62828; color:#fff; }
.save-status-photos { font:12px/1.2 system-ui,sans-serif; color:#666; }
.save-status-photos.ok { color:#2e7d32; }
.save-status-photos.err { color:#c62828; }



.modal.hidden { display:none; }
.modal { position:fixed; inset:0; z-index:9999; }
.modal-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.45);
}
.modal-dialog {
  position:relative; margin:6vh auto; max-width:600px; width:92%;
  background:#fff; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.25);
  overflow:hidden;
}
.modal-header {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; border-bottom:1px solid #eee;
}
.modal-close {
  width:32px; height:32px; border-radius:8px; border:1px solid #ddd; background:#fafafa; cursor:pointer;
}
.modal-body { padding:12px 14px; }
#comment-text {
  width:100%; box-sizing:border-box; padding:10px; border:1px solid #ddd; border-radius:8px; resize:vertical; font:14px/1.4 system-ui,sans-serif;
}
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:8px; }
.btn-primary { background:#2b6cb0; color:#fff; border-color:#2b6cb0; }
.btn-primary:hover { filter:brightness(0.95); }

.comment-status { font:12px/1.2 system-ui,sans-serif; margin-top:6px; color:#666; }
.comment-status.ok { color:#2e7d32; }
.comment-status.err { color:#c62828; }

.comments-list { display:flex; flex-direction:column; gap:8px; max-height:40vh; overflow:auto; }
.comment-card {
  border:1px solid #eee; border-radius:8px; padding:8px 10px; background:#fff;
}
.comment-meta { font:12px/1.2 system-ui,sans-serif; color:#666; margin-bottom:4px; }
.comment-text { white-space:pre-wrap; word-wrap:break-word; }


.comment-row { display:flex; gap:10px; align-items:flex-start; }
.comment-card { flex:1; }

.comment-del {
  flex:0 0 auto;
  width:28px; height:28px; border-radius:8px;
  border:1px solid #c62828; color:#c62828; background:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; font-weight:700;
}
.comment-del:hover { background:#c62828; color:#fff; }



.comments-compact {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}
.comments-compact .comment-line { margin-bottom: 6px; }
.comments-compact .comment-line:last-child { margin-bottom: 0; }
.comments-compact .meta { font:12px/1.2 system-ui,sans-serif; color:#666; margin-bottom:2px; }
.comments-compact .text { font-size: 13px; white-space: pre-wrap; word-break: break-word; text-align: left;}
.comments-compact .empty { color:#888; font-size: 13px; font-style: italic; }
.btn-compact { padding:6px 10px; margin-top:6px; }


.report-actions{ margin:18px 0; display:flex; justify-content:flex-end; }



.modal.hidden { display:none; }
.modal { position:fixed; inset:0; z-index:9999; }
.modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.45); }
.modal-dialog { position:relative; margin:4vh auto; max-width:900px; width:94%; background:#fff; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.25); overflow:hidden; }
.modal-dialog.modal-xl { max-width:1100px; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid #eee;}
.modal-close { width:32px; height:32px; border-radius:8px; border:1px solid #ddd; background:#fafafa; cursor:pointer;}
.modal-body { padding:14px 16px; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }

#preview-content { font:14px/1.45 system-ui, sans-serif; color:#222; }
.report-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.report-title { font-weight:700; font-size:18px; }
.report-meta { font-size:12px; color:#666; }

.report-table { width:100%; border-collapse:collapse; margin-top:10px; }
.report-table th, .report-table td { border:1px solid #e5e5e5; padding:8px; vertical-align:top; }
.report-table th { background:#fafafa; text-align:left; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; color:#fff; }
.badge.etat-1{ background:#e53935; } .badge.etat-2{ background:#fb8c00; } .badge.etat-3{ background:#fbc02d; color:#222; } .badge.etat-4{ background:#43a047; }

.sign-block { margin-top:10px; }
#sign-pad { border:1px solid #ccc; border-radius:8px; background:#fff; touch-action:none; }
.sign-tools { margin-top:6px; }

#preview-status { font:12px/1.2 system-ui, sans-serif; margin-top:6px; color:#666; }
#preview-status.ok { color:#2e7d32; }
#preview-status.err { color:#c62828; }

/* Boutons (déjà utilisés) */
.btn { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px; border:1px solid #d8d8d8; background:#fafafa; text-decoration:none; color:#222; font:500 14px/1 system-ui, sans-serif; cursor:pointer; }
.btn:hover{ background:#f0f0f0; }
.btn-primary { background:#2b6cb0; border-color:#2b6cb0; color:#fff; }
.btn-primary:hover { filter:brightness(0.95); }


textarea {
  width: 100%;
  height: 150px;
  font-size: 14px;
}
#status {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

  .btn-danger{ background:#e53935; border-color:#e53935; color:#fff; }
  .btn-danger:hover{ filter:brightness(.95); }