:root{
  --fale-primary:#003F8A;
  --fale-secondary:#E94800;
  --fale-tertiary:#EEB319;
  --fale-dark:#1f2937;
  --fale-bg:#f7f7f8;
  --card-border:#e9ecef;
  --card-shadow:0 6px 24px rgba(16,24,40,.06);
  --radius-lg:16px;
}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
.navbar .nav-link.active{color:var(--fale-primary)!important;font-weight:600}
.hero-section{
  min-height:60vh;
  background:linear-gradient(135deg,rgba(30,64,175,.9),rgba(245,158,11,.9)), url('../../../../CdC%20%26%20Logos/FALE%20Logo%20-%20fond%20Bleu.jpg') center/cover no-repeat;
}
.countdown-card .cd-box{
  border-radius:.5rem; padding:.5rem 0;
  display:flex; flex-direction:column; align-items:center; gap:.25rem;
}
.countdown-card .cd-box span{font-weight:700; font-size:1.5rem; line-height:1}
.partner-card,.news-card{border:1px solid rgba(30,64,175,.08)}
.partner-card:hover,.news-card:hover{transform:translateY(-4px); transition:.2s; box-shadow:0 10px 24px rgba(0,0,0,.08)}
footer small, footer div{opacity:.95}

/* New Theme */
body{background:var(--fale-bg)}
.section-header{margin-bottom:1.5rem}
.section-header h1,.section-header h2{font-weight:800}
.elevated{background:#fff;border:1px solid var(--card-border);border-radius:var(--radius-lg);box-shadow:var(--card-shadow)}
.card-neo{background:#fff;border:1px solid var(--card-border);border-radius:14px;box-shadow:var(--card-shadow)}
.card-neo .card-body{padding:1rem 1.25rem}
.chip{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .625rem;border-radius:999px;font-size:.8rem;border:1px solid #eee;background:#fff}
.chip i{font-size:.85em}
.badge-soft{background:rgba(0,63,138,.08);color:var(--fale-primary);border:1px solid rgba(0,63,138,.15)}
.org-badge{border-radius:999px;padding:.15rem .5rem;font-size:.7rem;border:1px solid #e5e7eb}
.avatar{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 12px rgba(0,0,0,.08)}
.avatar.bg-primary{ background: var(--fale-primary) !important; border-color: var(--fale-primary) !important }
.member-card{transition:.2s}
.member-card:hover{transform:translateY(-2px)}
.stat-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #e5e7eb;border-radius:12px;padding:1rem;background:#fff}
.stat-pill .num{color:#16a34a;font-weight:800}

/* Navbar pills */
.navbar .nav-link{border-radius:999px}
.navbar .nav-link.active{background:rgba(0,63,138,.08)}

/* Buttons */
.btn{transition:.2s ease-in-out}
.btn-primary{background:linear-gradient(45deg,var(--fale-primary),#0056b3); border:none}
.btn-primary:hover{filter:brightness(.95); transform:translateY(-1px)}
.btn-outline-primary{border-width:2px}
.btn-outline-primary:hover{background:var(--fale-primary); border-color:var(--fale-primary)}
.btn-warning{background:var(--fale-tertiary); color:#1f2937; font-weight:600; border:none}
.btn-danger{background:var(--fale-secondary); border:none}
.btn-danger:hover{background:#d13e00}

/* Headings */
h1,h2,h3,h4,h5{color:var(--fale-dark)}
.fw-bold .badge{vertical-align:baseline}

/* Forms */
.form-control,.form-select{border:2px solid #e2e8f0}
.form-control:focus,.form-select:focus{border-color:var(--fale-primary); box-shadow:0 0 0 .2rem rgba(30,64,175,.15)}
.invalid-feedback{font-size:.875rem}

/* Cards */
.news-card .ratio{background:linear-gradient(135deg,#f8fafc,#e2e8f0)}

/* Navbar */
.navbar-brand span{color:var(--fale-dark)}
.site-header .py-1{letter-spacing:.2px}

/* Footer */
footer{
  margin-top:0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

footer h6 {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

footer h6::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(45deg, var(--fale-primary), var(--fale-secondary));
  border-radius: 2px;
}

footer .text-muted {
  color: #cbd5e1 !important;
  line-height: 1.6;
}

footer .text-muted:hover {
  color: #fff !important;
  transition: color 0.3s ease;
}

footer a.text-muted {
  text-decoration: none !important;
  transition: all 0.3s ease;
  position: relative;
}

footer a.text-muted:hover {
  color: var(--fale-tertiary) !important;
  transform: translateX(4px);
}

footer .fab, footer .fa-solid {
  width: 20px;
  text-align: center;
  color: var(--fale-tertiary) !important;
  font-size: 1.1rem;
  display: inline-block;
  flex-shrink: 0;
}

footer .info-item .fa-solid {
  color: var(--fale-primary) !important;
}

/* Ensure all Font Awesome icons are visible */
footer i[class*="fa-"] {
  opacity: 1 !important;
  visibility: visible !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  display: inline-block !important;
}

footer .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

footer .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

/* Specific styles for info section icons */
footer .info-item i {
  /* color: var(--fale-primary) !important; */
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  display: inline-block !important;
}

footer .d-flex.gap-3 a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none !important;
}

footer .d-flex.gap-3 a:hover {
  background: var(--fale-primary);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 63, 138, 0.3);
}

footer .d-flex.gap-3 a i {
  color: inherit !important;
  font-size: 1.2rem;
}

footer .logo-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

footer .info-item {
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

footer .info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
  margin: 3rem 0 2rem 0;
}

footer .copyright-section {
  background: rgba(0, 0, 0, 0.2);
  margin: 2rem -15px -2rem -15px;
  padding: 1.5rem 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .footer-logo {
  height: 80px;
}

/* Utilities */
.bg-fale-gradient{background:linear-gradient(135deg,var(--fale-primary),var(--fale-secondary))}
.text-muted-sm{font-size:.9rem;color:#6b7280}
.text-primary{color:var(--fale-primary)!important}
.text-secondary{color:var(--fale-secondary)!important}
.text-tertiary{color:var(--fale-tertiary)!important}

/* Performance and Accessibility */
.img-fluid{max-width:100%;height:auto}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Touch targets for mobile */
@media (max-width: 768px) {
  .btn, .nav-link, .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Responsive */
@media (max-width: 576px) {
  /* Mobile phones */
  .hero-section {
    min-height: 60vh;
    padding: 2rem 0;
  }
  .hero-section h1 {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  .hero-section p {
    font-size: 1rem !important;
  }
  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .hero-section .info-cards .col-md-4 {
    margin-bottom: 1rem;
  }
  .navbar-brand img {
    height: 36px !important;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
  }
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  .elevated, .card-neo {
    margin-bottom: 1rem;
  }
  .timeline-item .row {
    flex-direction: column;
  }
  .timeline-item .col-md-2 {
    margin-bottom: 0.5rem;
  }
  .form-control, .form-select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  .btn-lg {
    padding: 0.75rem 1.5rem;
  }
  .table-responsive {
    font-size: 0.875rem;
  }
  
  /* Footer mobile styles */
  footer .logo-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  footer .col-lg-4, footer .col-lg-3, footer .col-lg-2 {
    margin-bottom: 2rem;
  }
  footer h6 {
    text-align: center;
  }
  footer h6::after {
    left: 50%;
    transform: translateX(-50%);
  }
  footer .d-flex.gap-3 {
    justify-content: center;
  }
  footer .info-item:hover {
    padding-left: 0.5rem;
    justify-content: center;
  }
  footer .copyright-section {
    text-align: center;
  }
  footer .copyright-section .col-md-6:last-child {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  /* Tablets */
  .hero-section {
    min-height: 50vh;
  }
  .hero-section h1 {
    font-size: 3rem !important;
  }
  .countdown-card .cd-box span {
    font-size: 1.2rem;
  }
  .stat-pill {
    padding: 0.75rem;
  }
  .member-card {
    margin-bottom: 1rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 992px) {
  /* Small laptops */
  .hero-section .container {
    padding: 0 2rem;
  }
  footer .row {
    text-align: center;
  }
  footer .col-lg-2, footer .col-lg-3, footer .col-lg-4 {
    margin-bottom: 2rem;
  }
  footer .logo-section {
    margin-bottom: 2rem;
  }
  footer h6::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-width: 1200px) {
  /* Large screens */
  .container {
    max-width: 1140px;
  }
  .hero-section h1 {
    font-size: 4.5rem !important;
  }
}

/* Dashboard & Profile Styles */
.dashboard-welcome {
  background: linear-gradient(135deg, #003F8A 0%, #E94800 50%, #EEB319 100%);
}

.avatar-upload-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dee2e6;
}

.avatar-upload-zone {
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-upload-zone.hidden {
  display: none;
}

/* Account verification styles */
.border-warning {
  border-color: #ffc107 !important;
  border-width: 2px !important;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

.verification-status {
  transition: all 0.3s ease;
}

.verification-status:hover {
  transform: translateY(-1px);
}

/* Badge generation */
.badge-card{
  width: 280px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: #fff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.badge-card .badge-header{
  background: linear-gradient(135deg, var(--fale-primary), var(--fale-secondary));
  color: #fff;
  padding: 12px;
  text-align: center;
}
.badge-card .badge-body{ padding: 16px; }
.badge-card .badge-footer{ padding: 12px; text-align:center; font-size: 11px; color:#6b7280; border-top:1px dashed #e5e7eb }
.badge-card .badge-avatar{ 
  width:80px; 
  height:80px; 
  border-radius:50%; 
  object-fit:cover; 
  border:3px solid #fff; 
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  display: block;
  margin: 0 auto;
}
.badge-card .badge-name{ font-weight:800; font-size:16px; margin:8px 0 2px; color:#111827 }
.badge-card .badge-org{ font-size:12px; color:#6b7280 }
.badge-card .badge-id{ display:inline-block; margin-top:8px; font-size:12px; padding:4px 8px; border-radius:8px; background:#f3f4f6; color:#111827; border:1px dashed #e5e7eb }
.badge-card .badge-qr{ display:flex; justify-content:center; padding:8px; }

/* Toast container spacing to avoid header overlap */
.toast-container-custom{ z-index:1080 }

/* Top header gradient bar */
.header-topbar{
  background:linear-gradient(45deg,var(--fale-primary),var(--fale-secondary));
}

/* Coming soon */
.coming-hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  color:#fff;
  background:linear-gradient(135deg, var(--fale-primary) 0%, var(--fale-secondary) 50%, var(--fale-tertiary) 100%);
}
.coming-pill{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .875rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.15);
  color:#fff;
}
.coming-card{ background:#fff; border:1px solid var(--card-border); border-radius:var(--radius-lg); box-shadow:var(--card-shadow); }
.opacity-95{ opacity:.95 }
.text-fale-primary{ color: var(--fale-primary) }
.coming-logo{ max-height:300px }

/* Avatar upload (moved from page-level style) */
.avatar-upload-container .border-dashed{ border-style:dashed !important; border-width:2px }
.avatar-upload-zone:hover{ background-color:#f8f9fa !important; border-color:#007bff !important; transform:translateY(-2px) }
.avatar-upload-zone:hover i{ color:#007bff !important }
.avatar-upload-zone:hover p{ color:#007bff !important }
.avatar-upload-zone.drag-over{ background-color:#e3f2fd !important; border-color:#2196f3 !important }
.avatar-preview-fade{ animation: fadeIn .3s ease-in-out }
@keyframes fadeIn{ from{ opacity:0; transform:scale(.8) } to{ opacity:1; transform:scale(1) } }


