/* ====== STYLE GLOBAL ====== */
@import url('/css/var.css');
@import url('/css/background.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* ===== GLOBAL ===== */
header {
  position: relative;
  height: 60px;
  margin: 20px;
  padding: 0 30px;
  display: flex;
  align-items: center;
}


header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 9px;
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

header .logo {
  height: 45px;
  width: auto;
}

/* H1 légèrement à gauche du centre */
.header h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  margin-left: 30px; /* espace après logo */
  flex-shrink: 0;
}

/* Crédits centrés */
.credits {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 22px;
}

.credit-number {
  font-size: 22px;
}

.credit-icon {
  width: 25px;
  height: 25px;
  transform: translateY(-2px);
}

/* Menu hamburger à droite */
.menu-icon {
  margin-left: auto; /* pousse à droite */
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  align-items: center;
  z-index: 2;
}

.menu-icon span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Dropdown menu */
.dropdown-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 70px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto;
}

.dropdown-menu.open {
  transform: translateX(0);
}



/* ===== SECTION PDF ===== */
section 
{
    width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

iframe {
    border: none;
    width: 100%;
    max-width: 100%;
    height: 600px;
}

/* ===== BOUTON DE TÉLÉCHARGEMENT ===== */
.btnAction {
    margin: 40px 0;
    padding: 12px 24px;
    background: linear-gradient(90deg, #0096ff, #8c00ff);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btnAction:hover {
    transform: scale(1.05);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) 
{
  .header h1 {
    margin-left: 30px;
    font-size: 1.2em;
}

header .logo 
{
    height: 40px;
    width: auto;
}
section {
    width: 300px;
    margin-top: 50px;
}

iframe {
    height: 400px;
}

.btnAction {
    font-size: 16px;
    padding: 10px 18px;
    margin: 30px 0;
}
}
