/* global.css – Styles partagés pour tout le site CABMY */

:root {
  --blue: #1a3a6b;
  --blue-mid: #2952a3;
  --blue-light: #e8eef8;
  --gold: #c9a84c;
  --gold-light: #f5e9c8;
  --white: #ffffff;
  --gray: #6b7280;
  --dark: #0f1f3d;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* Navigation Links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar shared design */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 56, .97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, .15);
  box-shadow: 0 2px 32px rgba(0, 0, 0, .25);
  transition: box-shadow .3s;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-heading-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.page-title-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.page-title-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

.brand-sub {
  font-size: .7rem;
  color: rgba(255, 255, 255, .45);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-link.active {
  color: var(--gold);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(26, 58, 107, .25);
}

.nav-cta:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26, 58, 107, .35);
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  background: var(--dark);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .35);
  border: 1px solid rgba(201, 168, 76, .15);
  overflow: hidden;
  animation: fadeDown .2s ease;
}

.dropdown:hover .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 11px 18px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.dropdown-panel a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--gold);
  border-left-color: var(--gold);
  padding-left: 22px;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, .8);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: rgba(13, 27, 56, .96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 200;
  padding: 86px 22px 24px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex !important;
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-link {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s, color .2s;
  font-family: 'Cormorant Garamond', serif;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--gold);
  background: rgba(255, 255, 255, .08);
}

.mobile-cta {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  margin-top: 12px;
  font-size: 1rem;
}

@media(max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none !important;
  }
  .hamburger {
    display: flex !important;
  }
  .dropdown-panel {
    display: none !important;
  }
  .nav-inner {
    padding: 0 16px;
  }
  .nav-brand {
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links, .nav-cta { display: none; }
}

/* Gold Line Accent */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
}

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #b8922e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

/* Language Selection */
.lang-active {
  background: var(--gold);
  color: var(--dark);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--gold);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--blue);
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--gold);
}

/* Card Hover Effects */
.card-hover {
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26, 58, 107, 0.15);
}

/* Animations */
.animate-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}

.animate-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stat Card */
.stat-card {
  border-left: 4px solid var(--gold);
}

/* News Card */
.news-card {
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
}

.news-card:hover {
  border-color: var(--gold);
}

/* Footer */
footer {
  background: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-bg .max-w-7xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}
