/* style.css — Diagnopsy Premium Design */
:root {
  /* Couleurs : bleu foncé uniquement */
  --primary: #0b3d91; /* bleu foncé */
  --secondary: #0b3d91; /* bleu foncé (remplace violet) */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --border-radius: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container {
  width: 66px;
  height: 66px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  display: block;
  filter: brightness(1.1) contrast(1.15) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
  font-style: italic;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.7;
}

/* BUTTONS */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  width: 300px;
  height: 300px;
  background: transparent;
  backdrop-filter: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  border: none;
  perspective: 1200px;
}

.brain-icon {
  width: 240px;
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)) brightness(1.1) contrast(1.15);
  background: transparent;
  animation: rotate3D 8s linear infinite, pulse 2s ease-in-out infinite;
  transform-style: preserve-3d;
}

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

@keyframes rotate3D {
  0% { 
    transform: rotateY(0deg) rotateX(0deg);
  }
  25% { 
    transform: rotateY(90deg) rotateX(10deg);
  }
  50% { 
    transform: rotateY(180deg) rotateX(0deg);
  }
  75% { 
    transform: rotateY(270deg) rotateX(-10deg);
  }
  100% { 
    transform: rotateY(360deg) rotateX(0deg);
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)) brightness(1.25) contrast(1.15);
  }
  50% { 
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4)) brightness(1.3) contrast(1.2);
  }
}

/* SERVICES SECTION */
.services {
  padding: 80px 20px;
  background: white;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s;
  border-top: 4px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* ABOUT SECTION */
.about-section {
  padding: 80px 20px;
  background: var(--light);
}

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

.about-text h3 {
  font-size: 1.5rem;
  margin: 25px 0 15px;
  color: var(--primary);
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 15px;
}

.mission-list {
  list-style: none;
  margin: 20px 0;
}

.mission-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  color: var(--dark);
  font-weight: 500;
}

.mission-list i {
  color: var(--success);
  font-size: 1.2rem;
}

.info-box {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.info-box h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--primary);
}

.sustainability-list {
  list-style: none;
}

.sustainability-list li {
  padding: 8px 0;
  color: var(--gray);
  border-bottom: 1px solid #e5e7eb;
}

.sustainability-list li:last-child {
  border-bottom: none;
}

/* STATS SECTION */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, #0052a3 100%);
  color: white;
  padding: 60px 20px;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  width: 100%;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* TESTIMONIALS SECTION */
.testimonials {
  padding: 80px 20px;
  background: var(--light);
}

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

.testimonial-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.testimonial-categories .cat-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
  border-radius: 24px;
  color: var(--muted);
  cursor: pointer;
}
.testimonial-categories .cat-btn.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.04));
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.testimonial-card .testimonial-text {
  font-size: 15px;
  color: var(--muted);
  margin: 10px 0;
}
.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.author-avatar i {
  font-size: 36px;
  color: var(--accent);
}
.author-name {
  font-weight: 600;
  color: #fff;
}
.author-role {
  font-size: 13px;
  color: var(--muted);
}
.animated-entry {
  animation: scaleIn .6s ease both;
}
.animated-exit {
  animation: mosaicOut .6s ease both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.95) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes mosaicOut {
  0% {
    filter: none;
    opacity: 1;
    transform: scale(1);
  }
  50% {
    filter: blur(2px) saturate(.8);
    opacity: .6;
    transform: scale(.98);
  }
  100% {
    opacity: 0;
    transform: scale(.9) rotateX(20deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.stars {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--dark);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  font-size: 2.5rem;
  color: var(--primary);
}

.author-name {
  font-weight: 600;
  margin: 0;
}

.author-role {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

/* CTA SECTION */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 20px 20px;
}

.footer-logo {
  width: 120px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
  filter: brightness(1.2) contrast(1.15) saturate(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  background: #1f2937;
  padding: 8px;
  border-radius: 8px;
}

.footer-brand-scroll {
  overflow: hidden;
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
}

.footer-brand-text {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  white-space: nowrap;
  color: white;
  display: flex;
  gap: 2px;
}

.letter {
  display: inline-block;
  animation: letterZigzag 5s ease-in-out infinite;
  opacity: 0;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.3s; }
.letter:nth-child(3) { animation-delay: 0.6s; }
.letter:nth-child(4) { animation-delay: 0.9s; }
.letter:nth-child(5) { animation-delay: 1.2s; }
.letter:nth-child(6) { animation-delay: 1.5s; }
.letter:nth-child(7) { animation-delay: 1.8s; }
.letter:nth-child(8) { animation-delay: 2.1s; }
.letter:nth-child(9) { animation-delay: 2.4s; }

@keyframes letterZigzag {
  0% {
    opacity: 0;
    transform: translateX(-50px) translateY(-30px);
  }
  15% {
    opacity: 1;
    transform: translateX(10px) translateY(20px);
  }
  30% {
    opacity: 1;
    transform: translateX(-10px) translateY(-15px);
  }
  45% {
    opacity: 1;
    transform: translateX(8px) translateY(10px);
  }
  60% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(50px) translateY(-30px);
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Logo responsive tweaks */
@media (max-width: 768px) {
  .logo-container{ width:50px; height:50px }
  .logo-img{ filter: brightness(1.1) contrast(1.15) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1)); }
}

@media (max-width: 480px) {
  .logo-container{ width:42px; height:42px }
  .logo-img{ filter: brightness(1.1) contrast(1.15) drop-shadow(0 0.5px 1px rgba(0, 0, 0, 0.1)); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
    gap: 20px;
  }

  .navbar-menu {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .floating-card {
    width: 200px;
    height: 200px;
    font-size: 60px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

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

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons a,
  .cta-buttons button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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