* { box-sizing: border-box; }

/* FONTS */
@font-face {
    font-family: 'Montserrat bold';
    src: url("../fonts/Montserrat-Bold.ttf");
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Medium.ttf");
}

@font-face {
    font-family: 'Open Sans';
    src: url("../fonts/OpenSans-Regular.ttf");
}


body {
  font-family: 'Montserrat bold';
  background-color: #0f1216;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #171C22;
  padding: 0;
}

.pre-header {
  background-color: #171C22;
  padding: 15px 20px;
}

.pre-header div {
  max-width: 1300px;
  margin: 0 auto;
}

.pre-header img {
  height: 60px;
  width: auto;
}

/* Page title */
.page-title {
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.page-title .text {
  font-size: 1.1rem;
  color: #ccc;
  margin: 0;
}

/* Main content */
main {
  flex: 1;
  padding: 20px;
}

h2 {
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.6rem;
  font-family: 'Montserrat';

}

.subtitle {
  text-align: center;
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 30px;
  font-family: 'Open Sans';

}

.commune-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

label {
  font-size: 1.1rem;
}

.select-wrapper {
  position: relative;
  max-width: 400px;
  flex: 1;
}

select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: 2px solid #19AA6D;
  background: #171C22;
  color: #ffffff;
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: all 0.3s ease;
}

select:hover { background: #223538; }
select:focus {
  border-color: #ffffff;
  box-shadow: 0 0 5px #19AA6D;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

#villeSelect option[value="strasbourg"] {
  font-weight: bold;
}

.signalement-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
  gap: 50px;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.signalement {
  background-color: #171C22;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: fadeZoom 0.4s forwards;
}

.signalement:hover {
  background-color: #19AA6D;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 4px 12px rgba(25, 170, 109, 0.5);
}

.signalement img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.signalement:hover img { transform: scale(1.1); }

.signalement span {
  display: block;
  font-weight: 600;
  margin: 5px 0 10px;
}

.signalement p {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0;
  font-family: 'Open Sans';

}

/* liseré vert sur le focus (accessibilité) */

.signalement:focus-visible {
  outline: 3px solid #5af78e; /* même vert que le hover */
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(90, 247, 142, 0.25); /* halo doux */
  transition: outline 0.2s ease, box-shadow 0.2s ease;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer */
footer {
  background-color: #171C22;
  color: white;
  padding: 40px 20px 20px;
  margin-top: auto;
}

.grid-2 {
  max-width: 1300px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

#footer-adresse {
  font-size: 0.9rem;
}

#footer-ems {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

#footer-adresse p {
  line-height: 1.6;
  font-family: 'Open Sans';

}

footer a {
  color: #fff;              /* même couleur que le texte du footer */
  text-decoration: none;      /* retire le soulignement bleu */
  font-size: 0.85rem;
  transition: color 0.3s ease;    
}

footer a:hover,
footer a:focus-visible {
  color: #19AA6D;          /* le même vert que le hover des blocs */
  text-decoration: underline;
}

.legal-nav {
  border-top: 1px solid #333;
  padding-top: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.navfooter {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.navfooter li {
  display: inline;
}

.navfooter a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.navfooter a:hover {
  color: #19AA6D;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 1.8rem;
  }

  .commune-selector {
    flex-direction: column;
    align-items: stretch;
  }
  
  .select-wrapper { max-width: 100%; }
  
  .signalement-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .navfooter {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* Page accessibilité */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

.page-content button {
  border-radius: 15px;
  background-color: #2AD783;
  border: none;
  margin: 15px;
  padding: 10px;
  cursor: pointer;
}

.page-content button a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
}
.page-content h1 {
  font-family: 'Montserrat bold';
  color: white;
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}
.page-content h2 {
  font-family: 'Montserrat', arial;
  color: white;
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: none;
  text-align: left;
  line-height: 1.2;
  word-break: break-word;
  hyphens: auto;
}

.page-content h3 {
  font-family: 'Montserrat', arial;
  font-weight: 400;
  font-size: 1.5rem;
  color: white;
  text-align: left;
  line-height: 1.2;
}

.text2 {
  font-size: 19px;
  color: white;
  text-align: left;
  font-family: 'Open Sans', arial, sans-serif;
  line-height: 1.6;
}

.page-content ul {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  text-align: left;
}

.page-content li {
  font-size: 19px;
  color: #B1B9C3;
  font-family: 'Open Sans', arial, sans-serif;
}

#link {
  color: #2AD783;
  font-size: 18px;
  word-break: break-all;
}

@media (max-width: 1200px) {
  .text2, .page-content ul {
    max-width: 85vw;
  }
}