:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0f172a;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-dark: rgba(15, 23, 42, 0.88);
  --border-glass: rgba(255, 255, 255, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5)),
              url('https://gesweb.netlinkenergie.com:27628/down/CaNyR1uvKciJ.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR RESPONSIVE */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-title {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* MENUS MOBLIES (BURGER) */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* BOUTONS modernisés */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  min-height: 44px; /* Touch target optimal */
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn-secondary { background: rgba(255, 255, 255, 0.15); color: white; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.25); }

.btn-donate { background: var(--accent); color: white; }
.btn-donate:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: white;
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* CONTENEUR PRINCIPAL */
.content-container {
  width: 100%;
  max-width: 900px;
  margin: 25px auto;
  padding: 0 16px;
  flex: 1;
}

/* CARTE EN GLASSMORPHISM */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-card {
  text-align: center;
}

.intro-card h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 24px;
}

.domains-list {
  text-align: left;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin-top: 15px;
}

.domains-list li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  font-weight: 500;
}

/* FORMULAIRE & GRILLE MOBILE */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

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

.full-width {
  grid-column: span 2;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #475569;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem; /* Empêche le zoom auto sur iOS */
  color: var(--text-main);
  transition: var(--transition);
  min-height: 46px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

input:disabled, select:disabled {
  background: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.7;
}

/* UTILS */
.hidden { display: none !important; }
.margin-top { margin-top: 24px; }

/* OPTIMISATION MOBILE (< 768px) */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-buttons {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
  }

  .nav-buttons.active {
    display: flex;
  }

  .nav-buttons .btn {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .intro-card h1 {
    font-size: 1.5rem;
  }
}
