/* ============================================
   2iiQuality — components.css
   Navbar, footer, cards, buttons, chips, formulaires
   ============================================ */

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 78, 90, 0.55);
  backdrop-filter: blur(10px);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--deep);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar .logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}

.navbar .logo .mint {
  color: var(--mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
  color: var(--mint);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--deep);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  pointer-events: none;
}

.nav-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.nav-overlay a:hover {
  color: var(--mint);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--seafoam);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--teal);
}

.btn-white:hover {
  background: var(--light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ---------- Pills / Chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--mint);
  color: var(--mint);
  animation: pillPulse 2.6s ease-in-out infinite;
}

@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127, 227, 214, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(127, 227, 214, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pill { animation: none; }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--light);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mint);
  margin-bottom: 12px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3, .card h4 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

.card-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: var(--grey);
}

.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--seafoam);
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--teal);
}

.stat-label {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--grey);
}

/* ---------- Timeline ---------- */
.timeline-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-h-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  position: relative;
}

.timeline-h-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.timeline-h-step:nth-child(odd) .timeline-h-circle { background: var(--teal); }
.timeline-h-step:nth-child(even) .timeline-h-circle { background: var(--seafoam); }

.timeline-h-step::after {
  content: '→';
  position: absolute;
  top: 22px;
  right: -22px;
  color: var(--mint);
  font-size: 1.4rem;
}

.timeline-h-step:last-child::after { content: none; }

@media (max-width: 768px) {
  .timeline-h { flex-direction: column; align-items: center; }
  .timeline-h-step::after { content: none; }
}

.timeline-v {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-v-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.timeline-v-item:last-child { padding-bottom: 0; }

.timeline-v-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.timeline-v-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--mint);
  opacity: 0.45;
}

/* ---------- Formulaires ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--grey);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.form-note {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 10px;
  text-align: center;
}

.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-steps {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- Avatars équipe ---------- */
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.avatar-teal { background: linear-gradient(135deg, var(--teal), var(--deep)); }
.avatar-seafoam { background: linear-gradient(135deg, var(--seafoam), var(--teal)); }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-bottom a:hover {
  color: var(--mint);
}

/* ---------- Job cards (carrière) ---------- */
.job-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.job-meta span {
  font-size: 0.8rem;
  background: var(--light);
  color: var(--teal);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}
