/* =============================================
   SAMSUC - Styles Principaux
   ============================================= */

:root {
  --primary:    #1a3a6b;
  --secondary:  #e63946;
  --accent:     #f4a261;
  --light:      #f8f9fa;
  --dark:       #0d1b2a;
  --text:       #333;
  --text-light: #666;
  --white:      #ffffff;
  --shadow:     0 4px 20px rgba(0, 0, 0, 0.12);
  --radius:     12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 58, 107, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: var(--transition);
}

.navbar.scrolled {
  height: 60px;
  background: var(--primary);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-brand .logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-brand .brand-subtitle {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.nav-links .btn-nav {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-links .btn-nav:hover {
  background: #c1121f;
  transform: translateY(-1px);
}

.hamburger { display: none !important; }

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #2a5caa 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -150px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #c1121f);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(230, 57, 70, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 340px;
  height: 420px;
}

.doc-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.doc-card:nth-child(1) {
  width: 260px;
  height: 180px;
  top: 0;
  right: 0;
  animation: float1 4s ease-in-out infinite;
}

.doc-card:nth-child(2) {
  width: 280px;
  height: 190px;
  top: 120px;
  left: 0;
  animation: float2 4s ease-in-out infinite 1s;
}

.doc-card:nth-child(3) {
  width: 240px;
  height: 160px;
  bottom: 0;
  right: 20px;
  animation: float1 4s ease-in-out infinite 2s;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.doc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.icon-pdf { background: rgba(230,57,70,0.3); }
.icon-doc { background: rgba(52,131,235,0.3); }
.icon-sheet { background: rgba(74,198,120,0.3); }

.doc-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.doc-card-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

.doc-card-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 0.8rem;
  overflow: hidden;
}

.doc-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

/* =============================================
   SECTIONS COMMUNES
   ============================================= */

section {
  padding: 80px 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(26,58,107,0.1), rgba(26,58,107,0.05));
  color: var(--primary);
  border: 1px solid rgba(26,58,107,0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title span {
  color: var(--secondary);
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1rem;
}

/* =============================================
   FEATURES / SERVICES
   ============================================= */

.features {
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.feature-icon.blue { background: rgba(26,58,107,0.1); }
.feature-icon.red { background: rgba(230,57,70,0.1); }
.feature-icon.orange { background: rgba(244,162,97,0.1); }
.feature-icon.green { background: rgba(74,198,120,0.1); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* =============================================
   ANNONCE / NEWS
   ============================================= */

.announcements {
  background: var(--white);
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.announcement-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.ann-header {
  padding: 1.5rem 1.5rem 1rem;
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ann-date {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  text-align: center;
  min-width: 50px;
}

.ann-date .day {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.ann-date .month {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ann-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.2rem;
}

.ann-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.ann-body {
  padding: 1.2rem 1.5rem 1.5rem;
}

.ann-excerpt {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ann-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ann-link:hover {
  color: var(--secondary);
  gap: 0.6rem;
}

/* =============================================
   DOCUMENTS QUICK ACCESS
   ============================================= */

.quick-docs {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
}

.quick-docs .section-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.2);
}

.quick-docs .section-title {
  color: var(--white);
}

.quick-docs .section-desc {
  color: rgba(255,255,255,0.7);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.doc-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.doc-item:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.25);
}

.doc-item-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.doc-item-info .doc-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.doc-item-info .doc-item-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.docs-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-section {
  background: var(--light);
  padding: 80px 2rem;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  padding: 4rem 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(26,58,107,0.3);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-box p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 1rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 2rem 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 0.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
}

.footer-contact-item span:first-child {
  font-size: 1rem;
  margin-top: 0.1rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* =============================================
   PAGE DOCUMENTS
   ============================================= */

.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 120px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-banner h1 span {
  color: var(--accent);
}

.page-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.breadcrumb a, .breadcrumb span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}

.breadcrumb .sep {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 600;
}

/* Documents page content */
.docs-page {
  padding: 60px 2rem;
  background: var(--light);
}

.docs-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  font-size: 0.9rem;
  outline: none;
  background: var(--white);
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,58,107,0.08);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Document categories */
.doc-category {
  margin-bottom: 3rem;
}

.doc-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.doc-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.icon-bg-blue { background: rgba(26,58,107,0.1); }
.icon-bg-red { background: rgba(230,57,70,0.1); }
.icon-bg-green { background: rgba(74,198,120,0.1); }
.icon-bg-orange { background: rgba(244,162,97,0.1); }

.doc-category-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
}

.doc-category-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--white);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.08);
}

.doc-list {
  display: grid;
  gap: 0.8rem;
}

.doc-row {
  background: var(--white);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}

.doc-row:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-color: rgba(26,58,107,0.15);
}

.doc-row-icon {
  font-size: 2rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.doc-row-info {
  flex: 1;
}

.doc-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.doc-row-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-row-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.doc-row-badge {
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: rgba(74,198,120,0.15); color: #16a34a; }
.badge-update { background: rgba(52,131,235,0.15); color: #1d6cc8; }
.badge-important { background: rgba(230,57,70,0.15); color: var(--secondary); }

.doc-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-download {
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}

.btn-preview {
  background: transparent;
  color: var(--text-light);
  padding: 0.55rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.btn-preview:hover {
  background: var(--light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Stats bar */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}

.stats-bar-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stats-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.sb-blue { background: rgba(26,58,107,0.1); }
.sb-red { background: rgba(230,57,70,0.1); }
.sb-green { background: rgba(74,198,120,0.1); }

.stats-bar-text .num {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  display: block;
}

.stats-bar-text .lbl {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */

.lang-switcher {
  position: relative;
  margin-left: 0.5rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: var(--transition);
  touch-action: manipulation;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.22);
}

.lang-toggle-arrow {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s;
}

.lang-toggle[aria-expanded="true"] .lang-toggle-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 1100;
  min-width: 90px;
}

.lang-dropdown-menu.open {
  display: block;
}

.lang-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.65rem 1.1rem;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: background 0.15s;
  touch-action: manipulation;
}

.lang-dropdown-item:hover {
  background: var(--light);
}

.lang-dropdown-item.active {
  color: var(--secondary);
  background: rgba(231,76,60,0.07);
}

/* =============================================
   LOADER / SCROLL TO TOP
   ============================================= */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-description { margin: 0 auto 2.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 0.75rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    align-items: center;
  }

  /* Liy 1: logo + SAMSUC — lajè konplè */
  .nav-brand {
    flex: 0 0 100%;
    padding: 0.6rem 0 0.25rem;
  }

  /* Liy 2: lyen navigasyon — flex pou pran espas ki rete */
  .nav-links {
    flex: 1 1 auto;
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.4rem 0 0.5rem;
    gap: 0.25rem;
    transform: none !important;
    opacity: 1 !important;
    background: transparent;
    box-shadow: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex-shrink: 0; }

  .nav-links a {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-links li:has(.btn-nav),
  .nav-links li:has(.btn-nav-admin),
  .nav-links li.hide-mobile {
    display: none;
  }

  /* Liy 2: lang switcher — bò adwat, menm liy ak lyen yo */
  .lang-switcher {
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    margin-left: 0.5rem;
    padding: 0.4rem 0 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  section { padding: 60px 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-box { padding: 3rem 1.5rem; }
  .docs-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .doc-row { flex-wrap: wrap; }
  .stats-bar { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 1.5rem 50px; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .btn-primary, .btn-outline { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .doc-row-actions { width: 100%; }
  .btn-download { flex: 1; justify-content: center; }
}

/* =============================================
   NAVBAR — Admin button
   ============================================= */

.btn-nav-admin {
  background: rgba(244, 162, 97, 0.2);
  color: var(--accent) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid rgba(244, 162, 97, 0.4);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-nav-admin:hover {
  background: var(--accent);
  color: var(--white) !important;
}

/* =============================================
   PORTAL SECTION (index.html)
   ============================================= */

.portal-section {
  background: var(--light);
  padding: 80px 2rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.portal-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}

.portal-card-member { border-color: rgba(26, 58, 107, 0.15); }
.portal-card-inst   { border-color: rgba(244, 162, 97, 0.3); }

.portal-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.portal-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.portal-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.portal-feature-list {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.portal-feature-list li {
  font-size: 0.88rem;
  color: var(--text);
}

.portal-btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: var(--transition);
}

.portal-btn-member {
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 58, 107, 0.3);
}

.portal-btn-member:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 58, 107, 0.4);
  color: var(--white);
}

.portal-btn-inst {
  background: linear-gradient(135deg, var(--accent), #e8832a);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(244, 162, 97, 0.4);
}

.portal-btn-inst:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 162, 97, 0.5);
  color: var(--white);
}

@media (max-width: 640px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* =============================================
   FORMS (shared: member + admin)
   ============================================= */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 58, 107, 0.08);
}

.form-error {
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--secondary);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.form-success {
  background: rgba(74, 198, 120, 0.1);
  border: 1px solid rgba(74, 198, 120, 0.4);
  color: #15803d;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* =============================================
   VERIFY CARD (documents.html)
   ============================================= */

.verify-card {
  max-width: 480px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.verify-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.verify-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.verify-card form { text-align: left; }

/* =============================================
   MEMBER HEADER (documents.html after verify)
   ============================================= */

.member-header {
  background: var(--white);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 1rem;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.member-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.member-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.member-meta {
  font-size: 0.82rem;
  color: var(--text-light);
}

.btn-logout {
  background: transparent;
  border: 2px solid rgba(0,0,0,0.1);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-logout:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* =============================================
   LOADING / EMPTY STATES
   ============================================= */

.loading-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(26, 58, 107, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =============================================
   AUTH SECTION (admin.html)
   ============================================= */

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  padding: 0.3rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-light);
}

.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-card {
  max-width: 480px;
  margin: 0 auto 3rem;
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.auth-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-card form { text-align: left; }

/* =============================================
   DASHBOARD (admin.html)
   ============================================= */

.dash-header {
  background: linear-gradient(135deg, var(--primary), #2a5caa);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-avatar {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.dash-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.dash-header .member-meta { color: rgba(255,255,255,0.7); }

.dash-header .btn-logout {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.dash-header .btn-logout:hover {
  border-color: var(--white);
  color: var(--white);
}

.dash-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.04);
}

.dash-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.dash-section-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.dash-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.btn-refresh {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-refresh:hover {
  background: var(--light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* File drop zone */
.file-drop-zone {
  position: relative;
  border: 2px dashed rgba(26, 58, 107, 0.25);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: rgba(26, 58, 107, 0.02);
  transition: var(--transition);
  cursor: pointer;
}

.file-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(26, 58, 107, 0.04);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  box-shadow: none;
}

.file-drop-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.file-drop-inner p { font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.file-drop-hint { font-size: 0.78rem; color: var(--text-light); }

.file-chosen {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* Admin doc row */
.admin-doc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--light);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}

.admin-doc-row:hover {
  border-color: rgba(26, 58, 107, 0.15);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.admin-doc-icon { font-size: 1.8rem; flex-shrink: 0; }

.admin-doc-info { flex: 1; min-width: 0; }

.admin-doc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-doc-meta {
  font-size: 0.76rem;
  color: var(--text-light);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-doc-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-delete {
  background: transparent;
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--secondary);
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .admin-doc-row { flex-wrap: wrap; }
  .admin-doc-actions { width: 100%; }
}

