/* ============================================
   YEKSINA - Styles personnalisés
   ============================================ */

:root {
  color-scheme: light;
  --yk-green: #00723C;
  --yk-dark-green: #00552A;
  --yk-yellow: #FFD700;
  --yk-red: #D71920;
  --yk-white: #FFFFFF;
}

body {
  font-family: 'Open Sans', ui-sans-serif, system-ui;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--yk-dark-green);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 114, 60, 0.3);
}

.btn-flag {
  background: linear-gradient(to right, var(--yk-green), var(--yk-yellow), var(--yk-red));
  color: white;
}

.btn-flag:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(0, 114, 60, 0.1);
  color: var(--yk-dark-green);
}

/* ============================================
   INDICATEUR D'ÉTAPES STYLÉ
   ============================================ */

.progress-container {
  position: relative;
  padding: 40px 0 60px 0;
}

/* Barre de progression */
.progress-bar {
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(to right, #e5e7eb, #e5e7eb);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yk-green), var(--yk-dark-green));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 2px 8px rgba(0, 114, 60, 0.3);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Wrapper des étapes */
.steps-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

/* Indicateur d'étape */
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

/* Cercle de l'étape */
.step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 4px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.step-number {
  font-size: 24px;
  font-weight: 700;
  color: #9ca3af;
  transition: all 0.3s ease;
  position: absolute;
}

.step-check {
  font-size: 28px;
  color: white;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: absolute;
}

/* Étape active */
.step-indicator.active .step-circle {
  background: var(--yk-green);
  border-color: var(--yk-green);
  box-shadow: 0 0 0 8px rgba(0, 114, 60, 0.15), 0 6px 20px rgba(0, 114, 60, 0.3);
  transform: scale(1.1);
}

.step-indicator.active .step-number {
  color: white;
  opacity: 1;
}

.step-indicator.active .step-label {
  color: var(--yk-green);
  font-weight: 700;
  transform: translateY(0);
}

/* Étape complétée */
.step-indicator.completed .step-circle {
  background: var(--yk-dark-green);
  border-color: var(--yk-dark-green);
  box-shadow: 0 4px 16px rgba(0, 85, 42, 0.3);
}

.step-indicator.completed .step-number {
  opacity: 0;
}

.step-indicator.completed .step-check {
  opacity: 1;
  transform: scale(1);
}

.step-indicator.completed .step-label {
  color: var(--yk-dark-green);
  font-weight: 600;
}

/* Label de l'étape */
.step-label {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  max-width: 150px;
  transition: all 0.3s ease;
  transform: translateY(5px);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .progress-bar {
    left: 15%;
    right: 15%;
  }
  
  .step-circle {
    width: 50px;
    height: 50px;
  }
  
  .step-number {
    font-size: 20px;
  }
  
  .step-check {
    font-size: 24px;
  }
  
  .step-label {
    font-size: 12px;
    max-width: 100px;
  }
  
  .steps-wrapper {
    padding: 0 10px;
  }
}

.step-content {
  animation: fadeIn 0.3s ease;
}

.step-content.hidden {
  display: none;
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--yk-green), var(--yk-yellow), var(--yk-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Cards OGR animées */
.ogr-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.ogr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--yk-green), var(--yk-yellow), var(--yk-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.ogr-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.ogr-card:hover::after {
  opacity: 1;
}

.ogr-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 114, 60, 0.15);
}

.ogr-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yk-green), var(--yk-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.ogr-card:hover .ogr-card-icon {
  transform: rotate(360deg) scale(1.1);
}

.ogr-card-cost {
  background: linear-gradient(135deg, rgba(0, 114, 60, 0.1), rgba(255, 215, 0, 0.1));
  border-left: 4px solid var(--yk-green);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--yk-dark-green);
  transition: all 0.3s ease;
}

.ogr-card:hover .ogr-card-cost {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 114, 60, 0.2);
}

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

section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Animation au scroll */
.fade-in-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* Animation pour les éléments qui entrent dans le viewport */
.fade-in-on-scroll.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Délai d'animation pour les cards */
.ogr-card:nth-child(1) { animation-delay: 0.1s; }
.ogr-card:nth-child(2) { animation-delay: 0.2s; }
.ogr-card:nth-child(3) { animation-delay: 0.3s; }
.ogr-card:nth-child(4) { animation-delay: 0.4s; }
.ogr-card:nth-child(5) { animation-delay: 0.5s; }
.ogr-card:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   EFFETS VISUELS
   ============================================ */

/* Gradient animé pour le hero */
.hero-gradient {
  background: linear-gradient(-45deg, var(--yk-green), var(--yk-yellow), var(--yk-red), var(--yk-green));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.logo-rotate-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-rotate {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  animation: spin-slow 18s linear infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
}

.logo-rotate-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%);
  animation: pulse-glow 4s ease-in-out infinite;
  z-index: -1;
}

.logo-orbit {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: orbit-spin 24s linear infinite;
  mix-blend-mode: screen;
}

.logo-orbit--primary {
  border-style: solid;
}

.logo-orbit--secondary {
  inset: -32px;
  border-style: dashed;
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.25);
  animation-duration: 16s;
  animation-direction: reverse;
}

.logo-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  transform: scale(1);
  opacity: 0;
  animation: ripple-wave 6s ease-out infinite;
}

.logo-ripple--delay {
  animation-delay: 3s;
  border-color: rgba(255, 255, 255, 0.25);
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes orbit-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes ripple-wave {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.25;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .logo-rotate-wrapper {
    width: 170px;
    height: 170px;
  }

  .logo-rotate {
    width: 140px;
    height: 140px;
    padding: 10px;
  }

  .logo-orbit {
    inset: -14px;
  }

  .logo-orbit--secondary {
    inset: -24px;
  }

  .logo-ripple {
    border-width: 2px;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Effet de particules flottantes */
.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* Effet de brillance sur les cards */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ============================================
   IMAGES
   ============================================ */

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

section img {
  transition: all 0.3s ease;
  object-fit: cover;
}

section img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Styles pour les textes longs */
.leading-relaxed {
  line-height: 1.75;
}

.text-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

/* Images avec effet de zoom au hover */
.image-zoom {
  overflow: hidden;
  border-radius: 1rem;
}

.image-zoom img {
  transition: transform 0.5s ease;
}

.image-zoom:hover img {
  transform: scale(1.1);
}

/* ============================================
   IMAGE CIRCULAIRE MODERNE
   ============================================ */

.modern-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-image-container .rounded-full {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-image-container:hover .rounded-full {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.modern-image-container:hover .rounded-full img {
  transform: scale(1.1);
}

/* Animation pour les éléments flottants */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Effet de brillance sur les cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

/* ============================================
   FORMES GÉOMÉTRIQUES MODERNES
   ============================================ */

/* Image hexagonale */
.hexagon-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hexagon-shape {
  width: 400px;
  height: 400px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  background: linear-gradient(135deg, var(--yk-green), var(--yk-yellow));
  padding: 8px;
  transition: all 0.4s ease;
}

.hexagon-shape img {
  width: 100%;
  height: 100%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  object-fit: cover;
}

.hexagon-image-container:hover .hexagon-shape {
  transform: rotate(15deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 114, 60, 0.3);
}

/* Image trapézoïdale */
.trapezoid-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trapezoid-shape {
  width: 100%;
  max-width: 600px;
  height: 400px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(135deg, var(--yk-green), var(--yk-yellow), var(--yk-red));
  padding: 8px;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.trapezoid-shape img {
  width: 100%;
  height: 100%;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
  object-fit: cover;
}

.trapezoid-image-container:hover .trapezoid-shape {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* Stats cards modernes */
.stats-card-modern {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.stats-card-modern:hover {
  transform: translateY(-5px);
  border-left-color: var(--yk-green);
  box-shadow: 0 15px 35px rgba(0, 114, 60, 0.15);
}

/* Formulaire moderne */
.modern-form {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
  border: 2px solid transparent;
  background-clip: padding-box;
}

.modern-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, var(--yk-green), var(--yk-yellow), var(--yk-red));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-form:hover::before {
  opacity: 1;
}

/* Card contact moderne */
.modern-contact-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.98));
  border: 2px solid rgba(0, 114, 60, 0.1);
  transition: all 0.3s ease;
}

.modern-contact-card:hover {
  border-color: var(--yk-green);
  box-shadow: 0 20px 40px rgba(0, 114, 60, 0.1);
  transform: translateY(-5px);
}

/* Logos des partenaires */
.partner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-logo-container:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.partner-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-logo-container:hover .partner-logo {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

@media (max-width: 768px) {
  .ogr-card {
    margin-bottom: 1rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  section img {
    margin-top: 1rem;
  }
  
  .modern-image-container .rounded-full {
    width: 240px !important;
    height: 240px !important;
  }
  
  .modern-image-container .absolute {
    display: none;
  }
  
  .hexagon-shape {
    width: 280px !important;
    height: 280px !important;
  }
  
  .trapezoid-shape {
    height: 250px !important;
  }
  
  .partner-logo-container {
    padding: 0.75rem;
  }
  
  .partner-logo {
    max-height: 60px;
  }
}

/* ============================================
   TRANSITIONS GLOBALES
   ============================================ */

* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Amélioration de la lisibilité */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--yk-green);
  box-shadow: 0 0 0 3px rgba(0, 114, 60, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   BOUTON WHATSAPP FLOTTANT
   ============================================ */

.whatsapp-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-floating:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.45);
}

.whatsapp-floating svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-floating {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
  }
}

