/* style-technique-dynamique.css */

/* Import du CSS global */
@import url('style-global.css');

/* --- Arrière-plan général technique --- */
body {
  background: linear-gradient(-45deg, #0d47a1cc, #2196f3cc, #6a11cbcc, #2575fccc);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  margin: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Hero Technique --- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 2rem;
  background: linear-gradient(
      135deg,
      rgba(26,35,126,0.4),   /* bleu foncé réduit */
      rgba(40,53,147,0.4),   /* bleu légèrement plus clair */
      rgba(81,45,168,0.4),   /* violet adouci */
      rgba(21,101,192,0.4)   /* bleu vif légèrement transparent */
  );
  background-size: 300% 300%;
  animation: heroGradient 12s ease infinite;
  border-radius: 1rem;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --- Overlay léger mais sans flou --- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1); /* très léger voile pour contraste texte */
  z-index: 0;
  backdrop-filter: none; /* flou supprimé */
}


.hero .hero-text,
.hero .hero-visual {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Hero kicker */
.hero .kicker {
  display: block;
  font-weight: 700;
  color: #ffea00;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 8px #ffea00, 0 0 15px #ff9800;
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  from { text-shadow: 0 0 8px #ffea00; }
  to { text-shadow: 0 0 18px #ff9800, 0 0 25px #ff5722; }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fcfeff, #ffffff, #f9fdff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShift 5s infinite alternate;
}

@keyframes textShift {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

.hero p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(227,242,253,0.9);
}

/* Hero CTA */
.hero-cta a {
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.4s ease;
  box-shadow: 0 0 15px rgba(140, 177, 207, 0.4);
}

.btn {
  background: linear-gradient(45deg, #ff9800cc, #ff5722cc);
  color: #fff;
}

.btn:hover {
  background: linear-gradient(45deg, #ff5722, #e91e63);
  transform: scale(1.05);
  box-shadow: 0 0 18px #ff5722;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 12px #b7e3f8;
}

/* Hero points forts */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-points li {
  background: rgba(255,255,255,0.12);
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-points li:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
  box-shadow: 0 0 12px #9dc1df;
}

/* Hero visual */
.hero-visual .visual-card {
  background: rgba(255,255,255,0.85);
  color: #333;
  padding: 1.5rem 2rem;
  border-radius: 1.2rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  border: 3px solid transparent;
  background-image: linear-gradient(rgba(176,215,77,0.85), rgba(255,255,255,0.9)), 
                    linear-gradient(90deg, #42a5f5, #000000, #000000);
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: borderShift 6s infinite alternate;
}

@keyframes borderShift {
  0% { border-image-source: linear-gradient(90deg, #9ec3e0, #ab47bc); }
  100% { border-image-source: linear-gradient(90deg, #c0e1f0, #ef5350); }
}

/* --- Cartes Filières et Infrastructures --- */
.card, .feat {
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover, .feat:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.card h3, .feat h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #aac4ea, #d1f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p, .feat p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.card img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 1rem;
}

/* Icones dans les cartes */
.feat-emoji {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

/* Grilles responsive */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Sections */
.section h2 {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #6cb5d6, #ab47bc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section p {
  color: rgba(204,129,129,0.85);
  margin-bottom: 2rem;
}

/* Sections alternatives */
.section.alt {
  background: rgba(255,255,255,0.08);
  padding: 2rem 0;
  border-radius: 1rem;
  backdrop-filter: blur(3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p.lead { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1rem;
  }
  .hero-visual { margin-top: 2rem; }
}
