/* ============================================================
   GLOBAL.CSS — Perfo Maroc
   Variables, Reset, Typography, Boutons, Animations
   Chargé sur TOUTES les pages
============================================================ */

/* ===========================
   RESET & ROOT
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary:        #1A6FFF;
  --primary-dark:   #0047CC;
  --primary-light:  #4D94FF;
  --silver:         #C0C0C0;
  --silver-light:   #E8E8E8;
  --dark:           #0A0A12;
  --dark-2:         #0F1020;
  --dark-3:         #161728;
  --white:          #FFFFFF;
  --text-muted:     #8892A4;
  --green:          #22c55e;
  --font-title:     'Montserrat', sans-serif;
  --font-body:      'Nunito', sans-serif;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-blue:    0 6px 20px rgba(26, 111, 255, 0.3);
  --shadow-blue-lg: 0 10px 35px rgba(26, 111, 255, 0.4);
  --shadow-card:    0 2px 20px rgba(0,0,0,0.04);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --container:      1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===========================
   BOUTONS GLOBAUX
=========================== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 25px rgba(26,111,255,0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(26,111,255,0.55);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-3px);
}

/* ===========================
   COMPOSANTS COMMUNS
=========================== */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(26,111,255,0.08);
  border: 1px solid rgba(26,111,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.section-tag i { font-size: 10px; }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title.dark-text  { color: #1a1f36; }
.section-title.light-text { color: var(--white); }
.title-blue { color: var(--primary); }

.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}

.section-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: #6b7280;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes shimmer {
  to { left: 200%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1; transform: translateX(-50%) scale(1.2); }
}
@keyframes float-1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.1); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(25px) scale(0.95); }
}
@keyframes float-particles {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-15px); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
