/* ================================================================
   ONCB Shiny App — CSS personnalisé
   Charte graphique ORA (Observatoire Régional Avifaune, Bretagne)
   ================================================================ */

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #EEF5F9;
  color: #060E1C;
  font-size: 15px;
  line-height: 1.6;
}

/* ---- Bandeau site en développement ----------------------------- */
.dev-banner {
  background-color: #FFF3CD;
  color: #664D03;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 3px 12px;
  border-bottom: 1px solid #FFE69C;
}

.dev-banner a {
  color: #664D03;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- Sections de contenu ------------------------------------- */
.section-block {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(10, 82, 96, 0.08);
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0A5260;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #A0D8E8;
}

/* ---- Navbar -------------------------------------------------- */
/* Règles statiques (pas de Sass/bs_add_rules, pas de JS) pour un rendu   */
/* identique en local et sur le serveur de déploiement.                  */
.navbar.navbar.navbar,
nav.navbar.navbar {
  background-color: #050C16 !important;
  border-bottom: 2px solid #1C7293 !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
}

.navbar .nav-link.active {
  background-color: #1C7293 !important;
  color: #fff !important;
  border-radius: 4px;
}

.navbar .nav-link:hover {
  background-color: rgba(28, 114, 147, 0.65) !important;
  color: #fff !important;
  border-radius: 4px;
}

.navbar-brand {
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
}

/* ---- Liens --------------------------------------------------- */
a {
  color: #1C7293;
  text-decoration: none;
}

a:hover {
  color: #065A82;
  text-decoration: underline;
}

/* ---- Hero banner --------------------------------------------- */
.hero-banner {
  background-color: #0D2137;
  color: #FFFFFF;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 65%;
}

.hero-banner h1 {
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-banner .hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 16px;
}

.hero-banner img.hero-bird {
  height: 170px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

/* ---- Badges -------------------------------------------------- */
.badge-ora {
  display: inline-block;
  background-color: #0A9396;
  color: #FFFFFF;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-avenir {
  display: inline-block;
  background-color: #CCE2F2;
  color: #065A82;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}



/* ---- Cartes métriques (hero) --------------------------------- */
.metric-card {
  background-color: #EEF5F9;
  border: 1px solid #A0D8E8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-align: center;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #1C7293;
  line-height: 1;
}

.metric-label {
  font-size: 12px;
  color: #64748B;
  margin-top: 4px;
}

/* ---- Cartes protocole (3 étapes) ----------------------------- */
.step-card {
  background-color: #FFFFFF;
  border-left: 4px solid #1C7293;
  border-radius: 0 8px 8px 0;
  padding: 20px 22px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(10, 82, 96, 0.10);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #0A9396;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

.partner-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #0A5260;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  line-height: 1.55;
}

/* ---- Cartes contacts (par département) ----------------------- */
.contact-card {
  background-color: #FFFFFF;
  border: 1px solid #CCE2F2;
  border-radius: 8px;
  padding: 18px 20px;
  height: 100%;
  box-shadow: 0 1px 3px rgba(10, 82, 96, 0.08);
}

.contact-card .dept-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1C7293;
  margin-bottom: 8px;
}

.contact-card .contact-name {
  font-size: 14px;
  font-weight: 600;
  color: #060E1C;
  margin-bottom: 4px;
}

.contact-card .contact-email {
  font-size: 13px;
  color: #64748B;
}

/* ---- Boutons ------------------------------------------------- */
.btn-primary-custom {
  background-color: #D87000;
  border-color: #D87000;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 18px;
}

.btn-primary-custom:hover {
  background-color: #B85C00;
  border-color: #B85C00;
  color: #FFFFFF;
}

.btn-outline-ora {
  background-color: transparent;
  border: 1.5px solid #1C7293;
  color: #1C7293;
  font-weight: 500;
  border-radius: 6px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-ora:hover {
  background-color: #1C7293;
  color: #FFFFFF;
  text-decoration: none;
}

/* ---- Footer / partenaires ------------------------------------ */
.footer-section {
  background-color: #E2E8F0;
  padding: 20px 32px;
  margin-top: 24px;
  border-top: 1px solid #A0D8E8;
}

.footer-section .footer-text {
  font-size: 12px;
  color: #64748B;
}

.footer-section img {
  max-height: 40px;
  opacity: 0.80;
  margin: 0 10px;
}

/* ---- Page "À venir" (onglets 2, 3, 4 en attente) ------------ */
.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 14px;
  color: #64748B;
}

.coming-soon .cs-icon {
  width: 72px;
  height: 72px;
  background-color: #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #1C7293;
}

.coming-soon h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0A5260;
  margin: 0;
}

.coming-soon p {
  font-size: 13px;
  color: #64748B;
  text-align: center;
  max-width: 340px;
  margin: 0;
}

/* ---- Utilitaires --------------------------------------------- */
.text-ora-blue  { color: #1C7293; }
.text-ora-teal  { color: #0A9396; }
.text-ora-amber { color: #D87000; }
.text-muted-sm  { font-size: 13px; color: #64748B; }

.mb-section { margin-bottom: 24px; }
.gap-cards  { gap: 16px; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 32px;
  padding: 16px 32px;
  border-top: 1px solid #CCE2F2;
  background: #FFFFFF;
  font-size: 0.8rem;
  color: #5A6B7B;
  text-align: center;
  line-height: 1.5;
}
.site-footer a {
  color: #1C7293;
  text-decoration: underline;
}
.site-footer a:hover {
  color: #0A9396;
}
.site-footer .footer-sep {
  margin: 0 8px;
}
