@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

h2 {
    font-size: 4rem;
    color: #DAA520;
    padding-bottom: 0px;
    padding-left: 20px;
    background: url(../images/ligne.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    margin-bottom: 100px;
    display: block;
    text-align: center;
    margin: 200px auto 20px;
    width: fit-content;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

body.darkmode h2{
  background: url(../images/ligne_light.png);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Carousel */
.carousel {
    position: relative;
    width: fit-content;
    max-width: 90%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 15px;
    background: #1f1f1f;
    color: #fff;
}

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

#theme-switcher {
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

#theme-switcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.actualite1 {
    flex: 0 0 48%;
    max-width: 520px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.actualite2 {
    flex: 0 0 48%;
    max-width: 520px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}
.actualite3{
    flex: 0 0 48%;
    max-width: 420px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}



.slide-text {
    flex: 1 1 52%;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    min-width: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #DAA520;
    border: none;
    font-size: 2rem;
    width: 44px;
    height: 64px;
    cursor: pointer;
    border-radius: 10px;
    z-index: 5;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
    text-align: center;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}

.carousel-dots button.active { background: #DAA520; }

@media screen and (max-width: 768px) {
    .slide { flex-direction: column; }
    .slide-img, .slide-text { width: 100%; }
    .carousel-btn { top: auto; bottom: 10px; transform: none; opacity: 0.9; }
    .carousel-btn.prev { left: 20%; }
    .carousel-btn.next { right: 20%; }
}


