/* style.css */
:root {
  --ci-orange: #F57C00;
  --ci-green: #2E7D32;
  --ci-gray: #F5F6FA;
  --text-dark: #212121;
  --text-muted: #616161;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--ci-gray);
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  padding-bottom: 64px; /* Espace pour le footer fixé */
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(125deg, var(--ci-orange), var(--ci-green));
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  animation: spin 15s linear infinite;
  z-index: 0;
}

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero img.logo {
  max-width: 130px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
}

/* ===== Cards ===== */
.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  background: #fff;
  height: 100%;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.icon-orange {
  background: rgba(245, 124, 0, 0.15);
  color: var(--ci-orange);
}

.icon-green {
  background: rgba(46, 125, 50, 0.15);
  color: var(--ci-green);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn-action {
  margin-top: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-orange {
  background: var(--ci-orange);
  color: #fff;
}

.btn-orange:hover {
  background: #e06c00;
  color: #fff;
}

.btn-green {
  background: var(--ci-green);
  color: #fff;
}

.btn-green:hover {
  background: #25612a;
  color: #fff;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple .6s linear;
  background-color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 0;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive tweaks */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(135deg, var(--ci-green), var(--ci-orange));
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease;
}

.footer-logo {
  transition: transform 0.4s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-link {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Apparition du footer */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== AMÉLIORATIONS POUR ADMIN ===== */

/* Styles pour les boutons neutres améliorés */
.btn-submit.neutral {
  background: linear-gradient(135deg, #2C2C2C 0%, #555 100%);
  position: relative;
  overflow: hidden;
}

.btn-submit.neutral::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-submit.neutral:hover::before {
  left: 100%;
}

.btn-submit.neutral:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(44, 44, 44, 0.3);
}

/* Styles pour les inputs neutres */
.form-control.neutral {
  border: 2px solid var(--ci-border);
  transition: all 0.3s ease;
}

.form-control.neutral:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Amélioration des icônes d'input */
.input-icon.neutral {
  color: #666;
  transition: color 0.3s ease;
}

.form-control.neutral:focus + .input-icon {
  color: #667eea;
}