@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-Regular.otf') format('truetype');
}

@font-face {
    font-family: 'Niramit';
    src: url('../fonts/Niramit-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Niramit-Light';
    src: url('../fonts/Niramit-ExtraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'FaunaOne';
    src: url('../fonts/FaunaOne-Regular.ttf') format('truetype');
}

:root {
  --header-h: 80px;
  --vh: 1vh;
  --safe-bottom: 0px;
}

html, body {
  height: 100%;
}

body {
    font-family: 'Cinzel', serif;
    margin: 0;
    padding: 0;
    background-color: #212226;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}

/* HERO plein écran derrière le header */
.hero {
  height: calc(var(--vh) * 100);
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Fond hero occupe toute la zone */
.hero-backgrounds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 5;
  padding-top: 0;
}

/* Logo en bas – version réduite et remontée */
.hero-logo-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 14px);
  width: clamp(70px, 20vw, 120px);
  pointer-events: none;
  z-index: 6;
  margin: 0; /* supprime l’ancien margin-top:auto */
  padding: 0;
}

.hero-logo-bottom img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nouvelle classe pour le logo en haut */
.hero-logo-top {
  width: clamp(300px, 12vw, 80px);
  margin: 0 auto 18px;
  pointer-events: none;
  transition: opacity .4s ease; /* ajout */
}

.hero-logo-top.is-faded {
  opacity: 0.08; /* même rendu que les boutons */
}

.hero-logo-top img {
  width: 100%;
  height: auto;
  display: block;
}

/* Retirer ancienne règle si encore présente */
.hero .logo img {
  width: 100%; /* ou supprimer complètement si plus utilisé */
  height: auto;
}

/* Mobile étroit */
@media (max-width: 480px) {
  .hero-logo-bottom {
    width: clamp(300px, 28vw, 110px);
    bottom: calc(var(--safe-bottom) + 10px);
  }

  .hero-logo-top {
    width: clamp(300px, 22vw, 70px);
    margin-bottom: 16px;
  }
}

/* Grand écran */
@media (min-width: 1200px) {
  .hero-logo-bottom {
    width: clamp(90px, 12vw, 150px);
    padding-bottom: 28px;
  }
}

.hero h1 {
    font-family: 'Niramit-Light', serif;
    font-size: 32px;
    margin-top: -10px;
}

h2 {
    font-family: 'Niramit-Light', serif;
    font-size: 32px;
    text-align: center;
    color: #fff;
}

.hero button {
    margin-top: -10px;
    font-family: 'Niramit', serif;
    padding: 10px 20px;
    background-color: #849056;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    cursor: pointer;
}

.features {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    color: #fff
}

.features .feature {
    font-family: 'FaunaOne', serif;
    text-align: center;
    width: 22%;
    border: 1px solid rgb(75, 75, 75);
    border-radius: 3px;
}

.features .feature img {
    height: 64px;
    border-radius: 100%;
    background-color: #212226;
    padding: 16px;
    margin-top: -70px;
}

.features .feature h3 {
    font-family: 'Cinzel', serif;
    margin: 10px 0;

}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #212226;
}

#gallery img {
    width: 500px;
    height: 225px;
    margin: 10px;
    object-fit: cover;
    border-radius: 10px;
}

.social-badges {
    font-family: 'Cinzel', serif;
    font-size: medium;
    padding: 20px 0;
    margin-top: -40px;
}

.social-container {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-badge {
    min-width: 20vw;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 30vw;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-badge:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-badge img {
    width: 48px;
    height: 48px;
}

.social-badge.whatsapp {
    background-color: #25D366;
}

.social-badge.facebook {
    background-color: #a411b8;
}

.social-badge.email {
    background-color: #EA4335;
}

.social-badge.discord {
    background-color: #5865F2;
}

/* HD */
@media screen and (max-width: 1400px) {
    .hero .logo img {
        width: 10%;
    }
}

/* 2K */
@media screen and (min-height: 1000px) {
    .hero {
        min-height: 900px;
    }
}

/* 4K */
@media screen and (min-height: 2000px) {
    .hero {
        min-height: 1600px;
    }

    .header nav {
        font-size: 64px;
    }

    .hero-text {
        padding-top: 140px;
    }


    .hero h1 {
        font-size: 100px;
        margin-top: -15px;
    }

    .features .feature {
        font-size: 40px;
    }

    .features .feature img {
        height: 128px;
    }

    h2 {
        font-size: 64px;
    }

    .social-badge {
        font-size: 100px;
        border-radius: 25px;
        justify-content: center;
    }

    .social-badge img {
        width: 128px;
        height: 128px;
    }
}

/* Phone Vertical */
@media screen and (max-width: 768px) {

    .features {
        flex-direction: column;
        /* Affichage vertical */
        align-items: center;
        /* Centre les éléments */
        gap: 80px;
        /* Espace entre les features */
    }

    .features .feature {
        font-size: 24px;
        /* Taille de police plus grande */
        width: 80%;
        /* Largeur plus importante */
        margin: 0;
        /* Reset de la marge */
        padding: 20px;
        /* Plus d'espace interne */
    }

    .features .feature img {
        height: 84px;
        /* Images plus grandes */
    }

    .features .feature h3 {
        font-size: 24px;
        /* Titres plus grands */
    }

    .social-container {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }

    .social-badge {
        width: 100%;
        border-radius: 0px;
        justify-content: center;
    }
}

/* Mobile très étroit */
@media (max-width: 480px) {
  .hero-logo-bottom {
    width: clamp(70px, 30vw, 110px);
  }
}

.hero-buttons {
  transition: opacity .4s ease;
}

.hero-buttons.is-faded {
  opacity: 0.08;
  pointer-events: none;
}