@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

.container {text-align: center;}

/* TITLES */
h1 {
	font-weight:bold;
	color: #dd9933;
	line-height: 1.2em;
}

h2 {
  font-size: 1.5em;
  line-height: 1.2em;
  color: black;
}

.alert h3 {
  font-size: 1.5em;
  line-height: 1.2em;
  color: black;
  
}

.main h2 {text-align:center;}

/* ALERT */
.alert {
  background: #dd9933;
  padding: 30px;
  margin: 40px 0;
  border-radius: 6px;
  font-size: 1.1em;
}

/* SEPARATOR */
.separator {
  height: 2px;
  background: #bbb;
  margin: 40px auto;
  width: 80%;
}

/* SLIDER (STATIC) */
.slider img {
  width: 100%;
  max-width: 700px;
  margin: 10px 0;
  border-radius: 6px;
}

/* GRID AGENCES */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: white;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 6px;
}

.carousel {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 6px;
}

/* boutons */

.prev,
.next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    user-select: none;
    position: absolute;
    top: 50%;
    z-index: 50000;
}

.next {right:0;}

.prev:hover,
.next:hover {
    background: rgba(0,0,0,.8);
}

.news-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    font-size: 0.9em;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.news-carousel::-webkit-scrollbar {
    height: 8px;
}

.news-card {
    flex: 0 0 320px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;

    scroll-snap-align: start;
}

.news-card h3 {
    color:black;
    margin-top: 0;
    margin-bottom: 0;
}

.news-date {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-excerpt {
	line-height: 1.2em;
	font-size: 0.8em;
}

.news-img {max-height: 230px;overflow: hidden;}
.news-img img {}
