import 'package:flutter/material.dart';

/// En-tête de la page Système.
class SystemHeader extends StatelessWidget {
  final Color primaryColor;
  const SystemHeader({super.key, required this.primaryColor});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      padding: const EdgeInsets.symmetric(vertical: 16),
      decoration: BoxDecoration(
        color: primaryColor,
        border: Border(bottom: BorderSide(color: primaryColor.withAlpha(180), width: 3)),
      ),
      child: const Text(
        'SYSTÈME',
        textAlign: TextAlign.center,
        style: TextStyle(color: Colors.white, fontSize: 28, fontWeight: FontWeight.bold, letterSpacing: 4),
      ),
    );
  }
}
