/* ONSFAG Slider CSS - v1.2.0 (arrows + bullets) */
:root{
  --onsfag-blue:#0028AC;
  --onsfag-blue-2:#005CAE;
  --onsfag-orange:#FE4E12;
  --onsfag-text:#203D5D;
  --onsfag-shadow:0 6px 18px rgba(0,0,0,.15);
  --onsfag-radius:14px;
  --gap:16px;
}

.onsfag-actualites-slider-container{
  width:100%;
  position:relative;
  background:#fff;
  border-radius:var(--onsfag-radius);
  box-shadow:var(--onsfag-shadow);
  padding:18px 44px; /* espace pour flèches */
}

.onsfag-viewport{
  overflow:hidden;
}

.onsfag-actualites-track{
  display:flex;
  gap:var(--gap);
  will-change:transform;
  transform:translateX(0);
  transition:transform .45s ease-in-out;
}

.onsfag-slide{
  flex:0 0 320px;
  background:#f9fbff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}
.onsfag-slide:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 20px rgba(0,0,0,.16);
}

.onsfag-slide-image{ width:100%; height:190px; overflow:hidden; background:#eaf0ff; }
.onsfag-slide-image img{ width:100%; height:100%; object-fit:cover; display:block; }
.onsfag-placeholder{ width:100%; height:100%; background:linear-gradient(135deg, #e6eefc, #f3f7ff); }

.onsfag-slide-content{ padding:12px 14px 16px; }
.onsfag-slide-title{ font-size:1rem; margin:0 0 6px; line-height:1.3; } /* H4 réduit */
.onsfag-slide-title a{ color:var(--onsfag-blue); text-decoration:none; }
.onsfag-slide-title a:hover{ text-decoration:underline; }
.onsfag-slide-excerpt{ color:#333; margin:0 0 10px; font-size:.93rem; }
.onsfag-slide-link{
  display:inline-block; padding:8px 12px; border-radius:999px; text-decoration:none;
  font-weight:600; border:2px solid var(--onsfag-orange); color:var(--onsfag-orange);
  transition:background .2s ease, color .2s ease;
}
.onsfag-slide-link:hover{ background:var(--onsfag-orange); color:#fff; }

/* Flèches */
.onsfag-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px; border:none; cursor:pointer;
  background:#fff; box-shadow:0 4px 12px rgba(0,0,0,.15);
  color:var(--onsfag-blue); font-size:24px; line-height:40px; text-align:center;
  transition:transform .2s ease, background .2s ease, color .2s ease;
}
.onsfag-nav:hover{ transform:translateY(-50%) scale(1.07); background:var(--onsfag-blue); color:#fff; }
.onsfag-prev{ left:10px; }
.onsfag-next{ right:10px; }

/* Bullets */
.onsfag-dots{
  display:flex; justify-content:center; gap:8px; margin-top:12px;
}
.onsfag-dots button{
  width:10px; height:10px; border-radius:999px; border:none; cursor:pointer;
  background:#cfd9ff; transition:transform .2s ease, background .2s ease;
}
.onsfag-dots button[aria-selected="true"]{ background:var(--onsfag-orange); transform:scale(1.2); }
.onsfag-dots button:hover{ background:var(--onsfag-blue-2); }

/* Responsive */
@media (max-width: 768px){
  .onsfag-slide{ flex-basis: 260px; }
  .onsfag-slide-image{ height:160px; }
  .onsfag-actualites-slider-container{ padding:16px 38px; }
  .onsfag-nav{ width:36px; height:36px; font-size:22px; line-height:36px; }
}
