/* =========================================================
   TDV · Hero Slides — Les Toits Du Var  [CSS v1.1.0]
   Palette : jaune #f9bf21 · bleu 7bb9e7→0078be · vert #5c7d33
   ========================================================= */
.tdv-hs{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    isolation:isolate;
}
.tdv-hs-track{
    position:relative;
    display:grid;
    grid-template-areas:"stack";
}

.tdv-hs-slide{
    grid-area:stack;
    display:flex;
    background-size:cover;
    background-position:center;
    opacity:0;
    visibility:hidden;
    transform:scale(1.06);
    transition:opacity .9s ease, transform 7s linear, visibility .9s;
    pointer-events:none;
}
.tdv-hs-slide.is-active{
    opacity:1;
    visibility:visible;
    transform:scale(1);
    z-index:1;
    pointer-events:auto;
}

.tdv-hs-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    background:#002a4c;
}

.tdv-hs-overlay{
    position:absolute; inset:0;
    background:rgba(0,42,76,.55);
    z-index:1;
}
.tdv-hs-overlay.has-gradient::after{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(0,42,76,.85) 0%, rgba(0,42,76,0) 55%);
}

.tdv-hs-content{
    position:relative;
    z-index:2;
    margin:auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:18px;
    max-width:840px;
    padding:48px 28px;
    width:100%;
}

.tdv-hs-eyebrow{
    display:inline-block;
    color:#f9bf21;
    background:rgba(249,191,33,.15);
    font-size:14px;
    font-weight:700;
    letter-spacing:.14em;
    text-transform:uppercase;
    padding:8px 18px;
    border-radius:999px;
    backdrop-filter:blur(4px);
    border:1px solid rgba(249,191,33,.35);
    animation:tdvFadeUp .7s ease both;
}

.tdv-hs-title{
    color:#fff;
    font-size:clamp(2rem, 5vw, 3.6rem);
    line-height:1.08;
    font-weight:800;
    margin:0;
    text-shadow:0 4px 24px rgba(0,0,0,.35);
    animation:tdvFadeUp .8s .08s ease both;
}

.tdv-hs-subtitle{
    color:rgba(255,255,255,.92);
    font-size:clamp(1rem, 1.6vw, 1.2rem);
    line-height:1.6;
    margin:0;
    max-width:640px;
    animation:tdvFadeUp .9s .16s ease both;
}

.tdv-hs-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    justify-content:center;
    margin-top:8px;
    animation:tdvFadeUp 1s .24s ease both;
}

.tdv-hs-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:14px 26px;
    border-radius:8px;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    line-height:1;
    transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.tdv-hs-btn:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.28); }
.tdv-hs-btn-1{ background:#f9bf21; color:#002a4c; }
.tdv-hs-btn-2{ background:#0078be; color:#fff; }
.tdv-hs-btn-3{ background:#5c7d33; color:#fff; }
.tdv-hs-btn-icon{ display:inline-flex; font-size:1em; }
.tdv-hs-btn-icon svg{ width:1em; height:1em; fill:currentColor; }

/* Flèches */
.tdv-hs-nav{
    position:absolute;
    top:50%;
    left:0;
    right:0;
    transform:translateY(-50%);
    z-index:5;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    pointer-events:none;
}
.tdv-hs-arrow{
    pointer-events:auto;
    width:52px; height:52px;
    margin:0;
    padding:0;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:34px;
    line-height:1;
    cursor:pointer;
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,.3);
    transition:background .25s ease, transform .25s ease;
    display:flex; align-items:center; justify-content:center;
    flex:0 0 auto;
}
.tdv-hs-arrow span{ display:block; margin-top:-4px; }
.tdv-hs-arrow:hover{ background:#f9bf21; color:#002a4c; }
.tdv-hs-arrow:focus-visible{ outline:3px solid #f9bf21; outline-offset:3px; }

/* Dots */
.tdv-hs-dots{
    position:absolute;
    bottom:22px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    display:flex;
    gap:10px;
}
.tdv-hs-dot{
    width:12px; height:12px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.8);
    background:transparent;
    cursor:pointer;
    padding:0;
    transition:background .25s ease, width .25s ease;
}
.tdv-hs-dot.is-active{ background:#f9bf21; border-color:#f9bf21; width:30px; border-radius:999px; }
.tdv-hs-dot:focus-visible{ outline:3px solid #f9bf21; outline-offset:3px; }

@keyframes tdvFadeUp{
    from{ opacity:0; transform:translateY(22px); }
    to{ opacity:1; transform:translateY(0); }
}

/* RESPONSIVE */
@media (max-width:1024px){
    .tdv-hs-nav{ padding:0 12px; }
    .tdv-hs-arrow{ width:46px; height:46px; font-size:28px; }
}
@media (max-width:768px){
    .tdv-hs{ border-radius:12px; }
    .tdv-hs-content{ padding:40px 20px; gap:14px; }
    .tdv-hs-arrow{ width:40px; height:40px; font-size:24px; }
}
@media (max-width:600px){
    .tdv-hs-buttons{ flex-direction:column; width:100%; }
    .tdv-hs-btn{ width:100%; justify-content:center; }
    .tdv-hs-nav{ display:none; }
    .tdv-hs-eyebrow{ font-size:12px; padding:6px 14px; }
}

@media (prefers-reduced-motion:reduce){
    .tdv-hs-slide,
    .tdv-hs-eyebrow,
    .tdv-hs-title,
    .tdv-hs-subtitle,
    .tdv-hs-buttons{ animation:none !important; transition:opacity .4s ease !important; }
    .tdv-hs-slide{ transform:none !important; }
}
