/* ==========================================================================
   Accueil — slider « à la une » (index.php)
   Fond : visuel flouté et assombri ; texte à gauche ; visuel entier à droite.
   ========================================================================== */

.sag-banner{ position:relative; width:100%; float:left; padding:0 !important; height:clamp(580px, 88vh, 840px); background:#06101f; }
.sag-hero{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.sag-hero .carousel, .sag-hero .carousel-inner, .sag-hero .carousel-item{ height:100%; }
.sag-hero .carousel-item{ background:#06101f; overflow:hidden; }

/* fond flouté + voile pour la lisibilité */
.sag-hero-bg{ position:absolute; inset:-60px; background-size:cover; background-position:center; filter:blur(28px) saturate(1.2) brightness(.6); transform:scale(1.1); }
.sag-hero .carousel-item::after{ content:""; position:absolute; inset:0; z-index:1;
	background:linear-gradient(90deg, rgba(4,11,26,.94) 0%, rgba(4,11,26,.78) 42%, rgba(4,11,26,.38) 100%),
	           linear-gradient(0deg, rgba(4,11,26,.65) 0%, rgba(4,11,26,0) 32%); }

.sag-hero-wrap{ position:relative; z-index:2; height:100%; display:flex; align-items:center; gap:56px; padding-top:96px; padding-bottom:70px; }
.sag-hero-text{ flex:1 1 54%; min-width:0; }
.sag-hero-visual{ flex:0 1 42%; height:100%; min-width:0; display:flex; align-items:center; justify-content:center; }
.sag-hero-visual img{ display:block; max-width:100%; max-height:100%; width:auto; height:auto; border-radius:14px; box-shadow:0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
/* image cliquable (même lien que le bouton) : le lien garde la hauteur du bloc pour que l'image ne déborde pas */
.sag-hero-link{ display:flex; align-items:center; justify-content:center; height:100%; max-width:100%; border-radius:14px; cursor:pointer; }
.sag-hero-link img{ transition:transform .3s ease, filter .3s ease; }
.sag-hero-link:hover img{ transform:translateY(-4px) scale(1.01); filter:brightness(1.06); }

.sag-hero-kicker{ display:inline-block; margin:0 0 20px; padding:8px 16px; border-radius:999px; font-size:15px; font-weight:600; line-height:1.4; color:#bae6fd; background:rgba(2,132,199,.22); border:1px solid rgba(125,211,252,.35); }
.sag-hero-title{ margin:0 0 30px; padding:0; font-size:clamp(28px, 3.7vw, 54px); line-height:1.14; font-weight:600; color:#fff; letter-spacing:-.3px; text-shadow:0 2px 20px rgba(0,0,0,.35); }
.sag-hero-btn{ display:inline-flex; align-items:center; gap:10px; padding:14px 30px; border-radius:999px; background:#fa7e23; color:#fff !important; font-size:16px; font-weight:700; text-decoration:none !important; box-shadow:0 12px 28px rgba(250,126,35,.35); transition:transform .2s ease, background .2s ease, color .2s ease; }
.sag-hero-btn:hover{ background:#fff; color:#0b1424 !important; transform:translateY(-2px); }

/* animations à l'apparition de chaque slide */
@keyframes sagUp{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
@keyframes sagZoom{ from{ opacity:0; transform:scale(1.06); } to{ opacity:1; transform:none; } }
.sag-hero .carousel-item.active .sag-hero-kicker{ animation:sagUp .7s .1s both; }
.sag-hero .carousel-item.active .sag-hero-title{ animation:sagUp .7s .25s both; }
.sag-hero .carousel-item.active .sag-hero-btn{ animation:sagUp .7s .4s both; }
.sag-hero .carousel-item.active .sag-hero-visual img{ animation:sagZoom 1.1s .1s both; }
.sag-hero .carousel-fade .carousel-item{ transition-duration:.8s; }

/* flèches */
.sag-hero .sag-hero-arrow{ z-index:3; top:50%; bottom:auto; width:52px; height:52px; margin-top:-26px; border-radius:50%; background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.25); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); opacity:1; transition:background .2s ease, border-color .2s ease; }
.sag-hero .carousel-control-prev{ left:22px; }
.sag-hero .carousel-control-next{ right:22px; }
.sag-hero .sag-hero-arrow:hover{ background:rgba(255,255,255,.24); border-color:rgba(255,255,255,.5); }
.sag-hero .sag-hero-arrow span{ font-size:30px; line-height:1; color:#fff; margin-top:-3px; }

/* indicateurs (le thème les affichait en colonne et masqués) */
.sag-hero .sag-hero-dots{ display:flex !important; position:absolute; z-index:3; top:auto; bottom:26px; left:0; right:0; height:auto; width:auto; margin:0 auto; padding:0; justify-content:center; -webkit-transform:none; transform:none; }
.sag-hero .sag-hero-dots li{ width:30px; height:4px; margin:0 4px; border:0; border-radius:4px; background:rgba(255,255,255,.38); text-indent:-999px; cursor:pointer; transition:width .3s ease, background .3s ease; }
.sag-hero .sag-hero-dots li.active{ width:52px; background:#fa7e23; }

/* tablettes et mobiles : visuel au-dessus, texte centré dessous */
@media (max-width: 991px){
	.sag-banner{ height:auto; }
	.sag-hero{ position:relative; inset:auto; }
	.sag-hero .carousel-item{ height:640px; }
	.sag-hero-wrap{ flex-direction:column; justify-content:center; gap:22px; padding-top:100px; padding-bottom:64px; text-align:center; }
	.sag-hero-visual{ flex:0 0 auto; height:auto; }
	.sag-hero-visual img{ max-height:250px; }
	.sag-hero-text{ flex:0 0 auto; }
	.sag-hero-kicker{ font-size:13.5px; margin-bottom:14px; }
	.sag-hero-title{ margin-bottom:20px; }
	.sag-hero .sag-hero-arrow{ display:none; }
	.sag-hero .carousel-item::after{ background:linear-gradient(0deg, rgba(4,11,26,.95) 0%, rgba(4,11,26,.72) 55%, rgba(4,11,26,.55) 100%); }
}
@media (max-width: 575px){
	.sag-hero .carousel-item{ height:600px; }
	.sag-hero-visual img{ max-height:210px; }
	.sag-hero-btn{ padding:12px 24px; font-size:15px; }
}
@media (prefers-reduced-motion: reduce){
	.sag-hero .carousel-item.active .sag-hero-kicker,
	.sag-hero .carousel-item.active .sag-hero-title,
	.sag-hero .carousel-item.active .sag-hero-btn,
	.sag-hero .carousel-item.active .sag-hero-visual img{ animation:none; }
}
