/* --------------------------- */
/* style-a-propos.css v4       */
/* Version artistique & animée */
/* --------------------------- */

/* Import global */
@import url('style-global.css');

/* ---------------------------
   Corps de la page
---------------------------- */
body {
  background: linear-gradient(135deg, #f0f8ff, #e6f0ff, #ffffff);
  background-size: 300% 300%;
  animation: gradientMove 15s ease infinite;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------------------------
   Hero section
---------------------------- */
.hero.hero-about {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: #fff;
  padding: 5rem 2rem;
}

.hero.hero-about::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(0,0,0,0.15), transparent 70%);
  z-index: 0;
}

.hero .hero-text, 
.hero .hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease both;
}

@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero .kicker {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffdd57;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin: 0.5rem 0 1rem 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero p.lead {
  font-size: 1.3rem;
  color: #fdfdfd;
  max-width: 650px;
  margin: 0 auto;
}

.hero .hero-visual img.responsive-img {
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.hero .hero-visual img.responsive-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: brightness(1.1);
}

/* ---------------------------
   Sections principales
---------------------------- */
.section {
  background: rgba(255,255,255,0.97);
  border-radius: 1.2rem;
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease both;
}

.section::before {
  content: "";
  position: absolute;
  top:-20%; left:-20%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at center, rgba(0,119,204,0.05), transparent 70%);
  transform: rotate(25deg);
  z-index: 0;
}

/* ---- Titres multicolores (Mission, Objectif, Valeurs, Vision) ---- */
.section h2 {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #ff6a00, #ff0084, #6a11cb, #2575fc, #00f260, #0575e6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowFlow 8s ease infinite;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.section p, .section ul {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ---------------------------
   Grilles et cartes
---------------------------- */
.grid-2, .grid-3 {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  border-radius: 1rem;
  padding: 1.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

/* ---- Cartes Mission/Objectif en mode coloré ---- */
.card.mission,
.card.objectif,
.card.valeurs,
.card.vision {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb, #8fd3f4, #84fab0, #fccb90);
  background-size: 400% 400%;
  animation: cardRainbow 12s ease infinite;
  color: #fff;
}

@keyframes cardRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #0077cc;
}

.card.mission h3,
.card.objectif h3,
.card.valeurs h3,
.card.vision h3 {
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

/* ---------------------------
   Équipe pédagogique
---------------------------- */
.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.teacher-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.teacher-card img:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

/* ---------------------------
   Témoignages
---------------------------- */
.testimonial-card {
  background: linear-gradient(135deg, #f5f8ff, #eaf1ff);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card::before {
  content: "“";
  font-size: 4rem;
  color: #0077cc;
  opacity: 0.1;
  position: absolute;
  top: -10px; left: 20px;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ---------------------------
   Footer enrichi
---------------------------- */
.site-footer {
  background: linear-gradient(135deg, #0077cc, #005fa3);
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.05;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.site-footer a:hover {
  color: #ffdd57;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* ---------------------------
   Boutons
---------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(135deg, #0077cc, #3399ff);
  color: #fff;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #005fa3, #0077cc);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 2px solid #0077cc;
  border-radius: 0.8rem;
  color: #0077cc;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0077cc;
  color: #fff;
  transform: translateY(-2px);
}
