
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pacifico&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');



/* ===== VARIABLES ET STYLES GÉNÉRAUX ===== */
:root {
  --primary-dark: #0e2a3a;
  --primary-medium: #1a5276;
  --primary-light: #2980b9;
  --accent-gold: #d4af37;
  --accent-sand: #f5d76e;
  --text-dark: #2c3e50;
  --text-medium: #555;
  --text-light: #7f8c8d;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-medium), var(--primary-light));
  --gradient-gold: linear-gradient(135deg, var(--accent-gold), var(--accent-sand));
  --border-radius: 15px;
  --border-radius-lg: 25px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --box-shadow: 0 10px 30px var(--shadow-medium);
  --box-shadow-lg: 0 20px 50px var(--shadow-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  color: var(--text-dark);
  background-color: var(--background-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ÉCRAN DE CHARGEMENT ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo img {
  height: 80px;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.loading-text {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.loading-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: textReveal 0.5s forwards;
}

.loading-text span:nth-child(1) { animation-delay: 0.1s; }
.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.3s; }
.loading-text span:nth-child(4) { animation-delay: 0.4s; }
.loading-text span:nth-child(5) { animation-delay: 0.5s; }
.loading-text span:nth-child(6) { animation-delay: 0.6s; }
.loading-text span:nth-child(7) { animation-delay: 0.7s; }
.loading-text span:nth-child(8) { animation-delay: 0.8s; }
.loading-text span:nth-child(9) { animation-delay: 0.9s; }
.loading-text span:nth-child(10) { animation-delay: 1.0s; }
.loading-text span:nth-child(11) { animation-delay: 1.1s; }

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: white;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* ===== NAVIGATION AMÉLIORÉE ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 30px var(--shadow-light);
  z-index: 1000;
  transition: var(--transition);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--primary-medium);
  font-style: italic;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-medium);
  background: rgba(26, 82, 118, 0.1);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-medium);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--primary-medium);
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--primary-medium);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-medium);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.language-selector select {
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-dark);
  transition: var(--transition);
}

/* ===== SECTION VIDÉO HÉRO AMÉLIORÉE ===== */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #0e2a3a url('../Img/NRI2.jpg') center/cover no-repeat;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(14, 42, 58, 0.7) 0%,
    rgba(26, 82, 118, 0.5) 50%,
    rgba(14, 42, 58, 0.7) 100%
  );
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: white;
  z-index: 3;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 1s ease;
}

.hero-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 300;
  animation: fadeInUp 1.2s ease;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  animation: fadeInUp 1.4s ease;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1.6s ease;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
  background-position: right center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.scroll-arrow {
  width: 2px;
  height: 20px;
  background: white;
  margin: 0 auto;
  position: relative;
}

.scroll-arrow:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

.quick-info {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInRight 1.5s ease;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
}

.info-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== SECTION INTRODUCTION ===== */
.intro-section {
  padding: 100px 0;
  background: var(--background-light);
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.intro-text h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

.intro-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.intro-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-medium);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.intro-image {
  flex: 1;
  position: relative;
}

.image-frame {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
  transition: var(--transition);
}

.image-frame:hover {
  transform: scale(1.02);
}

.image-frame img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  top: 20px;
  right: -20px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  max-width: 200px;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.floating-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.floating-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* ===== BOUTON RETOUR EN HAUT ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-medium);
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--box-shadow-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .intro-content {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    gap: 1.5rem;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .nav-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .quick-info {
    position: relative;
    bottom: auto;
    right: auto;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
  }
  
  .intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .intro-text h2:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .intro-stats {
    justify-content: center;
  }
  
  .floating-card {
    right: 20px;
  }
}

@media (max-width: 576px) {
  .nav-brand {
    gap: 0.8rem;
  }
  
  .logo {
    height: 50px;
  }
  
  .brand-title {
    font-size: 1rem;
  }
  
  .brand-subtitle {
    font-size: 0.7rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .quick-info {
    flex-direction: column;
    padding: 1rem;
  }
  
  .intro-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .floating-card {
    position: relative;
    right: auto;
    margin-top: 1rem;
    max-width: 100%;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
}