:root {
  --bg-top: #6995DC;
  --bg-bottom: #D6B9BD;

  --card: rgba(245, 243, 242, 0.18);
  --card-strong: rgba(245, 243, 242, 0.28);
  --border: rgba(255, 255, 255, 0.18);

  --text: #1a1f2a;
  --text-soft: #2f3a4a;
  --title: #0f141c;

  --primary: #5f86c9;
  --primary-deep: #3f5f94;
  --secondary: #c7a6a9;
  --accent: #a9c2e3;

  --shadow: 0 20px 50px rgba(15, 20, 30, 0.25);
  --shadow-soft: 0 10px 25px rgba(15, 20, 30, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  min-height: 100vh;

  /* 🔥 TON DÉGRADÉ */
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));

  overflow-x: hidden;
  background-color: #8E9FCD;
}

/* OVERLAY POUR ASSOMBRIR LÉGÈREMENT */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.18)
  );
}

/* BLOBS (PLUS SUBTILS) */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: #5f86c9;
  top: 10%;
  left: 5%;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: #c7a6a9;
  bottom: 5%;
  right: 10%;
}

.blob-3 {
  width: 220px;
  height: 220px;
  background: #a9c2e3;
  top: 50%;
  right: 25%;
}

/* LAYOUT */

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* CARD PRINCIPALE */

.card {
  width: min(1100px, 100%);
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 32px;
  box-shadow: var(--shadow);
}

/* HERO */

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.location,
.status {
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-soft);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);

}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
}

.hero h1 span {
  background: linear-gradient(90deg, #ffffff, #e3edf9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 16px;
  color: rgba(255,255,255,0.85);
}

/* TABS */

.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.tab-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  backdrop-filter: blur(6px);
}

.tab-btn:hover {
  background: rgba(255,255,255,0.22);
}

.tab-btn.active {
  background: rgba(255,255,255,0.35);
  color: #1a1f2a;
}

/* CONTENT */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.content-block {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}

.intro-text p {
  color: rgba(0,0,0,0.75);
  line-height: 1.7;
}

/* TAGS */

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.3);
}

/* PROFILE */

.profile-card {
  background: var(--card-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-image {
  aspect-ratio: 9/16;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  padding: 16px;
  color: #1a1f2a;
}

/* TILES */

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tile {
  min-height: 180px;
  border-radius: 18px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
  transition: 0.25s;
}

.tile:hover {
  transform: translateY(-3px);
}

.tile-front,
.tile-overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tile-front {
  color: white;
}

.tile-overlay {
  opacity: 0;
  background: rgba(255,255,255,0.85);
  color: #1a1f2a;
  transition: 0.3s;
}

.tile:hover .tile-overlay {
  opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .content-block {
    grid-template-columns: 1fr;
  }

  .tiles-grid {
    grid-template-columns: 1fr;
  }
}