

/* ====== Corps et accueil ====== */
body {
    font-family: Verdana, Arial, Helvetica;
    margin: 0;
    background-color: black;
    color: white;
}

#accueil {
    position: fixed;
    inset: 0;
    background: black;
    color: rgb(150, 150, 150);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    cursor: pointer;
    z-index: 9990;
}

#accueilIntro .intro-texte {
  width: 250px;
  cursor: pointer;
}
#accueilIntro .intro-texte span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  color: rgb(200, 200, 200);
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

#accueilIntro .intro-svg {
    cursor: pointer;
    display: block;
}

#accueilIntro .intro-svg text {
    pointer-events: none; /* le texte SVG ne bloque pas les events */
}


/* Curseur masqué sur les deux pages d'accueil */
#accueilIntro,
#accueil {
    cursor: default;
}

/* Curseur "main" au survol des DIV interactives */
#accueilIntro .intro-texte,
#accueil .nom,
#accueil .musique {
    cursor: pointer;
}

/* ====== Page acueil intro====== */

.intro-texte {
    font-family: 'Montserrat', sans-serif;
    font-weight:250;   
    position: absolute;
    top: 44%;
    left: 50%;  
    text-justify: inter-word;   /* (facultatif) répartir l’espace entre les mots */
    white-space: pre-line;       /* respecte les retours à la ligne */
    transform: translateX(-50%);
    font-size: 1em;

    
}



/* ====== Page acueil ====== */


/* == nom == */

.nom {
    font-family: 'Montserrat', sans-serif;
    font-weight:200;
    letter-spacing:0.3em;
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
}


/* == musique ==*/

.musique {
    font-family: 'Montserrat', sans-serif;
    font-weight:100;
    letter-spacing:0.3em;position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5em;
}

.nom, .musique {
    opacity: 0;
    animation: apparaitre 2s forwards;
}

.musique {
    animation-delay: 0.5s;
}

@keyframes apparaitre {
    to { opacity: 1; }


}

/* ====== Texte overlay ====== */

.texte-justify {
    width: 350px;
    max-width: 90vw;
    text-align: justify;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* ====== Diaporama ====== */

.slideshow-container {
    display: none;
    position: fixed;
    inset: 0;
    background: black;
    overflow: visible;
}

.mySlides {
    display: none;
    flex-direction: column;
    justify-content: flex-start; /* le contenu commence en haut */
    align-items: center;         /* centre horizontalement l'image */
    height: 100vh;               /* plein écran */
    padding-top: 120px;
    padding-bottom: 40px;        /* espace pour le pavé légende */
    position: relative;
    z-index: 1;
}

.mySlides img {
    display: block;
    max-width: 1050px;           /* largeur de l'image */
    width: 100%;
    height: auto;
    margin: 0 auto;              /* centre horizontal */
}


/* ====== Pavé légendes ====== */

.caption {
    position: absolute;
    bottom: 250px;                /* espace depuis le bas */
    left: 30%;                   /* centré par rapport à l'image */
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* fond semi-transparent noir */
    padding: 12px 16px;
    max-width: 1050px;           /* même largeur que l'image */
    color: white;
    box-sizing: border-box;
    text-align: left;
}

.caption2 {
    position: absolute;
    bottom: 250px;                /* espace depuis le bas */
    left: 20%;                   /* centré par rapport à l'image */
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* fond semi-transparent noir */
    padding: 12px 16px;
    max-width: 1050px;           /* même largeur que l'image */
    color: white;
    box-sizing: border-box;
    text-align: left;
}


/* = Textes légendes =*/

.text {
    font-family: 'Montserrat', sans-serif;
    font-weight:300;
    font-size: 16px;
    white-space: pre-line;       /* respecte les retours à la ligne */
    color: rgb(200,200,200);
    margin-bottom: 4px;
}

.text2 {
    font-family: 'Montserrat', sans-serif;
    font-weight:400;
    font-size: 14px;
    color: rgb(150,150,150);
    line-height: 1.4;
    white-space: pre-line;       /* respecte les retours à la ligne */
    opacity: 0;
    animation: apparition 2s forwards;
    animation-delay: 1s;
}

.text2Rouge
    {color: red;}

.text3 {
    font-family: 'Montserrat', sans-serif;
    font-weight:300;
    font-size: 16px;
    color: rgb(250,250,250);
    margin-bottom: 4px;
    position: absolute;
    bottom: 440px;                /* espace depuis le bas */
    left: 36%;                   /* centré par rapport à l'image */
    width: 600px;               /* largeur de la div (exemple) */
    margin: 0 auto;             /* centrer la div sur la page */
    padding: 1rem;
    text-align: justify;        /* justification principale */
    text-justify: inter-word;   /* (facultatif) répartir l’espace entre les mots */
    hyphens: auto;              /* (facultatif) activer la césure */
    overflow-wrap: break-word;
}


.text4 {
    font-family: 'Montserrat', sans-serif;
    font-weight:300;
    font-size: 16px;
    color: rgb(250,250,250);
    margin-bottom: 4px;
    position: absolute;
    bottom: 440px;                /* espace depuis le bas */
    left: 36%;                   /* centré par rapport à l'image */
    width: 200px;               /* largeur de la div (exemple) */
    margin: 0 auto;             /* centrer la div sur la page */
    padding: 1rem;
    text-align: justify;        /* justification principale */
    text-justify: inter-word;   /* (facultatif) répartir l’espace entre les mots */
    hyphens: auto;              /* (facultatif) activer la césure */
    overflow-wrap: break-word;
}



@keyframes apparition {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* texte original disparaît au survol */
.text2:hover {
    color: transparent;
}



#overlayText {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    /* white-space: pre-line;  ← à supprimer ici */
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    line-height: 1.6;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 9999;
}
#overlayText.active {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.6) !important;
}



/* ====== Flèches navigation ====== */


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 10;
}

.prev:hover, .next:hover {
    color: rgba(255, 0, 0, 0.8);
}

.prev { left: 0; border-radius: 0 3px 3px 0; }
.next { right: 0; border-radius: 3px 0 0 3px; }


#lyricsOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#lyricsOverlay.active {
    display: flex;
}

#lyricsText {
    max-width: 70%;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    line-height: 1.9;
    white-space: pre-line;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    background: rgba(0, 0, 0, 0.45);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    pointer-events: none;
}

/* ===== Masquage automatique des flèches et curseur =====*/

.arrows-hidden .prev,
.arrows-hidden .next {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.prev, .next {
    opacity: 1;
    transition: opacity 0.5s ease;
}
.cursor-hidden {
    cursor: none;
}

.cursor-hidden * {
    cursor: none !important;
}

/* ====== Bouton quitter plein écran ====== */

#quitFullScreen {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    color: black;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

#quitFullScreen:hover {
    background-color: rgba(255, 0, 0, 1);
}

/* ====== Animation fade ====== */

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}


/* Bouton PLAY discret */

.play-btn {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    color: white;
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}


/* Overlay vidéo */
#videoOverlay {
    position: fixed;
    inset: 0;
    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;                 /* invisible */
    pointer-events: none;       /* non cliquable */
    transition: opacity 0.4s ease;

    z-index: 1000;
}

#videoOverlay.active {
    opacity: 1;                 /* visible */
    pointer-events: auto;
}

#videoOverlay video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: none;  /* toutes cachées par défaut */
}

#videoOverlay video.active {
    display: block;  /* seule l'active est visible */
}