:root {
  /* Brand Colors from Logo */
  --color-green: #0a6b32;
  --color-green-light: #16934a;
  --color-blue: #0b2b5c;
  --color-blue-light: #1a4a98;
  --color-red: #d3121b;
  --color-yellow: #f2a900;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-600: #475569;
  --color-text-dark: #0f172a;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1200px;
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --box-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

/* Header & Navbar */
.header {
  background-color: var(--color-white);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-info {
  display: flex;
  gap: 1.5rem;
}

.header-top-info i {
  margin-right: 0.5rem;
  color: var(--color-yellow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img {
  height: 60px;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--color-blue);
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-blue);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-green);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--color-blue);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--color-blue);
  padding: 8rem 0;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-bg-layer.active {
  opacity: 1;
  animation: heroZoom 10s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11, 43, 92, 0.82), rgba(11, 43, 92, 0.72));
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-gray-100);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Sections General */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--color-red);
  margin: 1rem auto;
  border-radius: 2px;
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1rem;
  font-size: 1.5rem;
  color: var(--color-green);
}

.card-content {
  padding: 0 2rem 2rem;
  text-align: center;
}

.card h3 {
  color: var(--color-blue);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 4px solid var(--color-yellow);
  border-radius: var(--border-radius);
  transform: translate(15px, 15px);
  z-index: -1;
}

.about-text h2 {
  font-size: 2.25rem;
  color: var(--color-blue);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-gray-600);
}

.list-check {
  margin: 1.5rem 0;
}

.list-check li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.list-check i {
  color: var(--color-green);
  margin-right: 0.75rem;
}

/* Call to Action */
.cta-section {
  background-color: var(--color-green);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-yellow);
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 30px; height: 2px;
  background-color: var(--color-green-light);
}

.footer-col p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: var(--color-yellow);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white);
}

.social-links a:hover {
  background-color: var(--color-green);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-blue);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(10, 107, 50, 0.1);
}

/* Alerts (form feedback) */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert ul {
  list-style: disc;
  margin: 0.5rem 0 0 1.25rem;
}

.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-control.is-invalid {
  border-color: var(--color-red);
}

/* News / Actualités */
.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .news-image img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-body {
  padding: 1.5rem 1.75rem 1.75rem;
  text-align: left;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-gray-600);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.news-body h3 {
  text-align: left;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.news-body p {
  text-align: left;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--color-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.news-link:hover {
  color: var(--color-red);
  gap: 0.75rem;
}

/* Moving gallery marquee (home) */
.gallery-marquee {
  position: relative;
  overflow: hidden;
}

.gallery-marquee::before,
.gallery-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.gallery-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-light), transparent);
}

.gallery-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}

.gallery-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  width: 300px;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: block;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.marquee-item:hover img {
  transform: scale(1.08);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

@media (max-width: 768px) {
  .marquee-item { width: 200px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-bg-layer.active { animation: none; }
}

/* Announcements (bell + modal) */
.announcement-bell {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-red);
  color: var(--color-white);
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(211, 18, 27, 0.5);
  transition: var(--transition);
  animation: bellPulse 2.5s infinite;
}

.announcement-bell:hover {
  transform: scale(1.08);
  background-color: var(--color-blue);
}

.announcement-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--color-yellow);
  color: var(--color-text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-white);
}

@keyframes bellPulse {
  0% { box-shadow: 0 0 0 0 rgba(211, 18, 27, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(211, 18, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 18, 27, 0); }
}

.announcement-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2500;
  padding: 1.5rem;
}

.announcement-modal.open {
  display: flex;
}

.announcement-panel {
  background: var(--color-white);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: announcementIn 0.35s ease;
}

@keyframes announcementIn {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.announcement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.announcement-head h3 {
  color: var(--color-blue);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.announcement-head h3 i {
  color: var(--color-red);
}

.announcement-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.announcement-close:hover {
  color: var(--color-red);
  transform: rotate(90deg);
}

.announcement-list {
  overflow-y: auto;
  padding: 0.25rem 0;
}

.announcement-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-100);
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-date {
  color: var(--color-gray-600);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.announcement-item h4 {
  color: var(--color-blue);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.announcement-item p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

.announcement-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  background: var(--color-gray-100);
  color: var(--color-green);
  font-weight: 600;
  font-size: 0.88rem;
}

.announcement-attachment:hover {
  background: var(--color-green);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .announcement-bell { bottom: 1rem; right: 1rem; width: 50px; height: 50px; font-size: 1.2rem; }
  .announcement-panel { max-height: 90vh; }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bell { animation: none; }
  .announcement-panel { animation: none; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.75rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { margin-bottom: 2rem; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-links {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
  
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: 2rem; }
}
