/* --- POLICES --- */
@font-face {
    font-family: 'hershey-plot';
    src: url('fonts/hershey-plot.ttf');
    font-weight: normal;
    font-style: normal;
}

/* --- GLOBAL --- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* supprime tout scroll */
}

.name-link, .email-link, .instagram-link, .contact-link, .svg {
    color: black;
    font-family: "hershey-plot";
    text-decoration: none;
    transition: color 0.5s ease;
}

a:hover {
    box-shadow: 0 0 0 3px black; /* ellipse autour du texte */
    border-radius: 50%;
}

/* --- CAROUSEL --- */
.carousel {
    position: relative;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    margin-top: 40px;
    overflow: hidden; /* supprime scroll dans carousel */
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    transition: transform 0.6s ease;
}

.carousel-item {
    flex: 0 0 100%;
    height: calc(var(--vh, 1vh) * 100);
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    filter: blur(3px);
    transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
    display: flex;
}

.carousel-item.active {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    z-index: 1;
}

.carousel-item img,
.carousel-item video {
    max-width: 65%;
    max-height: 65%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.carousel-item iframe {
    width: 65%;
    height: 65%;
    border: none;
}

/* --- BOUTONS --- */
.carousel-button {
    position: absolute;
    top: 55%;
    font-family: 'hershey-plot';
    font-size: 80px;
    transform: translateY(-50%);
    background: none;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.prev-button { left: 10px; }
.next-button { right: 10px; }

/* --- LEGENDES --- */
.caption {
    position: absolute;
    top: 82%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    padding: 10px 10px;
    border-radius: 0px;
    border: dashed 2px black;
    font-family: 'hershey-plot';
    font-size: 14px;
    text-align: center;
    display: none;
    z-index: 2;
    letter-spacing: -1px;
}

.caption-toggle {
    position: absolute;
    top: calc(55% + 20px);
    right: 25px;
    font-size: 17px;
    font-family: 'hershey-plot';
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2;
    letter-spacing: -1px;
}

/* --- TEXTES FIXES --- */
.description {
    position: fixed;
    top: -30px;
    font-size: 35px;
    font-family: 'hershey-plot';
    letter-spacing: -0.015em;
    line-height: 1.4em;
    background: none;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.contact {
    position: fixed;
    bottom: -20px;
    font-size: 35px;
    font-family: 'hershey-plot';
    letter-spacing: -0.015em;
    line-height: 1.4em;
    background: none;
    color: black;
    padding: 10px 20px;
    border: none;
    z-index: 2;
}

/* --- PAGE TEXTE --- */
body {
    font-family: 'hershey-plot', sans-serif;
    font-size: 24px;
    line-height: 1.6;
    color: black;
    background: white;
}

.page-texte {
    max-width: 1400px;
    margin: 0;
    padding: 60px;
    height: 100%;
    overflow-y: auto;   /* permet le scroll uniquement sur cette page */
    box-sizing: border-box;
}

.page-texte a {
    text-decoration: none;
    font-size: 26px;
    color: grey;
}

.page-texte a:hover { text-decoration: none; }

.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 36px;
    color: black;
    text-decoration: none;
}

.carousel-button:focus { outline: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .carousel-button { display: none; }

    .carousel-item img,
    .carousel-item video,
    .carousel-item iframe {
        max-width: 85%;
        max-height: 50%;
    }

    .description, .contact { font-size: 24px; }

  .page-texte {
   
        font-family: 'Helvetica', Arial, sans-serif;
        font-weight: bold;
        font-size: 13px;
        margin-top:30px;
        padding: 30px;
    }
  
  .page-texte a
  
  {
            font-family: 'Helvetica', Arial, sans-serif;
        font-weight: bold;
        font-size: 13px;
  }
}
