/* ===== STYLES GLOBAUX P2P TOOLS ===== */

/* Animations globales */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e6f7f5;
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3748 50%, #1a202c 100%);
  min-height: 100vh;
  margin: 0;
  padding-left: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
  overflow-x: hidden;
}

/* Sidebar rétractable */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 70px;
  background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
  padding: 1.5rem 0.5rem;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
}

.sidebar:hover {
  width: 280px;
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.5);
}

.sidebar .brand {
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 2rem 0.5rem;
  color: #36d1c4;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.sidebar .brand::before {
  content: '🚀';
  font-size: 1.8rem;
  min-width: 1.8rem;
}

.sidebar .brand span {
  opacity: 0;
  transition: opacity 0.2s;
}

.sidebar:hover .brand span {
  opacity: 1;
}

.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar .nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  color: #a8d5e2;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.sidebar .nav a span:not(.icon) {
  opacity: 0;
  transition: opacity 0.2s;
}

.sidebar:hover .nav a span:not(.icon) {
  opacity: 1;
}

.sidebar .nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #36d1c4;
  transform: scaleY(0);
  transition: transform 0.2s;
}

.sidebar .nav a:hover {
  background: rgba(54, 209, 196, 0.15);
  color: #fff;
  transform: translateX(4px);
}

.sidebar .nav a:hover::before {
  transform: scaleY(1);
}

.sidebar .nav .icon {
  font-size: 1.4rem;
  min-width: 1.4rem;
}

/* Container principal */
.container {
  background: linear-gradient(145deg, rgba(30, 40, 55, 0.95), rgba(20, 28, 40, 0.95));
  padding: 2.5rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(54, 209, 196, 0.15);
  text-align: center;
  max-width: 540px;
  animation: slideDown 0.6s ease;
}

/* Titres */
h2 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

/* Boutons */
button {
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(54, 209, 220, 0.35);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

button:hover::before {
  width: 400px;
  height: 400px;
}

button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(54, 209, 220, 0.5);
}

button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Liens/boutons stylisés */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #36d1dc, #5b86e5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(54, 209, 220, 0.4);
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(54, 209, 220, 0.5);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Inputs */
input[type="file"],
input[type="text"],
select {
  background: #232526;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.7rem;
  font-size: 1rem;
  width: 100%;
}

input:focus,
select:focus {
  outline: none;
  border-color: #36d1c4;
}

/* Language switch */
.language-switch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  z-index: 1000;
}

.language-switch:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-left: 60px;
  }
  
  .sidebar {
    width: 60px;
  }
  
  .sidebar:hover {
    width: 220px;
  }
  
  .container {
    padding: 2rem;
    max-width: 95vw;
  }
}

