:root {
  /* Mapping des variables pour Pico.css */
  --pico-font-family: var(--font-sans);
  --pico-background-color: var(--background);
  --pico-color: var(--foreground);
  --pico-h1-color: var(--foreground);
  --pico-h2-color: var(--foreground);
  --pico-h3-color: var(--foreground);
  --pico-card-background-color: var(--card);
  --pico-card-border-color: var(--border);
  --pico-card-padding: 2rem;
  --pico-border-radius: var(--radius);
  --pico-primary: var(--primary);
  --pico-primary-inverse: var(--primary-foreground);
  --pico-primary-hover: var(--primary);
  --pico-primary-focus: var(--primary);

  /* Thème personnalisé */
  --background: #ffffff;
  --foreground: #0f1419;
  --card: #f7f8f8;
  --card-foreground: #0f1419;
  --popover: #ffffff;
  --popover-foreground: #0f1419;
  --primary: #00598a;
  --primary-foreground: #ffffff;
  --secondary: #0f1419;
  --secondary-foreground: #ffffff;
  --muted: #e5e5e6;
  --muted-foreground: #0f1419;
  --accent: #e3ecf6;
  --accent-foreground: #007595;
  --destructive: #f4212e;
  --destructive-foreground: #ffffff;
  --border: #e1eaef;
  --input: #f7f9fa;
  --ring: #1da1f2;
  --chart-1: #1e9df1;
  --chart-2: #00b87a;
  --chart-3: #f7b928;
  --chart-4: #17bf63;
  --chart-5: #e0245e;
  --sidebar: #f7f8f8;
  --sidebar-foreground: #0f1419;
  --sidebar-primary: #1e9df1;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #e3ecf6;
  --sidebar-accent-foreground: #1e9df1;
  --sidebar-border: #e1e8ed;
  --sidebar-ring: #1da1f2;
  --font-sans: Poppins, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  --radius: 1.3rem;
  --shadow-2xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 2px 4px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 4px 6px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 8px 10px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
}

.dark {
  --background: #000000;
  --foreground: #e7e9ea;
  --card: #17181c;
  --card-foreground: #d9d9d9;
  --popover: #000000;
  --popover-foreground: #e7e9ea;
  --primary: #1c9cf0;
  --primary-foreground: #ffffff;
  --secondary: #f0f3f4;
  --secondary-foreground: #0f1419;
  --muted: #181818;
  --muted-foreground: #72767a;
  --accent: #061622;
  --accent-foreground: #1c9cf0;
  --destructive: #f4212e;
  --destructive-foreground: #ffffff;
  --border: #242628;
  --input: #22303c;
  --ring: #1da1f2;
  --chart-1: #1e9df1;
  --chart-2: #00b87a;
  --chart-3: #f7b928;
  --chart-4: #17bf63;
  --chart-5: #e0245e;
  --sidebar: #17181c;
  --sidebar-foreground: #d9d9d9;
  --sidebar-primary: #1da1f2;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #061622;
  --sidebar-accent-foreground: #1c9cf0;
  --sidebar-border: #38444d;
  --sidebar-ring: #1da1f2;
  --font-sans: Poppins, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  --radius: 1.3rem;
  --shadow-2xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 1px 2px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 2px 4px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 4px 6px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00), 0px 8px 10px -1px hsl(202.8169 89.1213% 53.1373% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(202.8169 89.1213% 53.1373% / 0.00);
}

/* =================================================================
   STYLES PERSONNALISÉS - LA TOUCHE FINALE
   ================================================================= */

/* 1. Amélioration générale du corps de la page */
body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.7;
}

/* 2. Style de la navigation, inspiré de votre site */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem; /* Espace après la nav */
}
nav ul {
    margin: 0;
}
nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease-in-out;
}
nav ul li a:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* 3. Style des "cartes" pour les actualités, annonces, etc. */
article {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s ease-in-out;
}
article:hover {
    transform: translateY(-5px);
}
article h2 a {
    text-decoration: none;
}

/* 4. Typographie des titres */
h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--foreground);
}

/* 5. Style global des liens */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-foreground);
}

/* Style pour le titre principal de la page (H1) */
h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem; /* Espace en dessous */
  padding-bottom: 0.75rem; /* Petit espace avant la bordure */
  border-bottom: 2px solid var(--border); /* Ligne de séparation sobre */
}

/* Style pour les sous-titres de section (H2) */
h2 {
  display: inline-block; /* Permet au fond de s'adapter à la longueur du texte */
  font-size: 1.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2.5rem; /* Espace au-dessus de chaque nouvelle section */
  margin-bottom: 1.5rem;
}