:root {
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --primary-dark: #142840;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --congo: #065f46;
  --congo-light: #059669;
  --congo-dark: #064e3b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --black: #000000;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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


.site-header {
  background-color: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branding-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.branding-text {
  font-weight: 700;
  font-size: 1.125rem;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--white);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  background: none;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s;
}

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

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary-dark));
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-bg-blob-1 {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background-color: var(--accent);
  border-radius: 9999px;
  filter: blur(64px);
}

.hero-bg-blob-2 {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background-color: var(--white);
  border-radius: 9999px;
  filter: blur(64px);
}

.hero-content {
  position: relative;
  padding: 6rem 1rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 1rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.5rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.btn-icon-right {
  margin-left: 0.5rem;
}

.section {
  padding: 5rem 0;
}

.section-white {
  background-color: var(--white);
}

.section-gray {
  background-color: var(--gray-50);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  color: var(--gray-500);
  max-width: 36rem;
  margin: 0 auto 4rem;
  text-align: center;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-card {
  display: block;
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.event-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.event-card-image {
  position: relative;
  height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-card-image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.event-card:hover .event-card-image-overlay {
  background-color: rgba(0, 0, 0, 0.1);
}

.event-card-bg-icon {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  opacity: 0.3;
  font-size: 8rem;
}

.event-card-image-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 1.5rem;
}

.event-card-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  backdrop-filter: blur(4px);
}

.event-card-icon {
  font-size: 1.5rem;
}

.event-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.event-card-year {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.event-card-body {
  padding: 1.5rem;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.event-card-meta-icon {
  font-size: 0.75rem;
}

.event-card-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.625;
  margin: 0;
}

.event-card-link {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  gap: 0.25rem;
  transition: gap 0.2s;
}

.event-card:hover .event-card-link {
  gap: 0.5rem;
}

.event-card-link-icon {
  transition: margin 0.2s;
}

.event-card:hover .event-card-link-icon {
  margin-left: 0.25rem;
}

.newsletter {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.newsletter-icon {
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.newsletter-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem;
}

.newsletter-text {
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-300);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.newsletter-input:focus {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: transparent;
}

.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-branding-icon {
  color: var(--accent);
}

.footer-branding-text {
  font-weight: 600;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-align: center;
}

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

[data-lang="fr"] {
  display: none;
}

.lang-fr [data-lang="en"] {
  display: none;
}

.lang-fr [data-lang="fr"] {
  display: inline;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: none;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-icon-left {
  margin-right: 0.5rem;
}

.register-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.register-modal {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 28rem;
  margin: 1rem;
  padding: 1.5rem;
  position: relative;
  animation: modalFadeIn 0.2s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

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

.register-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--gray-100);
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
}

.register-modal-close:hover {
  background: var(--gray-200);
}

.register-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.register-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(6, 95, 70, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--congo);
  font-size: 1.5rem;
}

.register-modal-icon .fa-user-plus {
  font-size: 1.5rem;
}

.register-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--congo);
}

.register-modal-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.register-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.register-modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.register-modal-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.register-modal-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.register-modal-input:focus {
  box-shadow: 0 0 0 2px var(--congo);
  border-color: transparent;
}

.register-modal-message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
}

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

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

.register-modal-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--congo);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.register-modal-submit:hover {
  background: var(--congo-light);
}

.register-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


