/* =============================================
   MOZAIC CONSEIL EDUCATION - CUSTOM STYLES
   Minimal CSS - Only colors and custom animations
   Bootstrap 5 handles responsive, layout, spacing
============================================= */

/* CSS Variables - Color Palette */
:root {
  --bleu: #1f5b95;
  --bleu-dark: #0c4878;
  --rose: #e79adf;
  --jaune: #f4c133;
  --vert: #32ff32;
  --cyan: #53b9d4;
  --gris: #d9d9d9;
  --violet: #c69ad6;
  --bg-footer: #163d62;
}

/* Background gradient */
body {
  background: linear-gradient(135deg, var(--bleu-dark), var(--cyan));
  min-height: 100vh;
}

/* Navbar custom styling */
.navbar {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
}

/* Flip Card Animation */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 380px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.active .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 25px;
}

.flip-card-front {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  overflow: auto;
}

/* Card Colors */
.card-jaune .flip-card-front,
.card-jaune .flip-card-back {
  background: linear-gradient(135deg, #f4c133, #f7a820);
  color: white;
}

.card-cyan .flip-card-front,
.card-cyan .flip-card-back {
  background: linear-gradient(135deg, #a8f2ef, #7edcd8);
  color: #4d4d4d;
}

.card-violet .flip-card-front,
.card-violet .flip-card-back {
  background: linear-gradient(135deg, #c69ad6, #a67bc2);
  color: white;
}

/* Button custom colors */
.btn-mosaic {
  background: var(--vert);
  color: black;
  font-weight: bold;
  border: none;
}

.btn-mosaic:hover {
  background: white;
  color: black;
}

/* Footer custom background */
footer {
  background: var(--bg-footer);
}

/* Feature icon color */
.feature i {
  color: var(--bleu);
}

/* Counter gradient text */
.counter h2 {
  background: linear-gradient(135deg, var(--jaune), var(--vert));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* News card hover animation */
.news-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease;
}

/* Responsive flip card */
@media (max-width: 768px) {
  .flip-card {
    height: 300px;
  }
}


.feature-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transition: all .3s ease;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.feature-logo {
  height: 45px;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(31,91,149,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 1.8rem;
  color: var(--bleu);
}

.feature-card h4 {
  color: var(--bleu);
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 20px auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bleu);
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


