/* ============================================================
   Hero Slider Full Width — Style raffiné (ExperTours)
   v1.6.0
   ============================================================ */

/* ─── Conteneur principal ─── */
.hs-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #002636;
}

/* ─── CORRECTIF CLÉ : hauteur = hauteur demandée MOINS le header réel ─── */
/* --hs-header-height est calculé dynamiquement par JS au chargement        */
.hs-slides {
    position: relative;
    width: 100%;
    min-height: inherit;
    min-height: var(--hs-min-height, 100vh) !important;
}

/* ─── Slides ─── */
.hs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: var(--hs-min-height, 100vh) !important;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out;
    /* Flex pour centrer le contenu verticalement */
    display: flex;
    align-items: center;
}

/* Voile coloré + dégradé */
.hs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: var(--hs-overlay-color, transparent);
    background-image:
        linear-gradient(180deg, rgba(0,38,54,0.35) 0%, transparent 30%, transparent 60%, rgba(0,38,54,0.7) 100%),
        linear-gradient(90deg, rgba(0,38,54,0.55) 0%, transparent 50%);
}

.hs-slide-bg-color::before {
    background-image: none;
}

/* Image background avec zoom */
.hs-slide-bg-image .hs-slide-image-zoom {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: brightness(0.85) saturate(1.05);
}

.hs-slide.active .hs-slide-image-zoom {
    animation: hsHeroZoom 18s ease-out infinite alternate;
}

@keyframes hsHeroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hs-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
}

.hs-slide.slide-out {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* ─── Cadre décoratif ─── */
.hs-frame {
    position: absolute;
    inset: 32px;
    border: 1px solid rgba(255,255,255,0.18);
    pointer-events: none;
    z-index: 3;
}

.hs-frame::before,
.hs-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--hs-accent-color, #48c9b0);
}

.hs-frame::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}

.hs-frame::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}

/* ─── Localisation ─── */
.hs-location {
    position: absolute;
    top: 56px;
    left: 10%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    opacity: 0;
}

.hs-slide.active .hs-location {
    animation: hsFadeUp 1s 0.2s forwards;
}

.hs-location svg {
    width: 16px; height: 16px;
    color: var(--hs-accent-color, #48c9b0);
    flex-shrink: 0;
}

/* ─── Marker vertical ─── */
.hs-marker {
    position: absolute;
    right: 4px;
    top: 56px;
    writing-mode: vertical-rl;
    color: rgba(255,255,255,0.55);
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    overflow: hidden;
    max-height: calc(100% - 40px);
}

.hs-marker::before {
    content: '';
    width: 1px;
    height: 50px;
    background: var(--hs-accent-color, #48c9b0);
}

/* ─── Scroll indicator ─── */
.hs-scroll {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 8;
    pointer-events: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.hs-scroll.hs-scroll-link:hover {
    color: var(--hs-accent-color, #48c9b0);
    transform: translateX(-50%) translateY(-3px);
}

.hs-scroll::after {
    content: '';
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, var(--hs-accent-color, #48c9b0), transparent);
    animation: hsScrollLine 2s ease-in-out infinite;
}

@keyframes hsScrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ─── Container du contenu ─── */
.hs-container {
    position: relative;
    z-index: 5;
    /* Ne bloque pas les clics sur les éléments absolus (scroll, dots) */
    pointer-events: none;
    width: 80%;
    max-width: 1440px;
    margin: 0 auto;
    /* Padding haut = location (52px) + marge (30px) = 82px min
       Padding bas = dots (40px) + scroll (60px) + marge (30px) = 130px min */
    padding: 110px 0 100px;
    min-height: inherit;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

.hs-content {
    width: 100%;
    max-width: 780px;
    color: #fff;
    pointer-events: auto;
}

/* Alignements */
.hs-content[style*="center"] {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}
.hs-content[style*="right"] {
    margin-left: auto;
}

/* ─── Tagline ─── */
.hs-tagline {
    color: var(--hs-tagline-color, var(--hs-accent-color, #48c9b0));
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    margin: 0 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hs-tagline::before,
.hs-tagline::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--hs-tagline-lines-color, var(--hs-accent-color, #48c9b0));
    flex-shrink: 0;
}

.hs-content[style*="left"]   .hs-tagline::before { display: none; }
.hs-content[style*="right"]  .hs-tagline::after  { display: none; }

/* ─── Titre ─── */
.hs-title {
    color: var(--hs-text-color, #ffffff);
    font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
    font-size: clamp(36px, 5.5vw, 92px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 900px;
    margin-bottom: 20px;
}

.hs-content[style*="center"] .hs-title { margin-left: auto; margin-right: auto; }
.hs-content[style*="right"]  .hs-title { margin-left: auto; }

.hs-title .accent {
    color: var(--hs-accent-color, #48c9b0);
    font-weight: 400;
}

.hs-title .script {
    font-family: 'Birthstone', cursive;
    color: var(--hs-accent-color, #48c9b0);
    font-size: 1.35em;
    display: inline-block;
    font-weight: 400;
    margin: 0 0.05em;
    line-height: 0.9;
    vertical-align: -0.05em;
}

.hs-title em {
    font-style: italic;
    color: rgba(190,227,229,1);
    font-weight: 300;
}

/* ─── Description ─── */
.hs-description {
    font-family: 'Cormorant Garamond', 'Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 300;
    max-width: 580px;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    margin-bottom: 32px;
    font-style: italic;
}

.hs-content[style*="center"] .hs-description { margin-left: auto; margin-right: auto; }
.hs-content[style*="right"]  .hs-description { margin-left: auto; }

/* ─── Boutons ─── */
.hs-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hs-content[style*="center"] .hs-buttons { justify-content: center; }
.hs-content[style*="right"]  .hs-buttons { justify-content: flex-end; }
.hs-content[style*="left"]   .hs-buttons { justify-content: flex-start; }

.hs-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    background: var(--hs-button-bg, #48c9b0);
    color: var(--hs-button-text, #002636);
    line-height: 1;
    transition: color 0.5s cubic-bezier(.2,.8,.2,1), transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
    isolation: isolate;
    white-space: nowrap;
}

.hs-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    transform: translateX(-101%);
    transition: transform 0.5s cubic-bezier(.7,0,.3,1);
    z-index: -1;
}

.hs-button:hover {
    color: var(--hs-button-bg, #002636);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(72,201,176,0.45);
}

.hs-button:hover::before { transform: translateX(0); }

.hs-button.hs-button-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 15px 31px;
}

.hs-button.hs-button-secondary::before { background: #ffffff; }

.hs-button.hs-button-secondary:hover {
    color: #002636;
    border-color: #ffffff;
}

.hs-button .hs-button-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.hs-button .hs-button-icon svg {
    width: 14px; height: 14px;
    display: block;
    color: currentColor;
}

.hs-button:hover .hs-button-icon { transform: translateX(3px); }
.hs-button .hs-button-text { position: relative; z-index: 1; }

/* ─── Animations d'entrée ─── */
.hs-slide.active .hs-location  { animation: hsFadeUp 1s 0.2s forwards; }
.hs-slide.active .hs-tagline   { opacity: 0; animation: hsFadeUp 1s 0.3s forwards; }
.hs-slide.active .hs-title     { opacity: 0; animation: hsFadeUp 1.1s 0.5s forwards; }
.hs-slide.active .hs-description { opacity: 0; animation: hsFadeUp 1.1s 0.7s forwards; }
.hs-slide.active .hs-buttons   { opacity: 0; animation: hsFadeUp 1.1s 0.9s forwards; }

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

/* ─── Flèches ─── */
.hs-hero-slider .hs-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0.7) !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 6 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.7 !important;
    box-sizing: border-box !important;
    line-height: 0 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    transition: all 0.4s cubic-bezier(.2,.8,.2,1) !important;
    /* Jamais plus large que l'écran */
    max-width: min(42px, 10vw) !important;
    max-height: min(42px, 10vw) !important;
}

.hs-hero-slider .hs-arrow svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 1.5 !important;
    display: block !important;
    fill: none !important;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1) !important;
    flex-shrink: 0 !important;
}

.hs-hero-slider .hs-arrow svg path,
.hs-hero-slider .hs-arrow svg polyline {
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 1.5 !important;
}

.hs-hero-slider .hs-arrow:hover {
    background: rgba(72,201,176,0.08) !important;
    border-color: var(--hs-accent-color, #48c9b0) !important;
    color: var(--hs-accent-color, #48c9b0) !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
}

.hs-hero-slider .hs-prev { left: 40px !important; }
.hs-hero-slider .hs-next { right: 40px !important; }

/* ─── Points ─── */
.hs-dots {
    position: absolute;
    bottom: 72px;
    left: 10%;
    display: flex;
    gap: 12px;
    z-index: 6;
    align-items: center;
}

.hs-dot {
    width: 28px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.hs-dot.active {
    background: var(--hs-accent-color, #48c9b0);
    width: 56px;
}

.hs-dot:hover:not(.active) {
    background: rgba(255,255,255,0.6);
    width: 40px;
}

/* ─── Séparateur vague ─── */
.hs-separator {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.hs-separator svg { display: block; width: 100%; height: auto; }

/* ============================================================
   RESPONSIVE — de 1200px jusqu'à 320px sans superposition
   ============================================================ */

/* ── Large tablette / petit desktop ── */
@media (max-width: 1200px) {
    .hs-hero-slider .hs-prev { left: 40px !important; }
    .hs-hero-slider .hs-next { right: 40px !important; }
    .hs-container { width: 82%; }
    .hs-marker { right: 36px; }
}

/* ── Tablette ── */
@media (max-width: 1024px) {
    .hs-container { width: 86%; padding: 90px 0 140px; align-items: flex-start; }
    .hs-hero-slider .hs-prev { left: 12px !important; }
    .hs-hero-slider .hs-next { right: 12px !important; }
    .hs-marker { right: 0px; font-size: 9px; letter-spacing: 0.3em; }
    .hs-location { left: 6%; }
    .hs-dots { left: 7%; }
}

/* ── Mobile large (768px) ── */
@media (max-width: 768px) {
    /* Hauteur plancher plus basse sur mobile */
    .hs-slides,
    .hs-slide {
        min-height: var(--hs-min-height, 100vh) !important;
    }

    .hs-container {
        width: 90%;
        /* Padding top plus grand pour ne pas être sous la localisation */
        padding: 120px 0 150px;
        align-items: flex-start;
    }

    /* Cadre plus fin sur mobile */
    .hs-frame { inset: 14px; }

    /* Localisation remontée */
    .hs-location {
        top: 20px;
        left: 5%;
        font-size: 10px;
        letter-spacing: 0.2em;
    }
    .hs-location svg { width: 13px; height: 13px; }

    /* Marker caché */
    .hs-marker { display: none; }

    /* Scroll indicator */
    .hs-scroll { bottom: 14px; }

    /* Tagline */
    .hs-tagline {
        font-size: 10px;
        letter-spacing: 0.3em;
        margin-bottom: 16px;
        gap: 10px;
    }
    .hs-tagline::before,
    .hs-tagline::after { width: 22px; }

    /* Titre — taille fluide entre 32px et 52px */
    .hs-title {
        font-size: clamp(32px, 7.5vw, 52px);
        margin-bottom: 14px;
        line-height: 1.08;
    }

    /* Description */
    .hs-description {
        font-size: 16px;
        margin-bottom: 28px;
        max-width: 100%;
    }

    /* Boutons empilés sur petits écrans */
    .hs-buttons {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    .hs-content[style*="center"] .hs-buttons { align-items: center; }
    .hs-content[style*="right"]  .hs-buttons { align-items: flex-end; }

    .hs-button {
        padding: 14px 24px;
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    /* Flèches plus petites, collées au bord */
    .hs-hero-slider .hs-arrow {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }
    .hs-hero-slider .hs-arrow svg {
        width: 12px !important;
        height: 12px !important;
    }
    .hs-hero-slider .hs-prev { left: 10px !important; }
    .hs-hero-slider .hs-next { right: 10px !important; }

    /* Points */
    .hs-dots { bottom: 60px; left: 5%; gap: 8px; }
    .hs-dot  { width: 18px; }
    .hs-dot.active { width: 36px; }
}

/* ── Mobile moyen (480px) ── */
@media (max-width: 480px) {
    .hs-slides,
    .hs-slide {
        min-height: var(--hs-min-height, 100vh) !important;
    }

    .hs-container {
        width: 92%;
        padding: 100px 0 140px;
        align-items: flex-start;
    }

    /* Cadre encore plus réduit */
    .hs-frame { inset: 10px; }

    .hs-title {
        font-size: clamp(28px, 8vw, 42px);
        margin-bottom: 12px;
    }

    .hs-description { font-size: 15px; margin-bottom: 24px; }

    /* Bouton pleine largeur sur très petit */
    .hs-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .hs-scroll { display: none; }
    .hs-dots { bottom: 16px; }
}

/* ── Très petit mobile (360px) ── */
@media (max-width: 360px) {
    .hs-slides,
    .hs-slide {
        min-height: var(--hs-min-height, 100vh) !important;
    }

    .hs-container { padding: 80px 0 130px; align-items: flex-start; }

    .hs-title { font-size: clamp(26px, 9vw, 36px); }

    .hs-tagline { font-size: 9px; letter-spacing: 0.25em; }
    .hs-tagline::before, .hs-tagline::after { width: 16px; }

    .hs-hero-slider .hs-prev { left: 6px !important; }
    .hs-hero-slider .hs-next { right: 6px !important; }
}
