import 'package:flutter/material.dart';

/// Titre de section avec une barre verticale colorée à gauche.
class SectionTitle extends StatelessWidget {
  final String text;
  final Color color;
  const SectionTitle({super.key, required this.text, required this.color});

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Container(width: 4, height: 20, color: color),
        const SizedBox(width: 8),
        Text(
          text,
          style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: color, letterSpacing: 2),
        ),
      ],
    );
  }
}
