/* ============================================
   AGRIDER — css/accueil.css
   Styles spécifiques à la page d'accueil (index.php)
   ============================================ */


/* ─── HERO : illustration paysage ───────────── */
.hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(to bottom, #8AB870, #C8D9B0);
  flex-shrink: 0;
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Animation douce du soleil */
@keyframes pulse-soleil {
  0%   { opacity: 0.5; }
  50%  { opacity: 0.75; }
  100% { opacity: 0.5; }
}

.hero-svg circle:first-of-type {
  animation: pulse-soleil 4s ease-in-out infinite;
}

/* Animation des épis de blé */
@keyframes vent {
  0%, 100% { transform: rotate(-2deg) translateX(0); }
  50%       { transform: rotate(2deg) translateX(2px); }
}

.hero-svg .ble {
  transform-origin: bottom center;
  animation: vent 3s ease-in-out infinite;
}

/* Logo superposé sur le paysage */
.hero-logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.logo-box {
  background: rgba(245, 240, 232, 0.95);
  border-radius: 20px;
  padding: 10px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-agri {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--vert);
  letter-spacing: -1px;
}

.logo-der {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--brun-moyen);
  letter-spacing: -1px;
}

.hero-slogan {
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--fond-app);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  font-style: italic;
  letter-spacing: 0.5px;
}


/* ─── CARTE DE CONNEXION ─────────────────────── */
.carte-connexion {
  background: var(--fond-carte);
  border-radius: 28px 28px 0 0;
  margin-top: -24px;           /* Chevauche légèrement le hero */
  padding: 28px 24px 32px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.titre-connexion {
  font-family: var(--police-titre);
  font-size: 20px;
  font-weight: 700;
  color: var(--texte-fonce);
  margin-bottom: 4px;
}

.sous-titre-connexion {
  font-size: 13px;
  color: var(--texte-clair);
  margin-bottom: 20px;
}


/* ─── CHAMP MOT DE PASSE avec icône oeil ─────── */
.champ-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.champ-icone {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--texte-clair);
  pointer-events: none;
  flex-shrink: 0;
}

.champ-input-wrapper .champ-input {
  padding-left: 36px;
  padding-right: 42px;
}

.btn-oeil {
  position: absolute;
  right: 10px;
  padding: 6px;
  color: var(--texte-clair);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-oeil svg {
  width: 16px;
  height: 16px;
}


/* ─── LIEN MOT DE PASSE OUBLIÉ ───────────────── */
.lien-oublie {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--vert);
  margin-top: 6px;
}


/* ─── MESSAGE D'ERREUR ───────────────────────── */
.alerte-erreur {
  background-color: #FDE8E8;
  border: 1px solid #F5B7B7;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--rouge);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alerte-erreur::before {
  content: '⚠';
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── ALERTE SUCCÈS ──────────────────────────── */
.alerte-succes {
  background-color: var(--vert-clair);
  border: 1px solid #C0DD97;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--vert-fonce);
  margin-bottom: 16px;
}


/* ─── LIEN INSCRIPTION ───────────────────────── */
.lien-inscription {
  text-align: center;
  font-size: 13px;
  color: var(--texte-clair);
  margin-top: 20px;
}

.lien-inscription a {
  color: var(--vert);
  font-weight: 600;
}
