/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #1B4F72, #2ECC71);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

/* Custom button hover effects */
/* CTA principal (gradient bleu) */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}
  


.btn-primary:hover:before {
    left: 100%;
}

/* Section spacing */
section {
    position: relative;
}

/* Custom card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Navigation active state */
.nav-active {
    color: #1B4F72 !important;
    font-weight: 600;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1B4F72;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2ECC71;
}

/* FAQ styles */
.faq-button:hover {
    background-color: #f9fafb;
}

.faq-content {
    transition: all 0.3s ease;
}

.faq-content.active {
    display: block;
}

.faq-button i.rotated {
    transform: rotate(180deg);
}

/* Hero section background pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(27, 79, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
}

/* Grid pattern pour backgrounds (superposable) */
.bg-grid-pattern {
    background-image:
      linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 0 0;
  }

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .text-5xl,
    .text-6xl {
        font-size: 2.5rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600,
    .text-gray-700 {
        color: #000 !important;
    }
    
    .bg-gray-50 {
        background-color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        color: #000 !important;
        background: transparent !important;
    }
}

/* Blobs flottants */
@keyframes float {
    0%   { transform: translateY(0) translateZ(0); }
    50%  { transform: translateY(-20px) translateZ(0); }
    100% { transform: translateY(0) translateZ(0); }
  }
  .animate-float {
    animation: float 10s ease-in-out infinite;
    will-change: transform;
  }
  
  /* (Optionnel) utilitaires de délais d’animation */
  .anim-delay-2s { animation-delay: -2s; }
  .anim-delay-4s { animation-delay: -4s; }
  
  /* Respecte les préférences d’accessibilité */
  @media (prefers-reduced-motion: reduce) {
    .animate-float { animation: none; }
  }

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #2ECC71;
    outline-offset: 2px;
}

/* High-quality image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom utility classes */
.text-aikemics-teal {
    color: #1B4F72;
}

.text-aikemics-green {
    color: #2ECC71;
}

.text-aikemics-light-teal {
    color: #5DADE2;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #0891b2, #7c3aed);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.bg-aikemics-teal {
    background-color: #2563eb;
}

.bg-aikemics-green {
    background-color: #2ECC71;
}

.border-aikemics-teal {
    border-color: #2563eb;
}

.border-aikemics-green {
    border-color: #2ECC71;
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Custom gradient backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, #1B4F72 0%, #5DADE2 100%);
}

.gradient-bg-accent {
    background: linear-gradient(135deg, #5DADE2 0%, #2ECC71 100%); 
}


/* Icône avec le même dégradé que .btn-primary */
.icon-gradient-primary{
    display:inline-block;                 /* indispensable pour le background */
    background: linear-gradient(135deg, #2563eb, #0891b2);
    background-clip:text;
    -webkit-background-clip:text;
    color: transparent;
    -webkit-text-fill-color: transparent; /* Safari */
  }
  
  /* (Optionnel) variante "marque" teal */
  .icon-gradient-aikemics{
    display:inline-block;
    background: linear-gradient(135deg, #1B4F72, #5DADE2);
    background-clip:text;
    -webkit-background-clip:text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  
  /* (Optionnel) animation douce du dégradé */
  .icon-gradient-animate{
    background-size:200% 200%;
    animation: gradient-shift 4s ease infinite;
  }

/* Titres card : 2 lignes, vrai gras, responsive */
.title-2lines{
    font-weight: 900 !important;              /* écrase toute utilité Tailwind */
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.15 !important;
    letter-spacing: -0.01em;
    min-height: 2.3em;                        /* 2 lignes x 1.15 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Si Inter variable est servi, verrouille le vrai gras */
    font-variation-settings: "wght" 900;
  }
  
  /* Option : ombre ultra discrète pour plus de “pop” sur blanc */
  .title-strong { text-shadow: 0 1px 0 rgba(0,0,0,0.04); }
  
  /* Renforce le poids et le rendu du titre */
.title-pop {
    font-weight: 900 !important;           /* vrai bold (assure-toi de charger Inter 900) */
    letter-spacing: -0.01em;
  }
  
  /* Barre d’accent centrée sous le titre */
  .title-accent {
    position: relative;
    display: inline-block;                  /* nécessaire pour l'::after */
  }
  .title-accent::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;                           /* espace sous le texte */
    width: 60%;
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #2563eb, #0891b2); /* même gradient que btn-primary */
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  }
  
  /* Variante “surlignage marqueur” (optionnelle) */
  .title-marker {
    background: linear-gradient(transparent 62%, rgba(37,99,235,0.14) 62%);
    display: inline;
    padding-bottom: 2px;
  }
  
  /* Dégradé de texte (reprend ton btn-primary) */
  .text-gradient-primary {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }

  .title-shadow-dark { text-shadow: 0 2px 8px rgba(0,0,0,0.35); }

  .logo {
    height: 60px;
  }