/* ==========================================================================
   EEI - Équipements Électriques et Industriels
   Global CSS Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Figma Navy & Gold */
  --primary-navy: #0A1F44;
  --primary-navy-dark: #061329;
  --primary-navy-light: #1E3A70;
  --accent-gold: #FFB800;
  --accent-gold-hover: #E5A400;
  --accent-gold-light: rgba(255, 184, 0, 0.15);
  --text-dark: #0A1F44;
  --text-body: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --border-focus: #FFB800;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 4px 14px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 12px 30px rgba(10, 31, 68, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1240px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

/* Common Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #111;
  box-shadow: 0 4px 14px rgba(235, 168, 24, 0.35);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(235, 168, 24, 0.45);
}

.btn-gold:active {
  transform: translateY(0);
}

/* Notification & Alert styling */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary-navy);
  color: #fff;
  padding: 14px 24px;
  border-radius: 20px;
  border-left: 4px solid var(--accent-gold);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}
