/* ==========================================================================
   Full Screen Header for Ghost (Casper Adaptive)
   ========================================================================== */

/* 1. Force the main header to occupy 100% of the viewport height */
.main-header {
    position: relative !important;
    display: table;
    width: 100%;
    height: 100vh !important; /* Full screen height */
    max-height: 100vh;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Ensure background is fixed or scrolls depending on preference */
    background-attachment: scroll; 
    overflow: hidden;
}

/* Supprimer le voile noir automatique */
.main-header:before, 
.main-header:after {
    display: none !important;
}

/* Si le thème utilise un dégradé direct sur le header */
.main-header {
    background-color: transparent !important; /* Enlève le fond gris/noir */
    background-image: none; /* Nettoyage des dégradés hérités */
}


/* 2. Vertical centering using the table-cell method from the snippet */
.vertical {
    vertical-align: middle;
    display: table-cell;
}

/* 3. Ensure the content wrapper doesn't overflow */
.main-header-content {
    position: relative;
    z-index: 10;
}

.page-title {
    margin: 10px 0 10px 0;
    font-size: 9rem;
    letter-spacing: -1px;
    font-weight: 700;
    font-family: 'FetteUNZFraktur', sans-serif;
    color: #FBFBFB;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-description {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.5em;
    font-weight: 400;
    font-family: 'Merriweather', serif;
    letter-spacing: 0.01rem;
    color: #FCFDFD;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.main-header .inner {
    width: 80%;
}

.main-nav {
    position: relative;
    padding: 35px 40px;
    margin: 0 0 30px 0;
}

.main-nav a {
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
}

/* Special styles when overlaid on an image*/
.main-nav.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    border: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%,rgba(0,0,0,0) 100%);
}

.no-cover .main-nav.overlay {
    background: none;
}

.nav-title {
    position: absolute;
    top: 45px;
    left: 30px;
    font-size: 16px;
    font-weight: 100;
    text-transform: uppercase;
    color: #FCFDFD;
}

.nav ul {
    padding: 90px 9% 5%;
    list-style: none;
    counter-reset: item;
}

.nav li:before {
    display: block;
    float: right;
    padding-right: 4%;
    padding-left: 5px;
    text-align: right;
    font-size: 1.2rem;
    vertical-align: bottom;
    color: #B8B8B8;
    /*content: counter(item, lower-roman);
    counter-increment: item;*/
}
.nav li {
    margin: 0;
}
.nav li a {
    text-decoration: none;
    line-height: 1.4;
    font-size: 1.4rem;
    display: block;
    padding: 0.6rem 4%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: 'Oswald', sans-serif;
    font-size: 1em;
}
.nav li a:after {
    display: inline-block;
    content: " ";
    color: rgba(255,255,255,0.2);
    margin-left: 5px;
}
.nav .nav-current:before {
    color: #FCFDFD;
}
.nav .nav-current a:after {
    content: " ";
    border-bottom: rgba(255,255,255,0.5) 1px solid;
    width: 100%;
    height: 1px;
}

.nav a:link,
.nav a:visited {
    color: #B8B8B8;
}

.nav li.nav-current a,
.nav a:hover,
.nav a:active,
.nav a:focus {
    color: #FCFDFD;
}

a.secondary-link:hover {
    color:#FCE74C;
    transform: scale(1.1);
    transition: all ease 500ms;
  }
  .secondary-link {
    margin: 0.1em 0.3em 0.1em 0;
    font-size: 2.9rem;
    letter-spacing: -1px;
    word-spacing: 2em;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: #FCE74C/*#FBFBFB*/;
    text-decoration:none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Import Oswald font if not already loaded in your theme */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

/* Target only the nav links inside the header cover */
.main-header-content .nav {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem; /* Space between menu items */
}

.main-header-content .nav li {
    display: inline-block;
}

/* Base style for secondary links */
.main-header-content .nav li a {
    display: inline-block; /* Needed for transform scale to work */
    margin: 0.1em 0.3em;
    font-size: 2.9rem;
    letter-spacing: -1px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: #FCE74C !important; /* Force the Nefald yellow color */
    text-decoration: none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all ease 500ms;
}

/* Hover effect */
.main-header-content .nav li a:hover {
    color: #FCE74C !important;
    transform: scale(1.1);
    text-decoration: none;
}

/* Mobile optimization: reduce size on small screens */
@media (max-width: 700px) {
    .main-header-content .nav li a {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   HERO CREDITS (Texte en bas de l'image cover)
   ========================================================================== */

   .hero-credits {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 800;
    
    /* Typographie */
    font-family: "Open Sans", sans-serif; /* Ou la police de ton thème */
    font-size: 1.3rem;
    line-height: 1.5em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    
    /* Ombre portée pour lisibilité sur image claire */
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    padding: 0 20px;
}

.hero-credits a {
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.hero-credits a:hover {
    border-bottom: 1px solid #fff;
    opacity: 1;
}

.hero-credits i {
    margin: 0 3px;
    /* On garde les couleurs définies inline dans le HTML (vert/rouge) */
}

/* Ajustement de la flèche de scroll pour ne pas chevaucher le texte */
.scroll-down {
    bottom: 70px; /* On remonte la flèche au-dessus du texte */
}

/* Scroll-down container */
.scroll-down {
    display: block;
    position: absolute;
    z-index: 100;
    bottom: 45px;
    left: 50%;
    margin-left: -20px; /* Ajusté pour centrer (moitié de la largeur) */
    width: 80px;
    height: 80px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    
    /* On retire le transform: rotate(-90deg) car le SVG pointe déjà vers le bas */
    animation: bounce 4s 2s infinite;
}

/* Style de l'icône SVG à l'intérieur */
.scroll-down svg {
    width: 100%;
    height: 100%;
}

.scroll-down:hover {
    color: #ffffff;
    animation: none;
}

/* Animation de rebond simplifiée sans la rotation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* RESPONSIVE : Sur mobile, on empile les lignes */
@media (max-width: 600px) {
    .hero-credits {
        font-size: 1.1rem;
        bottom: 10px;
    }
    
    .credits-separator {
        display: none; /* On cache le tiret */
    }
    
    .credits-line {
        display: block; /* Chaque partie sur sa ligne */
        margin-bottom: 5px;
    }
    
    /* Sur mobile, on peut cacher la flèche si ça fait trop chargé */
    .scroll-down {
        display: none;
    }
}

/* 7. Overlay to improve text readability over bright images */
.main-header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2); /* Darken the image slightly */
    z-index: 1;
}

.main-header-content, .main-nav {
    position: relative;
    z-index: 2;
}
