* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

/* === HEADER === */
header {
  width: 100%;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 50% 10%;
  border-bottom-right-radius: 50% 10%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* === NAV === */
nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* === CONTENT === */
section {
  width: 90%;
  max-width: 1200px;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 25px;
  flex: 1 1 250px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* === FOOTER === */
footer {
  width: 100%;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border-top-left-radius: 50% 10%;
  border-top-right-radius: 50% 10%;
  margin-top: auto;
}

/* === BOUTONS === */
.btn-login {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
.btn-login:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* === USER MENU === */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.user-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.user-menu__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.user-menu__name {
  font-size: 1rem;
  font-weight: 700;
}

.user-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.user-menu__panel p {
  margin: 0 0 0.4rem 0;
}

.user-menu__label {
  font-weight: 700;
}

.user-menu__meta {
  font-size: 0.85rem;
  color: #d3d7e0;
}

.user-menu__providers {
  margin: 0.5rem 0;
}

.user-menu__providers span {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.user-menu__providers ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.user-menu__providers li {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.user-menu__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.user-menu__link {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.user-menu__link:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.user-menu__link--danger {
  background: rgba(255, 87, 87, 0.25);
  border: 1px solid rgba(255, 87, 87, 0.3);
}

.user-menu__link--danger:hover {
  background: rgba(255, 87, 87, 0.35);
}

/* === ICONES EXTERNES === */
a i.fa-external-link {
  margin-left: 8px;
  font-size: 0.85em;
  opacity: 0.8;
  transition: transform 0.2s ease, opacity 0.2s ease;
  vertical-align: middle;
}
a:hover i.fa-external-link {
  transform: translateX(3px);
  opacity: 1;
}

/* === GROS BOUTON PRINCIPAL === */
.btnlink {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  width: 90%;
  max-width: 350px;
  text-align: center;
  transition: all 0.2s ease;
}
.btnlink:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(37, 117, 252, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 535px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .btn-login {
    width: 80%;
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  nav a {
    display: block;
    width: 80%;
    text-align: center;
    margin: 0.3rem 0;
    font-size: 0.95rem;
  }

  .user-menu {
    width: 100%;
    justify-content: center;
  }

  .user-menu__panel {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }

  section {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card {
    width: 90%;
    padding: 1.5rem;
  }

  iframe {
    width: 100%;
    height: 400px;
  }

  footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}