/* 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;
  margin-bottom: 50px;
}

#actualite .ajouter-au-panier {
  font-family:'Baloo2', Helvetica, Arial, sans serif;
  background-color: #DA0710;
  color: #FFF;
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
}


#actualite .ajouter-au-panier a {
  color: #FFF;
  text-decoration: none;
}

#actualite .ajouter-au-panier:hover {
  font-size: 15px;
  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;
}

.border-svg rect {
  stroke: #30bb98;
  /* stroke: #26aa92; */
  stroke-width: 10;
  fill: none;
  stroke-dasharray: 1420;
  stroke-dashoffset: 1420;
  animation: borderAnimation 8s linear infinite;
}

@keyframes borderAnimation {
  0% {
    stroke-dashoffset: 1400;
  }
  99.999% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1399.99;
  }
}



@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;
	}
}

.accessible-mode #actualite p,
.accessible-mode #actualite a {
	 font-family: Helvetica, Arial, sans serif;
	font-size: 16px;
}