/* ========================= */
/* RESET */
/* ========================= */
@font-face {
    font-family: 'adelphe';
    src: url('FONT/Adelphe-FructidorSemiBold.otf') format('woff');
    font-weight: normal;
    font-style: italic;
    size-adjust: 140%;
}

@font-face {
    font-family: 'Ludd';
    src: url('FONT/LUDDS.ttf') format('truetype');
    unicode-range: U+0020-005A, U+005C, U+005E-007E;
}

@font-face {
    font-family: 'Ludd-full';
    src: url('FONT/LUDDS.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: adelphe, sans-serif;
    overflow-x: hidden;
    background: black;   
}


/* ========================= */
/* IMAGES QUI DEFILENT */
/* ========================= */
.scene {
    position: relative;
}

.scroll-container {
    position: relative;
    z-index: 0;
    width: 100%;
}

.scroll-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================= */
/* CALQUE FIXE AU DESSUS */
/* ========================= */
.fixed-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

/* ========================= */
/* BOITES MENU webp */
/* ========================= */
.text-blocks {
    width: 100%;
    height: 100%;
    position: relative;
}

.bloc {
    position: fixed;
    padding: 0;
    pointer-events: auto;
    cursor: url(IMG/vis.jpg), auto;
}

/* Positions des 3 coins */
.bloc:nth-child(1) { bottom: 12px; left: 12px;  }

/* ========================= */
/* BOUTONS webp AVEC HOVER */
/* ========================= */
.svg-btn {
    position: relative;
    display: inline-block;
    width: 500px;
}

.svg-btn img {
    width: 100%;
    display: block;
}

/* Image hover cachée par défaut */
.svg-btn .svg-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* Au hover : swap */
.svg-btn:hover .svg-hover {
    opacity: 1;
}

.svg-btn:hover .svg-default {
    opacity: 0;
}

/* ========================= */
/* CENTRE SVG */
/* ========================= */
.center {
    z-index: 2;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.svg-rotate {
    width: 55vmin;
    height: 55vmin;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.svg-rotate path {
    fill: none;
    stroke: white;
    animation: pulseStroke 16s ease-in-out infinite;
}

@keyframes pulseStroke {
    0%   { stroke-width: 0;   opacity: 1; }
    50%  { stroke-width: 100; opacity: 1; }
    100% { stroke-width: 0;   opacity: 1; }
}

/* ========================= */
/* RESPONSIVE MOBILE */
/* ========================= */
@media (max-width: 768px) {
    .svg-btn {
        width: 200px;
    }
    .svg-rotate {
        width: 160px;
    }
    .scroll-img {
        min-height: 100vw;
        object-fit: cover;
    }
}

/*mode paysage*/
@media (max-height: 500px) {
    .svg-btn { width: 150px; }
    .svg-rotate { width: 120px; }
    .slider-snails { height: 100vh; }
}

/* ========================= */
/* MACHINE À ÉCRIRE         */
/* ========================= */
.typewriter-block {
    background: black;
    padding: 60px 32px 50px;
    color: white;
    font-family: 'Ludd','Adelphe', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    line-height: 1.7;
}

.typewriter-text {
    white-space: pre-wrap;
}

.typewriter-text::after {
    content: '|';
    animation: blink 0.65s step-end infinite;
}

.typewriter-text.done::after {
    content: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .typewriter-block {
        padding: 40px 20px 36px;
    }
}

/* ========================= */
/* SLIDER PHOTOS MEMOIRE */
/* ========================= */
.slider-scene {
    background: black;
}

.slider-box {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-snails {
    height: 160vh;
    background: black;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

.slider-img {
    min-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.slider-snails .slider-img {
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: grey;
    border: none;
    font-family: 'Ludd-full', sans-serif;
    font-size: 2rem;
    padding: 0.4em 0.7em;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.slider-prev { left: 0; transform: translateY(-50%) scaleX(-1); }
.slider-next { right: 0; }

.slider-dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: white;
}

@media (max-width: 768px) {
    .slider-btn {
        font-size: 1.3rem;
        padding: 0.3em 0.5em;
    }
    .slider-snails {
        height: 100vw;
    }
}