/* =============================================
   STYLES DE BASE AMÉLIORÉS
   ============================================= */

/* Styles de navigation inspirés de Eversun */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-right: auto; /* Pousse le menu vers la droite */
  padding-left: 0; /* Enlève tout padding à gauche */
  margin-left: -80px; /* Déplace encore plus vers la gauche */
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-icon {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(3, 169, 244, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Effet de halo bleu au survol */
.brand-icon::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid rgba(3, 169, 244, 0.5);
  opacity: 0;
  transition: all 0.5s ease;
}

.brand:hover .brand-icon::after {
  opacity: 1;
  transform: scale(1.1);
}

.brand:hover .brand-icon {
  transform: rotate(10deg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.brand-icon img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span:first-child {
  font-size: 0.9rem; /* Réduit de 1rem à 0.9rem */
  color: var(--color-primary);
  font-weight: 600;
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.brand-text strong {
  font-size: 1.1rem; /* Réduit de 1.3rem à 1.1rem */
  color: var(--color-secondary);
  font-weight: 700; /* Légèrement réduit le poids de la police */
  white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

/* Menu de navigation principal */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0 0.5rem;
  position: relative;
}

.nav-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem; /* Taille de police d'origine */
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Bouton d'appel à l'action */
.cta-button {
  margin-left: 1.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-primary);
}

.cta-button:hover {
  background: transparent;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 107, 168, 0.3);
}

/* Menu mobile */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

/* Styles pour l'écran de petite taille */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    padding: 5rem 1.5rem 2rem;
    z-index: 1000;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .nav-menu li {
    margin: 0.25rem 0;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(30, 107, 168, 0.05);
    color: var(--color-primary);
  }
  
  .cta-button {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* Animation de la barre de chargement */
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animation de révélation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:root {
  --color-primary: #1e6ba8;
  --color-primary-dark: #144a73;
  --color-secondary: #0a2342;
  --color-accent: #219ebc;
  --color-white: #ffffff;
  --color-light: #f8fafc;
  --color-gray: #94a3b8;
  --color-dark: #1e293b;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --gradient-dark: linear-gradient(135deg, var(--color-secondary), var(--color-primary-dark));
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--color-dark);
  line-height: 1.7;
  background-color: var(--color-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

/* =============================================
   SECTION HÉRO
   ============================================= */
.hero {
  padding: 8rem 0 6rem;
  background-color: #03A9F4; /* Bleu azur vif */
  background-image: linear-gradient(135deg, #29B6F6 0%, #03A9F4 100%);
  color: #ffffff; /* Texte blanc pour un meilleur contraste */
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e3f2fd; /* Texte blanc cassé pour un meilleur contraste */
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* =============================================
   BOUTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 107, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 107, 168, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* =============================================
   CARTES DE SERVICES
   ============================================= */
.service-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(30, 107, 168, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
  transform: rotateY(180deg);
}

/* =============================================
   TÉMOIGNAGES
   ============================================= */
.testimonial-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(30, 107, 168, 0.1);
  line-height: 1;
  z-index: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.testimonial-card:hover::before {
  transform: scale(1.1);
  color: rgba(30, 107, 168, 0.2);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.testimonial-rating i {
  color: #FFD700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.testimonial-card:hover .testimonial-rating i {
  transform: scale(1.2) rotate(5deg);
}

.testimonial-text {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 3px solid var(--color-primary);
  transition: var(--transition);
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-secondary);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

[data-animate-delay="100"] { animation-delay: 0.1s; }
[data-animate-delay="200"] { animation-delay: 0.2s; }
[data-animate-delay="300"] { animation-delay: 0.3s; }
[data-animate-delay="400"] { animation-delay: 0.4s; }
[data-animate-delay="500"] { animation-delay: 0.5s; }
[data-animate-delay="600"] { animation-delay: 0.6s; }

/* =============================================
   CARTES "À PROPOS"
   ============================================= */
.about-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 1.8rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 107, 168, 0.3);
}

.about-card:hover i {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(30, 107, 168, 0.4);
}

.about-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-card p {
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   CARTES D'ACTIVITÉS
   ============================================= */
.activity-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.activity-media {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.activity-media img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.activity-card:hover .activity-media img {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.activity-content {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-content h3 {
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.activity-content p {
  color: var(--color-gray);
  margin-bottom: 1rem;
  flex: 1;
}

/* =============================================
   LOGOS
   ============================================= */
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Style spécifique pour le logo du header */
.header .brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header .brand-icon {
  width: 50px;
  height: 50px;
}

/* Style spécifique pour le logo du footer */
.footer .brand-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Effet de survol */
.brand:hover .brand-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Style du texte de la marque */
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-weight: 700;
  font-size: 1.2rem;
  color: inherit;
}

.brand-text span:last-child {
  font-size: 0.9rem;
  opacity: 0.8;
  color: inherit;
}

/* Style spécifique pour le footer */
.footer .brand-text {
  color: white;
}

/* =============================================
   RÉACTIVITÉ
   ============================================= */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
