/* Style du bloc actualité */
#actualite {
  font-family:'Baloo2', Helvetica, Arial, sans serif;
  width: 60%;
  max-width: 600px;
  height: auto;
  padding: 20px;
  background-color: #FFF;
  border-radius: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 auto;
  z-index: 1;
  opacity: 0.9;
}

#actualite .btn {
  font-family:'Baloo2', Helvetica, Arial, sans serif;
  background-color: #DA0710;
  color: #FFF;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
}


#actualite .btn a {
  color: #FFF;
  text-decoration: none;
}

#actualite .btn:hover {
  font-size: 16px;
  background-color: #26aa92;
  color: #FFF;
}

.border-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Affiche uniquement le SVG desktop par défaut */
.border-svg.mobile {
    display: none;
}


@media screen and (max-width: 768px) {
  #actualite {
    width: 90%; 
  }

  /* Bordure SVG pour mobiles */
  .border-svg rect {
    stroke-width: 6; 
  }

  .border-svg {
    width: 100%;
    height: 100%;
  }
}

@keyframes borderAnimation {
  from {
    stroke-dashoffset: 1400;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.border-svg rect {
  animation: borderAnimation 8s linear infinite;
}


/* Affiche le SVG mobile en dessous de 768px et masque le desktop */
@media (max-width: 450px) {
    .border-svg.desktop {
        display: none;
    }
    .border-svg.mobile {
        display: block;
    }
	#actualite p {
	  padding-left: 25px;
	  padding-right: 25px;
	}
}