/* ============================================
   CRI — Navigation Header · Identité RodForm
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Calibri', 'Segoe UI', 'Nunito', Arial, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
  min-height: 100vh;
}

/* ── Barre de navigation ── */
.header {
  background: #131d2e;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.20);
}

.header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #253451 0%, #4a7ab5 50%, rgba(74,122,181,0.2) 100%);
}

.header nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Table → Flex ── */
.table_header,
.table_header tbody,
.table_header tr {
  display: flex;
  align-items: center;
  width: 100%;
}

.table_header { border-collapse: collapse; }

.table_header tr {
  height: 58px;
  gap: 2px;
}

.table_header td {
  display: flex;
  align-items: center;
  padding: 0;
  white-space: nowrap;
}

.table_header td:first-child {
  flex: 1;
  padding-right: 20px;
}

/* ── Logo ── */
img.logo {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.15s;
}

a.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

a.logo:hover img.logo { opacity: 0.85; }

a.logo::after {
  content: 'CRI';
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #4a7ab5;
  background: rgba(74, 122, 181, 0.12);
  border: 1px solid rgba(74, 122, 181, 0.25);
  padding: 3px 7px;
  border-radius: 4px;
}

/* ── Liens ── */
.lien {
  display: inline-flex;
  align-items: center;
  color: #f8fafc;
  text-decoration: none;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.lien:hover {
  color: #f8fafc;
  background: rgba(74, 122, 181, 0.25);
}

.table_header td:last-child .lien { color: rgba(248, 250, 252, 0.60); }

.table_header td:last-child .lien:hover {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.10);
}

/* ── Footer ── */
body > div[style] {
  font-family: 'Calibri', 'Segoe UI', sans-serif !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
  padding: 10px 24px !important;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header nav { padding: 0 14px; }

  .table_header tr {
    height: 50px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .table_header tr::-webkit-scrollbar { display: none; }

  img.logo { height: 22px; }
  a.logo::after { display: none; }
  .lien { font-size: 13.5px; padding: 5px 9px; }
}

@media (max-width: 480px) {
  .lien { font-size: 13px; padding: 4px 8px; }
}
