/* ============================================================
   AgriVirtuel Profil Citoyen — Google Material 3 Dark
   Design Signature Google Gemini / Material You
   Palette Écosystème : Bleu #4285f4, Violet #9b72cb, Corail #d96570,
   Or #fbbc04, Vert #34a853, Cyan AgriVirtuel #26cbd1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Google+Sans:wght@400;500;700&display=swap');

:root {
  /* Google Dark Theme Surface Tokens */
  --google-bg: #131314;
  --google-surface: #1e1f20;
  --google-surface-hover: #282a2c;
  --google-surface-highest: #333538;
  --google-surface-elevated: #26282b;
  --google-border: rgba(255, 255, 255, 0.08);
  --google-border-strong: rgba(255, 255, 255, 0.16);

  /* Palette Signature Gemini & Google */
  --google-blue: #4285f4;
  --google-blue-bright: #8ab4f8;
  --gemini-purple: #9b72cb;
  --gemini-lavender: #c58af9;
  --gemini-coral: #d96570;
  --google-yellow: #fbbc04;
  --google-green: #34a853;
  --logo-cyan: #26cbd1;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #c4c7c5;
  --text-muted: #8e918f;

  /* Dynamique de couleur de ferme par défaut */
  --farm-accent: #26cbd1;
  --farm-gradient: linear-gradient(135deg, #26cbd1, #0284c7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--google-bg);
  font-family: 'Outfit', 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  padding: 24px 20px 100px;
  -webkit-font-smoothing: antialiased;
}

/* ── 1. Liseré Supérieur 4 Couleurs Google / Gemini Animé ── */
.google-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, 
    var(--google-blue) 0%, 
    var(--gemini-purple) 22%, 
    var(--google-blue-bright) 40%, 
    var(--logo-cyan) 50%, 
    var(--google-blue-bright) 60%, 
    var(--gemini-purple) 78%, 
    var(--google-blue) 100%
  );
  background-size: 200% 100%;
  animation: topBarFlow 8s linear infinite;
  box-shadow: 0 0 14px rgba(66, 133, 244, 0.5);
  z-index: 999;
}

@keyframes topBarFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── 2. Fond d'Ambiance Nébuleuse Vivante ── */
.bg-gemini-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gemini-orb-1 {
  position: absolute;
  top: 5%;
  left: 15%;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.16) 0%, transparent 68%);
  filter: blur(100px);
  animation: floatOrb1 16s ease-in-out infinite alternate;
}

.gemini-orb-2 {
  position: absolute;
  bottom: 10%;
  right: 12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 114, 203, 0.14) 0%, transparent 68%);
  filter: blur(110px);
  animation: floatOrb2 20s ease-in-out infinite alternate;
}

.gemini-orb-3 {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 203, 209, 0.10) 0%, transparent 70%);
  filter: blur(95px);
  animation: floatOrb3 18s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate3d(60px, -50px, 0) scale(1.15); opacity: 0.95; }
}

@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  100% { transform: translate3d(-50px, 40px, 0) scale(1.2); opacity: 0.9; }
}

@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.5; }
  100% { transform: translate3d(40px, 60px, 0) scale(1.1); opacity: 0.85; }
}

/* ── 3. Conteneur Principal ── */
.app-container {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── 4. Barre de Navigation Supérieure Google ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(30, 31, 32, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--google-border);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-sparkle-icon {
  width: 28px;
  height: 28px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 40%, var(--google-blue-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(66, 133, 244, 0.18);
  color: var(--google-blue-bright);
  border: 1px solid rgba(66, 133, 244, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* ── 5. Barre de Recherche des Membres (Google Material 3) ── */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 440px;
  min-width: 260px;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #131314;
  border: 1px solid var(--google-border);
  border-radius: 30px;
  padding: 8px 16px;
  transition: all 0.25s ease;
}

.search-input-box:focus-within {
  border-color: var(--google-blue-bright);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
  background: #18191a;
}

.search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}

.search-input-box input::placeholder {
  color: #71767b;
}

/* Dropdown des résultats */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #1e1f20;
  border: 1px solid var(--google-border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  max-height: 340px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--google-surface-hover);
}

.result-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #282a2c;
}

.result-name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.result-farm {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 6. Boutons Pilule Google ── */
.btn-google-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--google-border);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-google-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-google-pill.primary {
  background: linear-gradient(135deg, var(--google-blue) 0%, #1a73e8 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}

.btn-google-pill.primary:hover {
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

/* ── 7. Carte Profil Principale (Material 3 Hero) ── */
.profile-hero-card {
  background: var(--google-surface);
  border: 1px solid var(--google-border);
  border-radius: 28px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.profile-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--farm-gradient);
  opacity: 0.18;
  pointer-events: none;
}

.profile-hero-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.profile-main-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.avatar-container {
  position: relative;
  width: 104px;
  height: 104px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #282a2c;
  background: #18191a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.online-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--google-surface);
  background: #64748b;
  transition: all 0.3s ease;
}

.online-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.profile-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.username-heading {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.google-check-badge {
  font-size: 13px;
  background: rgba(66, 133, 244, 0.2);
  color: var(--google-blue-bright);
  border: 1px solid rgba(66, 133, 244, 0.4);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.identifiers-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.identifier-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Badges de ferme & Rôles */
.farm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--farm-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  width: fit-content;
  margin-top: 4px;
}

.roles-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.role-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Boutons d'actions du profil */
.profile-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── 8. Grille de Métriques Économie & Temps ── */
.metrics-quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.metric-tile {
  background: var(--google-surface);
  border: 1px solid var(--google-border);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.metric-tile:hover {
  background: var(--google-surface-hover);
  border-color: var(--google-border-strong);
  transform: translateY(-2px);
}

.metric-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.metric-tile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-tile-value {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
}

.metric-tile-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── 9. Quadrillage d'Activité Journalière (Heatmap Style GitHub / Google) ── */
.heatmap-section-card {
  background: var(--google-surface);
  border: 1px solid var(--google-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.section-heading {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heatmap-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}

.heatmap-grid-container {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 780px;
}

.heatmap-months-row {
  display: flex;
  justify-content: space-between;
  padding-left: 28px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.heatmap-board {
  display: flex;
  gap: 4px;
}

.heatmap-days-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 6px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  justify-content: space-around;
  height: 104px;
}

.heatmap-weeks-cols {
  display: flex;
  gap: 3.5px;
}

.heatmap-week {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.heatmap-cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.heatmap-cell:hover {
  transform: scale(1.4);
  z-index: 20;
  filter: brightness(1.3);
}

/* Niveaux d'intensité de jeu */
.heatmap-cell[data-level="0"] { background: #202124; }
.heatmap-cell[data-level="1"] { background: #0e3a2f; border-color: rgba(14, 58, 47, 0.8); }
.heatmap-cell[data-level="2"] { background: #137356; border-color: rgba(19, 115, 86, 0.9); }
.heatmap-cell[data-level="3"] { background: #1e8e69; border-color: rgba(30, 142, 105, 1); }
.heatmap-cell[data-level="4"] { background: #34a853; border-color: #34a853; box-shadow: 0 0 6px rgba(52, 168, 83, 0.5); }
.heatmap-cell[data-level="5"] { background: #26cbd1; border-color: #26cbd1; box-shadow: 0 0 8px rgba(38, 203, 209, 0.8); }

/* Légende Heatmap */
.heatmap-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-muted);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 5px;
}

.heatmap-legend .heatmap-cell {
  cursor: default;
}

.heatmap-kpis-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.heatmap-kpi-item {
  font-weight: 600;
}

.heatmap-kpi-item b {
  color: #fff;
}

/* Tooltip flottant */
.heatmap-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(19, 19, 20, 0.95);
  border: 1px solid var(--google-border-strong);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  transform: translate(-50%, -120%);
  white-space: nowrap;
}

/* ── 10. Statistiques de Jeux (Hub-Jeux / Monopoly / Undercover) ── */
.games-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.game-stat-card {
  background: var(--google-surface);
  border: 1px solid var(--google-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.25s ease;
}

.game-stat-card:hover {
  border-color: var(--google-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.game-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.winrate-pill {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.winrate-high {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.winrate-mid {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Barres de progression ratio Victoires / Défaites */
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #282a2c;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
}

.progress-bar-fill-win {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34a853);
}

.progress-bar-fill-loss {
  height: 100%;
  background: #ef4444;
}

.game-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 12px 16px;
}

.game-metric-sublabel {
  font-size: 11px;
  color: var(--text-muted);
}

.game-metric-subval {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  margin-top: 2px;
}

/* ── 11. Section "Coming Soon" : Cartes à Collectionner Holographiques ── */
.cards-collection-section {
  background: linear-gradient(135deg, rgba(30, 31, 32, 0.95), rgba(24, 25, 26, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 28px;
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.cards-collection-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(251, 188, 4, 0.12) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.cards-showcase-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.teaser-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cards-showcase-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.cards-showcase-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* Grille des cartes 3D */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  justify-content: center;
  perspective: 1000px;
}

.holo-card {
  position: relative;
  height: 320px;
  border-radius: 20px;
  background: #18191a;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.holo-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Effet Foil / Brillance Holographique */
.holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.05) 30%, 
    rgba(251, 188, 4, 0.25) 45%, 
    rgba(155, 114, 203, 0.3) 55%, 
    rgba(38, 203, 209, 0.25) 70%, 
    transparent 100%
  );
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  mix-blend-mode: color-dodge;
}

.holo-card:hover::before {
  opacity: 1;
  animation: holoSheen 3s ease infinite alternate;
}

@keyframes holoSheen {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.card-edition-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.card-rarity-stars {
  font-size: 12px;
  color: #fbbc04;
}

.card-visual-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin: 12px 0;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.card-info-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.card-type {
  font-size: 11px;
  color: var(--text-muted);
}

.card-spoiler-tag {
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 4px;
  display: inline-block;
}

/* Thèmes spécifiques par rareté */
.card-mythic {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.card-epic {
  border-color: #9b72cb;
  box-shadow: 0 0 20px rgba(155, 114, 203, 0.2);
}

.card-mystery {
  border-color: #d96570;
  box-shadow: 0 0 20px rgba(217, 101, 112, 0.2);
}

.card-secret {
  border-color: #26cbd1;
  box-shadow: 0 0 20px rgba(38, 203, 209, 0.25);
}

/* ── 12. Modal Paramètres du Compte (Date de Naissance) ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #1e1f20;
  border: 1px solid var(--google-border-strong);
  border-radius: 28px;
  padding: 30px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.birthdate-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 12px;
  margin: 16px 0;
}

.birthdate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.birthdate-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.birthdate-field input {
  background: #131314;
  border: 1px solid var(--google-border);
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  outline: none;
  font-family: inherit;
}

.birthdate-field input:focus {
  border-color: var(--google-blue-bright);
}

.warning-callout {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.5;
  margin-top: 14px;
}

/* ── 13. Écran Accès Restreint (Si non connecté) ── */
.auth-restricted-overlay {
  position: fixed;
  inset: 0;
  background: #131314;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.restricted-card {
  background: #1e1f20;
  border: 1px solid var(--google-border-strong);
  border-radius: 28px;
  padding: 40px;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.restricted-icon {
  font-size: 54px;
  margin-bottom: 16px;
}

.restricted-title {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.restricted-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Toast Message */
.profil-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e1f20;
  border: 1px solid var(--google-border-strong);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10001;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profil-toast.show {
  transform: translateX(-50%) translateY(0);
}
