/**
 * Congoimo – CSS global PRODUCTION
 * Ultra-léger • Mobile-first • SEO • Stable • Crédible
 * Cible : investisseurs, agences, propriétaires sérieux
 */

/* ==================================================
   VARIABLES & IMAGES FLUIDES
================================================== */
:root {
  --primary: #0f4c81;
  --secondary: #e6a700;
  --dark: #1b1f23;
  --gray: #6b7280;
  --light: #f5f7fa;
  --white: #ffffff;

  --radius: 8px;
  --max-width: 1200px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================================================
   RESET & BASE
================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

/* ==================================================
   STRUCTURE GLOBALE
================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.site-content {
  padding: 32px 0;
}

/* ==================================================
   TYPOGRAPHIE
================================================== */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: #374151; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================================================
   BOUTONS
================================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: #0c3c66; transform: translateY(-1px); }

.btn-secondary {
  background: var(--secondary);
  color: #000;
}
.btn-secondary:hover { background: #d49700; transform: translateY(-1px); }

/* ==================================================
   HEADER & NAVIGATION
================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo img { height: 40px; display: block; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle:focus-visible { outline: 2px solid var(--secondary); }

.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a { font-weight: 500; color: var(--dark); }
.nav-cta a { padding: 10px 16px; }

/* NAV MOBILE */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid #e5e7eb; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 16px; gap: 12px; }
}

/* ==================================================
   ARTICLES
================================================== */
.articles-header { max-width: 720px; margin-bottom: 32px; }
.articles-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.article-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.article-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 8px; }
.article-excerpt { flex-grow: 1; }
.read-more { font-weight: 600; margin-top: 12px; }

/* ==================================================
   ANNONCES
================================================== */
.annonces-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.annonce-card { background: var(--white); border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.annonce-body { padding: 16px; }
.annonce-meta, .annonce-location { font-size: 0.85rem; color: var(--gray); }
.annonce-price { font-weight: 600; margin-top: 8px; }

/* GALLERY */
.annonce-gallery { margin-top: 1rem; }
.gallery-main img { width: 100%; height: auto; display: block; border-radius: 10px; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.gallery-thumbs img { width: 80px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }

/* ==================================================
   DASHBOARD
================================================== */
.user-dashboard .container { padding: 24px 0; }

.dashboard-header h1 { font-size: clamp(1.8rem,3vw,2.4rem); font-weight:600; margin-bottom:0.3em; }
.dashboard-subtitle { font-size:1rem;color:#4b5563;margin-bottom:24px; }

.dashboard-summary { background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:16px 20px; margin-bottom:32px; }
.dashboard-summary p { margin:4px 0; font-size:0.95rem; }
.summary-note { font-size:0.9rem;color:#6b7280;margin-top:8px; }

.dashboard-actions {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-bottom:32px;
}
.card-action {
  display:flex;
  flex-direction:column;
  padding:20px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  transition:box-shadow 0.2s ease,transform 0.15s ease;
  text-decoration:none;
  color:#1f2937;
}
.card-action h3 { margin:0 0 6px 0; font-size:1.1rem; font-weight:600; }
.card-action p { font-size:0.9rem; color:#4b5563; flex-grow:1; }
.card-action:hover { box-shadow:0 6px 18px rgba(0,0,0,0.08); transform:translateY(-2px); }
.card-action.primary { border-left:4px solid var(--primary); }
.card-action.danger { border-left:4px solid #dc2626; }

.dashboard-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:16px; margin-bottom:32px; }
.metric-card { background:#f3f4f6; border-radius:10px; padding:16px; text-align:center; }
.metric-card span.metric-number { display:block; font-size:1.5rem; font-weight:600; margin-bottom:6px; color:#111827; }
.metric-card span.metric-label { font-size:0.85rem; color:#6b7280; }
.metric-card.published { border-left:4px solid #10b981; }
.metric-card.pending { border-left:4px solid #f59e0b; }
.metric-card.rejected { border-left:4px solid #ef4444; }

.dashboard-alert { background:#fef3c7; border-left:4px solid #f59e0b; padding:16px 20px; border-radius:8px; margin-bottom:24px; color:#92400e; font-size:0.95rem; }
.dashboard-alert strong { font-weight:600; }

.dashboard-note { font-size:0.9rem;color:#4b5563;margin-top:32px;line-height:1.5; }

/* ==================================================
   FORMULAIRES
================================================== */
.contact-form form, .auth-form form { max-width:520px; }
label { display:block;font-weight:500;margin-bottom:6px; }
input,textarea,select { width:100%; padding:10px 12px; border-radius:var(--radius); border:1px solid #d1d5db; font-family:inherit; margin-bottom:16px; }
input:focus,textarea:focus,select:focus { outline:none;border-color:var(--primary); }

/* ==================================================
   FOOTER
================================================== */
.site-footer { background:#0b2540;color:#cbd5e1; padding:48px 0 16px; }
.footer-container { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:32px; }
.site-footer h3 { color:var(--white); margin-bottom:12px; }
.site-footer a { color:#cbd5e1; }
.site-footer a:hover { color:var(--white); }
.footer-bottom { text-align:center;margin-top:32px;font-size:0.85rem;color:#94a3b8; }

/* ==================================================
   TRUST & CTA
================================================== */
.trust-grid { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:32px; }
.trust-grid > div { background:#fff; border:1px solid #e5e7eb; border-radius:var(--radius); padding:12px 16px; flex:1 1 200px; text-align:center; font-weight:500; color:var(--dark); }

.cta { background:var(--primary); color:#fff; padding:40px 16px; text-align:center; border-radius:var(--radius); margin-top:32px; }
.cta a.btn-primary { margin-top:16px; }

/* ==================================================
   ACCESSIBILITÉ
================================================== */
:focus-visible { outline:2px solid var(--secondary); outline-offset:2px; }

/* ==================================================
   MEDIA QUERIES
================================================== */
@media(max-width:1024px){h1{font-size:clamp(1.5rem,3vw,2rem);}}
@media(max-width:768px){
  .container{padding:0 12px;}
  .annonces-grid,.articles-list,.trust-grid{gap:16px;}
  .gallery-thumbs img{width:60px;}
  .dashboard-actions{grid-template-columns:1fr;}
  .dashboard-metrics{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  h1{font-size:1.5rem;}
  h2{font-size:1.2rem;}
  .btn-primary,.btn-secondary{width:100%;text-align:center;}
  .dashboard-metrics{grid-template-columns:1fr;}
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-width: 820px;
}

.hero-search select {
  flex: 1 1 160px;
}

.hero-search button {
  flex: 0 0 auto;
}

/* ==================================================
   CTA – VERSION INSTITUTIONNELLE (RECOMMANDÉE)
================================================== */
.cta {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 48px 24px;
  border-radius: 14px;
  margin-top: 48px;
}

.cta .container {
  max-width: 820px;
  text-align: left;
}

.cta h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.cta p {
  color: #374151;
  max-width: 680px;
}

/* Bouton CTA */
.cta .btn-primary {
  margin-top: 24px;
  background: var(--secondary);
  color: #111827;
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.cta .btn-primary:hover {
  background: #d49700;
  transform: translateY(-2px);
}

/* Texte tarifs */
.cta-subtext {
  margin-top: 18px;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

/* Mobile */
@media (max-width: 768px) {
  .cta .container {
    text-align: center;
  }

  .cta .btn-primary {
    width: 100%;
  }
}

.cta-note {
  font-size: 0.9rem;          /* taille discrète mais lisible */
  color: #6b7280;             /* gris professionnel et sobre */
  margin-top: 12px;           /* espace suffisant après le bouton */
  text-align: center;         /* centré sous le CTA */
  line-height: 1.4;           /* lisibilité optimale */
  font-weight: 500;           /* légèrement plus marqué que le texte classique */
}
.section-action {
  text-align: center;          /* centré sous la grille */
  margin-top: 32px;
}

.section-action .btn-link {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.section-action .btn-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =========================
   HERO + RECHERCHE OPTIMISÉ
========================= */
.hero {
  background: #f9fafb;               /* gris clair et sobre */
  padding: 64px 16px 48px;           /* espace généreux */
  border-radius: 14px;               /* légère rondeur moderne */
  box-shadow: 0 6px 18px rgba(0,0,0,0.05); /* profondeur subtile */
  margin-bottom: 32px;
  text-align: center;                 /* centré pour impact immédiat */
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #374151;
  max-width: 720px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: #ffffff;               /* blanc pour contraste */
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-search select {
  flex: 1 1 160px;
}

.hero-search button {
  flex: 0 0 auto;
}

/* Note sous le hero */
.cta-note {
  font-size: 0.9rem;          /* discret mais lisible */
  color: #6b7280;             /* gris professionnel */
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 12px 32px;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-search {
    flex-direction: column;
    gap: 12px;
  }
  .hero-search select,
  .hero-search button {
    width: 100%;
    flex: 1 1 100%;
  }
}
/* ==================================================
   Congoimo – Page Annonces
   Cohérence totale avec la page d'accueil
================================================== */

/* =========================
   Variables
========================= */
:root {
  --primary: #0f4c81;
  --secondary: #e6a700;
  --dark: #1b1f23;
  --gray: #6b7280;
  --light: #f5f7fa;
  --white: #ffffff;

  --radius: 8px;
  --max-width: 1200px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
}

/* =========================
   Reset & Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* =========================
   Container
========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   Section Page Annonces
========================= */
.annonces-page {
  background: #f9fafb; /* contraste léger avec les cartes blanches */
  padding: 40px 0;
}

/* =========================
   Header Annonces
========================= */
.annonces-header {
  text-align: center;
  margin-bottom: 32px;
}

.annonces-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.annonces-header p {
  color: #374151;
  margin-bottom: 8px;
}

.trust-mini {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* =========================
   Filtres
========================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
  justify-content: center;
}

.filters select,
.filters input[type="text"] {
  flex: 1 1 160px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid #d1d5db;
  font-family: inherit;
}

.filters button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--white);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.filters button:hover {
  background: #0c3c66;
  transform: translateY(-1px);
}

/* =========================
   Grille d'annonces
========================= */
.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.annonce-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.annonce-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.annonce-body {
  padding: 16px;
}

.annonce-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.annonce-meta,
.annonce-location {
  font-size: 0.85rem;
  color: var(--gray);
}

.annonce-price {
  font-weight: 600;
  margin-top: 8px;
}

/* =========================
   Pagination
========================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
}

.pagination a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination a:hover:not(.active) {
  background: #f3f4f6;
}

/* =========================
   CTA professionnel
========================= */
.cta-annonces {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 32px 20px;
  border-radius: var(--radius);
  margin-top: 48px;
  text-align: center;
}

.cta-annonces p {
  color: #374151;
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-annonces a.btn-primary {
  background: var(--secondary);
  color: #111827;
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.cta-annonces a.btn-primary:hover {
  background: #d49700;
  transform: translateY(-2px);
}

/* =========================
   Responsivité
========================= */
@media(max-width:1024px){
  .annonces-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
}

@media(max-width:768px){
  .container{padding:0 12px;}
  .annonces-grid{gap:16px;}
  .filters{gap:8px;}
  .filters select,
  .filters input[type="text"] { flex: 1 1 140px; }
  .filters button{width:100%;}
}

@media(max-width:480px){
  .annonces-header h1{font-size:1.5rem;}
  .filters select,
  .filters input[type="text"]{flex:1 1 100%;}
}
/* =========================
   Logo header – version plus grande et responsive
========================= */
.logo img {
  height: 60px;           /* plus visible sur desktop */
  max-width: 250px;       /* largeur maximale pour ne pas dépasser le header */
  width: auto;            /* respect du ratio original */
  display: block;
  object-fit: contain;    /* logo entièrement visible */
  transition: all 0.2s ease;
}

/* Mobile – ajustement automatique */
@media (max-width: 1024px) {
  .logo img {
    height: 50px;         /* légèrement plus petit sur tablettes */
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;         /* réduit sur mobile pour laisser place au menu */
    max-width: 160px;
  }
}


/* =========================
   Bouton "Publier un bien" – header
========================= */
.nav-cta a.btn-primary {
  background: var(--primary);  /* bleu */
  color: #ffffff;              /* texte blanc */
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta a.btn-primary:hover {
  background: #0c3c66;         /* bleu plus foncé au survol */
  transform: translateY(-1px);
}


/* ==================================================
   ALERTES (Succès / Erreur)
   Lisible • Accessible • Institutionnel
================================================== */

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

/* Succès */
.alert-success {
  background: #ecfdf5;              /* vert très clair */
  color: #065f46;                   /* vert foncé lisible */
  border-color: #10b981;            /* vert validation */
}

/* Erreur */
.alert-error {
  background: #fef2f2;              /* rouge très clair */
  color: #7f1d1d;                   /* rouge foncé lisible */
  border-color: #ef4444;            /* rouge erreur */
}

/* Responsive */
@media (max-width: 480px) {
  .alert {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}
/* ==================================================
   ALERTES & STATUTS – Congoimo
   Succès • Erreur • Attente • Vérification
================================================== */

.alert {
  padding: 16px 18px;
  border-radius: var(--radius, 6px);
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid transparent;
}

/* Liste d’erreurs */
.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert li {
  margin-bottom: 6px;
}

/* ======================
   SUCCÈS (VERT)
====================== */
.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #10b981;
}

/* ======================
   ERREUR (ROUGE)
====================== */
.alert-error {
  background-color: #fef2f2;
  color: #7f1d1d;
  border-color: #ef4444;
}

/* ======================
   EN ATTENTE (ORANGE)
====================== */
.alert-pending {
  background-color: #fff7ed;
  color: #9a3412;
  border-color: #fb923c;
}

/* ======================
   VÉRIFICATION / INFO (BLEU)
====================== */
.alert-info {
  background-color: #eff6ff;
  color: #1e3a8a;
  border-color: #3b82f6;
}

/* ======================
   MOBILE
====================== */
@media (max-width: 480px) {
  .alert {
    padding: 14px 14px;
    font-size: 0.9rem;
  }
}

/* ===============================
   Statuts des annonces
================================= */
.annonce-status .status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
}

/* Publie / Active */
.annonce-status .active {
    background-color: #28a745; /* vert harmonieux */
    color: #fff;
}

/* En validation */
.annonce-status .pending {
    background-color: #ff9800; /* orange doux */
    color: #fff;
}

/* Rejeté / À corriger */
.annonce-status .rejected {
    background-color: #f44336; /* rouge doux */
    color: #fff;
}

/* Optionnel : survol pour interactivité */
.annonce-status .status:hover {
    opacity: 0.85;
    transition: 0.2s;
}


/* ================================
   Tableau de bord – style global
   ================================ */
.user-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.user-dashboard .dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.user-dashboard .dashboard-header h1 {
    font-size: 2rem;
    color: #1f3d7a;
    font-weight: 600;
}

.user-dashboard .dashboard-subtitle {
    font-size: 1rem;
    color: #555;
}

/* ================================
   Résumé compte
   ================================ */
.dashboard-summary {
    background-color: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-summary p {
    font-size: 1rem;
    color: #444;
}

.dashboard-summary strong {
    font-size: 1.2rem;
    color: #1f3d7a;
}

/* ================================
   Actions principales (cartes)
   ================================ */
.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.card-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    background-color: #ffffff;
    color: #333;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.card-action h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-action p {
    font-size: 0.9rem;
    color: #555;
}

/* Couleurs des actions */
.card-action.primary {
    background-color: #1f3d7a;
    color: #fff;
    border-left-color: #0f254a;
}

.card-action.primary:hover {
    background-color: #162b57;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-action.danger {
    background-color: #d9534f;
    color: #fff;
    border-left-color: #a8322f;
}

.card-action.danger:hover {
    background-color: #b2322f;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ================================
   Indicateurs clés
   ================================ */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: #ffffff;
    text-align: center;
    padding: 0.8rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card span.metric-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f3d7a;
}

.metric-card span.metric-label {
    font-size: 0.85rem;
    color: #666;
}

.metric-card.published { border-top: 3px solid #28a745; }
.metric-card.pending   { border-top: 3px solid #ffc107; }
.metric-card.rejected  { border-top: 3px solid #dc3545; }

/* Hover léger sur métriques */
.metric-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================================
   Alertes et notes
   ================================ */
.dashboard-alert {
    background-color: #fff8e5;
    border-left: 5px solid #ffc107;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    color: #856404;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.dashboard-note {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: 2rem;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 768px) {
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

