/* ARKOD Custom Slider V2 — Moteur maison */

/* ========== Container ========== */
.arkod-v2-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.arkod-v2-slider {
    height: 64vh;
    height: 64svh; /* svh = small viewport height, stable sur mobile (barre d'adresse ignorée) */
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color, #000);
    touch-action: pan-y pinch-zoom;
}

/* ========== Track ========== */

/* Effet slide : flex row horizontal, translateX sur le track */
[data-effect="slide"] .arkod-v2-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    will-change: transform;
}

/* Effet fade : conteneur relatif pour positionnement absolu des slides */
[data-effect="fade"] .arkod-v2-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ========== Slides ========== */

/* Effet slide : items flex */
[data-effect="slide"] .arkod-v2-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Effet fade : slides empilés en absolu */
[data-effect="fade"] .arkod-v2-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease-in-out !important;
    z-index: 0;
}

[data-effect="fade"] .arkod-v2-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Slide sortant : garde le z-index le temps que le entrant monte à 1 */
[data-effect="fade"] .arkod-v2-slide.is-leaving {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* ========== Picture & Images ========== */
.arkod-v2-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.arkod-v2-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Point focal desktop */
    object-position: var(--dp-x, 50%) var(--dp-y, 50%);
}

/* Point focal mobile */
@media (max-width: 767px) {
    .arkod-v2-picture img {
        object-position: var(--mp-x, var(--dp-x, 50%)) var(--mp-y, var(--dp-y, 50%));
    }
}

/* ========== Content Container ========== */
.arkod-v2-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 400px;
    max-width: 520px;
    width: 100%;
    font-size: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    letter-spacing: 1px;
    z-index: 10;
    pointer-events: none;
}

.arkod-v2-content * {
    pointer-events: auto;
}

/* ========== Text ========== */
.arkod-v2-text {
    font-size: 38px;
    font-weight: 400;
    width: 100%;
    /* 'AvantGarde Regular' est une font système (macOS). Pas de fichier web font
       sur le serveur → pas de FOUT. Fallback explicite pour Windows/Linux. */
    font-family: 'AvantGarde Regular', 'Century Gothic', 'Trebuchet MS', sans-serif;
    color: #ffffff;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    -webkit-font-smoothing: antialiased;
}

/* ========== Button ========== */
.arkod-v2-button {
    background-color: transparent;
    margin-top: 20px;
    color: #ffffff !important;
    border: 1px solid #ffffff;
    font-size: 17px;
    width: fit-content;
    padding: 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.arkod-v2-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ========== Responsive Typography ========== */
@media only screen and (max-width: 1200px) {
    .arkod-v2-text { font-size: 32px !important; }
    .arkod-v2-content { max-width: 450px; }
}

@media only screen and (max-width: 800px) {
    .arkod-v2-text { font-size: 25px !important; }
    .arkod-v2-content { max-width: 75% !important; padding-left: 15px; }
}

@media only screen and (max-width: 425px) {
    .arkod-v2-text { font-size: 22px !important; }
    .arkod-v2-content { max-width: 85% !important; }
}
