/* ============================================
   CLASS-MARKET - ABOUT PAGE CSS
   About Page Animations & Styling
============================================ */

/* ============================================
   ABOUT SECTION
============================================ */

.about {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(120, 219, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

/* Section header animations */
.section-header {
  animation: fadeInDown 0.8s ease-out;
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-title {
  animation: textGlow 4s ease-in-out infinite alternate;
}

.section-header .section-subtitle {
  animation: fadeInUp 0.8s ease-out 0.2s both;
  color: rgba(0, 0, 0, 0.8) !important;
}

/* ============================================
   ABOUT CONTENT LAYOUT
============================================ */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* ============================================
   ABOUT TEXT SECTION
============================================ */

.about-text {
  animation: fadeInLeft 0.9s ease-out;
}

.ncontainer {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
}

.ncontainer .floating {
  width: 80%;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
  animation: 
    floatImage 4s ease-in-out infinite,
    imageGlow 3s ease-in-out infinite;
  border: 3px solid rgba(59, 130, 246, 0.5);
  flex-shrink: 0;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes imageGlow {
  0%, 100% { 
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
  }
  50% { 
    box-shadow: 0 20px 80px rgba(59, 130, 246, 0.6);
    border-color: rgba(59, 130, 246, 0.8);
  }
}

.contenu {
  flex: 1;
}

.contenu h2 {
  color: rgb(8, 56, 187);
  font-size: 2rem;
  margin-bottom: 20px;
  animation: slideInRight 0.8s ease-out;
  background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contenu p {
  color: rgba(0, 36, 136, 0.85);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  animation: fadeInUp 0.9s ease-out;
}

.contenu p.linear {
  animation: fadeInUp 0.9s ease-out 0.1s both;
}

/* ============================================
   VALUES SECTION
============================================ */

.about-values {
  margin-top: 50px;
  animation: fadeInUp 1s ease-out 0.3s both;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-values h3 {
  color: rgb(0, 0, 0);
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-values h3::before {
  content: '';
  width: 4px;
  height: 30px;
  background: linear-gradient(180deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
  animation: growHeight 0.8s ease-out;
}

@keyframes growHeight {
  from { height: 0; }
  to { height: 30px; }
}

.about-values ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-values li {
  color: rgba(2, 92, 209, 0.8);
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
  animation: slideInLeft 0.7s ease-out;
  animation-fill-mode: both;
}

.about-values li:nth-child(1) { animation-delay: 0.1s; }
.about-values li:nth-child(2) { animation-delay: 0.2s; }
.about-values li:nth-child(3) { animation-delay: 0.3s; }
.about-values li:nth-child(4) { animation-delay: 0.4s; }
.about-values li:nth-child(5) { animation-delay: 0.5s; }

.about-values li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #06b6d4;
  font-weight: bold;
  font-size: 1.2rem;
  animation: checkMark 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkMark {
  0% { transform: scale(0) rotate(-45deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.about-values li strong {
  color: #06b6d4;
}

/* ============================================
   STATS SECTION
============================================ */

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 50px 0;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(0, 212, 255, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.stat:hover {
  transform: translateY(-10px) scale(1.05);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(0, 212, 255, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0ea5e9;
  margin-bottom: 10px;
  font-family: var(--font-display);
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-label {
  display: block;
  color: rgba(2, 90, 172, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================
   CTA SECTION
============================================ */

.cta-section {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.5s both;
  flex-wrap: wrap;
}

.cta-section .btn {
  flex: 1;
  min-width: 200px;
  animation: pulse 2s ease-in-out infinite;
}

.cta-section .btn:hover {
  animation: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

/* ============================================
   ABOUT IMAGE SECTION
============================================ */

.about-image {
  animation: fadeInRight 0.9s ease-out;
}

.about-features-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-mini-card {
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
  backdrop-filter: blur(10px);
}

.feature-mini-card:nth-child(1) { animation-delay: 0s; }
.feature-mini-card:nth-child(2) { animation-delay: 0.1s; }
.feature-mini-card:nth-child(3) { animation-delay: 0.2s; }

.feature-mini-card:hover {
  transform: translateY(-15px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(59, 130, 246, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.feature-mini-card .icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: iconBounce 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.feature-mini-card:hover .icon {
  animation: iconBounce 2s ease-in-out infinite, iconSpin 0.6s ease-out;
}

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

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.feature-mini-card h4 {
  color: rgb(8, 63, 146);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-mini-card p {
  color: rgba(2, 90, 172, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */

.testimonials-section {
  margin-top: 100px;
  animation: fadeInUp 1s ease-out;
}

.testimonials-section .section-title {
  animation: textGlow 4s ease-in-out infinite alternate;
  margin-bottom: 50px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.testimonial-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideInUp 0.8s ease-out;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:nth-child(3) { animation-delay: 0.2s; }

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.testimonial-card:hover {
  transform: translateY(-12px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(59, 130, 246, 0.15));
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
}

.testimonial-card .stars {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 15px;
  letter-spacing: 3px;
  animation: starPulse 2s ease-in-out infinite;
}

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

.testimonial-card p {
  color: rgba(2, 38, 196, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-card p::before {
  content: '"';
  font-size: 2.5rem;
  color: rgba(59, 130, 246, 0.3);
  position: absolute;
  top: -10px;
  left: -10px;
}

.customer {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.customer strong {
  color: rgb(2, 63, 194);
  font-weight: 700;
  margin-bottom: 5px;
}

.customer span {
  color: rgba(59, 130, 246, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
}

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

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

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

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

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

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

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

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

@keyframes textGlow {
  0% {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  100% {
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

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

/* Tablet - Mode paysage & petit desktop */
@media (max-width: 1024px) {
  .about-content {
    gap: 40px;
  }

  .about-stats {
    gap: 15px;
  }

  .stat {
    padding: 25px;
  }

  .feature-mini-card {
    padding: 20px;
  }
}

/* Tablet & Large Mobile */
@media (max-width: 768px) {
  .about {
    padding: 60px 0 40px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .section-header .section-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ncontainer {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .ncontainer .floating {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  .contenu h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .contenu p {
    font-size: 0.95rem;
  }

  .about-values {
    padding: 25px;
  }

  .about-values h3 {
    font-size: 1.3rem;
  }

  .about-values li {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 40px 0;
  }

  .stat {
    padding: 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .cta-section {
    flex-direction: column;
    gap: 15px;
  }

  .cta-section .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .about-image {
    padding: 0 10px;
  }

  .about-features-cards {
    gap: 15px;
  }

  .feature-mini-card {
    padding: 20px;
  }

  .feature-mini-card h4 {
    font-size: 1rem;
  }

  .feature-mini-card p {
    font-size: 0.85rem;
  }

  .feature-mini-card .icon {
    font-size: 2.2rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-card {
    padding: 25px;
  }

  .testimonial-card p {
    font-size: 0.95rem;
  }
}

/* Mobile - Medium */
@media (max-width: 600px) {
  .about {
    padding: 50px 0 30px;
  }

  .section-header {
    margin-bottom: 35px;
  }

  .section-header br {
    display: none;
  }

  .section-header .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 12px;
  }

  .section-header .section-subtitle {
    font-size: 0.9rem;
  }

  .ncontainer {
    gap: 15px;
  }

  .ncontainer .floating {
    width: 140px;
    height: 140px;
  }

  .contenu h2 {
    font-size: 1.3rem;
  }

  .contenu p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .about-values {
    padding: 20px;
    margin-top: 30px;
  }

  .about-values h3 {
    font-size: 1.1rem;
  }

  .about-values h3::before {
    height: 20px;
  }

  .about-values li {
    font-size: 0.88rem;
    padding-left: 25px;
    margin-bottom: 10px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 30px 0;
  }

  .stat {
    padding: 18px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .cta-section {
    gap: 10px;
  }

  .cta-section .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    min-width: auto;
  }

  .feature-mini-card {
    padding: 15px;
  }

  .feature-mini-card .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .feature-mini-card h4 {
    font-size: 0.9rem;
  }

  .feature-mini-card p {
    font-size: 0.8rem;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card .stars {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .testimonial-card p {
    font-size: 0.9rem;
  }

  .customer strong {
    font-size: 0.9rem;
  }

  .customer span {
    font-size: 0.75rem;
  }
}

/* Mobile - Small */
@media (max-width: 420px) {
  .about {
    padding: 40px 0 25px;
  }

  .container {
    padding: 0 12px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header .section-title {
    font-size: 1.4rem;
  }

  .section-header .section-subtitle {
    font-size: 0.85rem;
  }

  .ncontainer {
    gap: 12px;
  }

  .ncontainer .floating {
    width: 120px;
    height: 120px;
    border-radius: 15px;
  }

  .contenu h2 {
    font-size: 1.1rem;
  }

  .contenu p {
    font-size: 0.85rem;
  }

  .about-values {
    padding: 15px;
    margin-top: 25px;
  }

  .about-values h3 {
    font-size: 1rem;
  }

  .about-values li {
    font-size: 0.8rem;
    padding-left: 22px;
    margin-bottom: 8px;
  }

  .about-values li::before {
    font-size: 1rem;
  }

  .about-stats {
    gap: 10px;
    margin: 25px 0;
  }

  .stat {
    padding: 15px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .cta-section {
    flex-direction: column;
    gap: 8px;
  }

  .cta-section .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .feature-mini-card {
    padding: 12px;
  }

  .feature-mini-card .icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  .feature-mini-card h4 {
    font-size: 0.85rem;
  }

  .feature-mini-card p {
    font-size: 0.75rem;
  }

  .testimonials-section {
    margin-top: 60px;
  }

  .testimonials-section .section-title {
    font-size: 1.3rem;
    margin-bottom: 35px;
  }

  .testimonial-card {
    padding: 15px;
  }

  .testimonial-card .stars {
    font-size: 1rem;
  }

  .testimonial-card p {
    font-size: 0.85rem;
  }

  .testimonial-card p::before {
    font-size: 1.8rem;
  }

  .customer strong {
    font-size: 0.85rem;
  }

  .customer span {
    font-size: 0.7rem;
  }

  /* Réduire les animations sur petit mobile */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }
}
