:root {
    --main-font: "Monospace821Regular", monospace, sans-serif;
    --link-color: #0000EE;
    --bg-color: #fff;
    --text-color: #000;
    --max-width: 800px;
    --hover-dark: #333;
}
/* SVG Instagram Icon */
.insta-link {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--link-color); /* Utilise votre bleu #0000EE */
    transition: all 0.8s ease;
    padding: 2px; /* Un peu d'espace si besoin */
}

.insta-link svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* Hover Effect: Invert colors like before */
.insta-link:hover {
    background-color: var(--link-color);
    color: var(--bg-color); /* Le SVG deviendra blanc */
    border-radius: 4px;
    text-decoration: none; /* Empêche le soulignement standard des liens */
}
/* Font Faces */
/* Font Faces */
@font-face {
  font-family: 'FlorenceSans';
  src: url('../fonts/SFFlorencesans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: 'CaslonPro';
  src: url('../fonts/ACaslonPro-SemiboldItalic.otf') format('opentype');
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Monospace821Regular";
  src: url('../fonts/MONOSPACE821BT.TTF')  format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monospace821Bold";
  src: url('../fonts/MONOSPACE821BOLDBT.TTF') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--main-font);
    margin: 0;
    padding: 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 2px; /* Espace entre le texte et le trait */
    
    /* On prépare le trait avec le background */
    background: linear-gradient(var(--link-color) 0 0) 
                bottom left / 
                var(--underline-width, 0%) 2.5px /* Épaisseur de 2.5px pour le côté brutal */
                no-repeat;
    
    /* Transition rapide pour rester dans l'esprit "brut" */
    transition: background-size 0.8s ease-out;
}

a:hover {
    --underline-width: 100%;
    color: var(--link-color); /* On garde le bleu */
}

/* Cibler uniquement le lien ":::" via son aria-label */
a[aria-label="frankie doguet story"]:hover {
    /* 1. On annule l'effet de soulignement progressif (le gradient) */
    background: var(--link-color); 
    
    /* 2. On inverse les couleurs */
    color: var(--bg-color);
    
    /* 3. Optionnel : on s'assure que le soulignement standard ne revient pas */
    text-decoration: none;
    transition: all 0.5s ease;
    border-radius: 4px;
}
a[aria-label="La Haine"]:hover {
    /* 1. On annule l'effet de soulignement progressif (le gradient) */
    background: var(--link-color); 
    
    /* 2. On inverse les couleurs */
    color: var(--bg-color);
    
    /* 3. Optionnel : on s'assure que le soulignement standard ne revient pas */
    text-decoration: none;
    transition: all 0.5s ease;
    border-radius: 4px;
}

.section {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    box-sizing: border-box;
}

.unContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
}

.unMenu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 20px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 0 10px;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE/Edge */
}

.unMenu::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.unMenu {
    align-items: center;
}

.unMenu a {
    line-height: 1;
}

.unLogoLink {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    font-family: var(--main-font);
    font-size: 14px;
    text-decoration: none;
    color: var(--link-color);
}

.unLogo {
    font-family: "Monospace821Regular", monospace, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 8vw;
    letter-spacing: 0.2vw;
    gap: 0.5vw;
}

.unLogo span {
    font-family: 'CaslonPro', serif;
    font-style: italic;
}

.caslon {
    font-family: 'CaslonPro', serif;
    font-style: italic;
    font-size: 0.9rem;
}

blockquote {
    font-family: var(--main-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    width: 80vw;
    max-width: fit-content;
    margin: 20px auto;
    box-sizing: border-box;
}

blockquote cite {
    display: block;
    text-align: right;
    font-style: italic;
    margin-top: 10px;
}

.unquote {
    width: 70%;
}
#story {
    padding-bottom: 150px;
}
.unTextContent {
    font-family: var(--main-font);
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.6;
    color: var(--text-color);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 0;
    width: 100%;
    box-sizing: border-box;
}
.unTextContent a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
#story .unTextContent {
    line-height: 1.8; /* Au lieu de 1.6 par défaut */
}

#story .unTextContent p {
    margin-bottom: 20px; /* Ajoute de l'espace entre chaque paragraphe */
}
.story-hidden {
    display: none;
}

.read-more-btn {
    font-family: var(--main-font);
    font-size: 0.8rem;
    color: var(--link-color);
    background: transparent;
    border: 1px solid var(--link-color);
    padding: 6px 12px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--link-color);
    color: var(--bg-color);
}
/* --- Video Gallery Styles --- */
/* AFTER */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: var(--max-width); /* Use the same max-width as the text */
    margin: 40px auto;
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}
.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}
/* Find all existing .thumbnail-overlay rules and REPLACE with this entire block */

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    padding: 10px;
}

.video-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.video-title-overlay {
    font-family: "Monospace821Regular", monospace, sans-serif;
    font-size: 0.8rem;
    margin-bottom: 8px; /* Adds space between title and "play" */
}

.play-text-overlay {
    font-family: var(--main-font);
    font-size: 0.8rem;
    padding: 2px 8px;
    border: 1px solid var(--bg-color); /* This is the border you want to keep */
}
/* Responsive adjustments for the gallery */
@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: 1fr;
    }
}

.unAbout,
.unWork {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.unWork video {
    max-width: 100%;
}

.unWork h2 {
    font-family: "Monospace821Regular", monospace, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.unFooter {
    font-family: var(--main-font);
    font-size: 0.7rem;
    position: fixed;
    bottom: 2px;
    right: 20px;
}

.unContact {
    font-family: var(--main-font);
    font-size: 0.8rem;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.contact-link {
    margin-top: 40px;
    font-size: 0.8rem;
    display: inline-block;
    color: var(--link-color);
    padding: 8px;
    border: 1px solid var(--link-color);
    text-align: center;
    border-radius: 0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--bg-color);
    background-color: var(--link-color);
    border-color: var(--link-color);
}

.contact-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.contact-popup-content {
    background: var(--bg-color);
    width: 80%;
    max-width: 500px;
    padding: 50px 20px 20px 20px; /* Increased top padding */
    text-align: center;
    position: relative;
    border-radius: 0;
    border: 0px solid var(--link-color);
    box-sizing: border-box; /* Added for consistency */
}

.contact-popup-content input,
.contact-popup-content textarea {
    font-family: var(--main-font); /* Use main site font */
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--link-color); /* Use theme color for border */
    border-radius: 0; /* Removed rounded corners */
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.contact-popup-content button {
    font-family: var(--main-font); /* Use main site font */
    background-color: var(--link-color);
    color: var(--bg-color);
    border: 1px solid var(--link-color); /* Add a border for consistency */
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 0; /* Removed rounded corners */
    transition: all 0.3s ease; /* Smooth transition for hover */
}

.contact-popup-content button:hover {
    background-color: var(--bg-color); /* Invert colors on hover */
    color: var(--link-color);
}

.contact-popup-close {
    position: absolute;
    top: 15px;  /* Repositioned within the new padding area */
    right: 15px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--link-color);
}
.brutalist-player-inline {
    width: 100%;
    max-width: 600px; /* Moins large que le paragraphe (800px) */
    background: transparent;
    font-family: var(--main-font);
    margin: 70px 0 30px 0;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px; /* Espace réduit avant la playlist */
}

.audio-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
}

.track-status { font-size: 10px; font-weight: bold; min-width: 45px; }

/* Barre de progression fine */
.progress-container {
    flex-grow: 1;
    height: 2px; /* Plus fin */
    background: #e0e0e0;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    background: var(--link-color);
    width: 0%;
}

/* Volume : Custom Slider (Ligne + Trait vertical) */
.volume-control { display: flex; align-items: center; gap: 5px; }
.vol-label { font-size: 9px; font-weight: bold; }
#volumeSlider {
    -webkit-appearance: none; /* La ligne qui cause l'alerte */
    appearance: none;         /* AJOUTE CETTE LIGNE (Version standard) */
    
    width: 50px;
    height: 1px;
    background: #000;
    outline: none;
}

/* Fais de même pour le "thumb" (le curseur vertical) si besoin */
#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;         /* AJOUTE AUSSI ICI */
    
    width: 1px;
    height: 10px;
    background: #000;
    cursor: pointer;
}

/* Le trait vertical pour Firefox */
#volumeSlider::-moz-range-thumb {
    width: 1px;
    height: 10px;
    background: #000;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

/* Playlist Horizontale alignée sous la barre */
#playlist-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
    margin-left: 125px; /* Aligne approximativement sous le début de la barre de prog */
}

#playlist-inline li a {
    color: #999; /* Discret par défaut */
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
}

#playlist-inline li.active a {
    color: var(--link-color);
    text-decoration: none; /* Style simple pour l'actif */
}

/* Responsive */
@media (max-width: 480px) {
    #playlist-inline { margin-left: 0; justify-content: center; }
}
.backToTop {
    position: fixed;
    bottom: 50%;
    right: 20px;
    width: 34px;
    height: 34px;
    color: var(--link-color);
    font-family: var(--main-font);
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 1000;
    box-sizing: border-box;

    /* Fix #1: Add these 3 lines to center the arrow */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fix #2: Add these 2 lines to hide the button by default */
    opacity: 0;
    visibility: hidden;

    /* Transition for all effects */
    transition: all 0.3s ease;
}

.backToTop:hover {
    background-color: var(--link-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50%;
}

.backToTop.visible {
    opacity: 1;
    visibility: visible;
}
#aegir .link-preview,
#johatsu .link-preview,
#skrean .link-preview,
#review .link-preview,
#story .link-preview,
#theedge .link-preview,
#info .link-preview {
  position: relative;
}

#aegir .link-preview .preview,
#theedge .link-preview .preview,
#johatsu .link-preview .preview,
#skrean .link-preview .preview,
#review .link-preview .preview,
#story .link-preview .preview,
#info .link-preview .preview {
  position: absolute;
  top: -120px;
  left: 110%;
  width: 460px;

  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .25s ease, transform .25s ease;

  pointer-events: none;
  z-index: 30;
}

#aegir .link-preview:hover .preview,
#theedge .link-preview:hover .preview,
#johatsu .link-preview:hover .preview,
#skrean .link-preview:hover .preview,
#review .link-preview:hover .preview,
#story .link-preview:hover .preview,
#info .link-preview:hover .preview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.preview img {
  width: 100%;
  display: block;
  border-radius: 3px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}


/* Responsive */
@media (max-width: 768px) {
    .unLogo {
        font-size: 10vw;
    }

    blockquote { /* Removed the dot before blockquote */
        width: 90vw;
    }
    .unTextContent {
        width: 90vw;
        padding: 40px 20px 0;
    }
}

@media (max-width: 480px) {
    .unLogo {
        font-size: 14vw;
    }

    .blockquote,
    .unTextContent {
        width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
    .unMenu {
        top: 8%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
        padding: 0 5px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .unMenu a {
        font-size: 10px;
        padding: 0.3rem 0.4rem;
        white-space: nowrap;
    }
}

@media (max-width: 320px) {
    .unLogo {
        flex-direction: column;
        align-items: center;
        white-space: normal;
        gap: 1vw;
        letter-spacing: normal;
        font-size: 12vw;
    }
}