/* ==========================================================================
   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);
}

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

/* Container du bouton Scroll Down */
.scroll-down {
    display: block;
    position: absolute;
    z-index: 1000;
    bottom: 50px;       /* Distance du bas de l'écran */
    left: 50%;
    width: 80px;        /* Taille augmentée */
    height: 80px;       /* Taille augmentée */
    margin-left: -30px; /* Moitié de la largeur pour centrer parfaitement */
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    
    /* Animation de rebond */
    animation: bounce-effect 3s infinite; 
    transition: color 0.3s ease;
}

/* On change la couleur au survol mais on GARDE l'animation */
.scroll-down:hover {
    color: #ffffff !important;
    opacity: 1;
}

/* Taille de l'icône à l'intérieur */
.scroll-down svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke-width: 1.5; /* Épaisseur du trait (réduit un peu pour la taille) */
}

/* Définition de l'animation Bounce (Uniquement vertical) */
@keyframes bounce-effect {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px); /* Hauteur du rebond */
    }
    60% {
        transform: translateY(-7px);
    }
}

/* 6. Mobile adjustments */
@media only screen and (max-width: 900px) {
    .main-header {
        height: 100vh; /* Keeps it full screen even on mobile */
        padding: 0;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .page-description {
        font-size: 1.6rem;
    }
}

/* 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;
}
