/* ===== BASE ===== */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #0A0F1F; /* Bleu nuit profond */
    color: #FFFFFF; /* Texte blanc lisible */
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== ARRIÈRE-PLAN BLEU NUIT GLOW ===== */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    background:
        radial-gradient(circle at 20% 80%, rgba(0, 180, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(150, 80, 255, 0.30) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 120, 240, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #0A0F1F 0%, #0D1228 50%, #10172F 100%);

    animation: backgroundPulse 14s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        filter: brightness(1) saturate(1.2);
    }
    33% {
        filter: brightness(1.08) saturate(1.35);
    }
    66% {
        filter: brightness(1.04) saturate(1.25);
    }
}

/* ===== FORMES FLOTTANTES BLEU CYAN ===== */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid rgba(0, 200, 255, 0.35);
    animation: floatShape 20s linear infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    left: 12%;
    border-color: rgba(0, 180, 255, 0.45);
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 68%;
    border-radius: 50%;
    border-color: rgba(120, 200, 255, 0.5);
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    left: 30%;
    transform: rotate(45deg);
    border-color: rgba(140, 160, 255, 0.45);
}

.shape:nth-child(4) {
    width: 120px;
    height: 120px;
    left: 50%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(45deg, rgba(0, 140, 255, 0.15), transparent);
}

@keyframes floatShape {
    from {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.9;
    }
    to {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== LIGNES NEURONALES BLEU LUMIÈRE ===== */
.neural-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-line {
    position: absolute;
    height: 1px;
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-line:nth-child(1) {
    top: 20%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #FFF, transparent);
}

.neural-line:nth-child(2) {
    top: 60%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #5F7BFF, transparent);
}

.neural-line:nth-child(3) {
    top: 40%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #8D55FF, transparent);
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.25;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ===== GLASS EFFECT VERSION BLEU NUIT ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.1);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 25px;
    box-shadow: 0 12px 40px rgba(0, 150, 255, 0.2);
}
/* Enhanced Header */
 header {
     position: fixed;
     top: 20px;
     left: 50%;
     transform: translateX(-50%);
     z-index: 100;
     width: 96%;
     max-width: 1200px;
     padding: 18px 35px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     background: rgba(224, 163, 255, 0.08);
     backdrop-filter: blur(25px);
     border: 1px solid rgba(224, 163, 255, 0.15);
     border-radius: 25px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
 header.scrolled {
     background: rgba(224, 163, 255, 0.12);
     backdrop-filter: blur(30px);
     border-color: rgba(224, 163, 255, 0.2);
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 0 1px rgba(224, 163, 255, 0.1);
}
 nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
}
 .logo {
     display: flex;
     align-items: center;
     gap: 12px;
     font-size: 28px;
     font-weight: bold;
     background: linear-gradient(45deg, #FFF, #FFF);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     text-decoration: none;
     animation: logoGlow 3s ease-in-out infinite;
     transition: all 0.3s ease;
}
 .logo:hover {
     transform: scale(1.05);
}
 .logo-icon {
     width: 40px;
     height: 40px;
     filter: drop-shadow(0 0 10px #FFF);
}
 @keyframes logoGlow {
     0%, 100% {
         filter: drop-shadow(0 0 10px #FFF);
    }
     50% {
         filter: drop-shadow(0 0 20px #FFF);
    }
}
 .nav-links {
     display: flex;
     list-style: none;
     gap: 12px;
}
 .nav-links a {
     color: #ffffff;
     text-decoration: none;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     padding: 2px 2px;
     border-radius: 15px;
     font-size: 0.95rem;
     font-weight: 500;
     letter-spacing: 0.02em;
}
 .nav-links a.active {
     color: #FFF;
     background: linear-gradient(135deg, rgba(224, 163, 255, 0.15), rgba(255, 105, 180, 0.1));
     box-shadow: 0 0 20px rgba(224, 163, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 15px rgba(224, 163, 255, 0.2);
     border: 1px solid rgba(224, 163, 255, 0.3);
     text-shadow: 0 0 10px rgba(224, 163, 255, 0.8);
     transform: translateY(-1px);
}
 .nav-links a.active::after {
     content: '';
     position: absolute;
     top: -2px;
     left: -2px;
     right: -2px;
     bottom: -2px;
     background: linear-gradient(45deg, #FFF, #ff69b4, #9370db, #FFF);
     background-size: 400% 400%;
     border-radius: 17px;
     z-index: -2;
     animation: borderGlow 3s ease infinite;
}
.nav-links a.external-link::after {
    content: " ↗";
    font-size: 0.8em;
    vertical-align: super;
}
 @keyframes borderGlow {
     0% {
         background-position: 0% 50%;
    }
     50% {
         background-position: 100% 50%;
    }
     100% {
         background-position: 0% 50%;
    }
}
/* Mobile Menu */
 .mobile-menu-toggle {
     display: none;
     flex-direction: column;
     cursor: pointer;
     padding: 8px;
     border-radius: 8px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     transition: all 0.3s ease;
}
 .mobile-menu-toggle:hover {
     background: rgba(224, 163, 255, 0.1);
     box-shadow: 0 0 15px rgba(224, 163, 255, 0.3);
}
/* Mobile menu active state */
.mobile-nav a.active {
    background: linear-gradient(135deg, rgba(224, 163, 255, 0.2), rgba(255, 105, 180, 0.15));
    color: #FFF;
    border: 1px solid rgba(224, 163, 255, 0.4);
    box-shadow: 
        0 0 25px rgba(224, 163, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(224, 163, 255, 0.6);
}
 .hamburger-line {
     width: 25px;
     height: 3px;
     background: linear-gradient(45deg, #FFF, #ff69b4);
     margin: 3px 0;
     border-radius: 2px;
     transition: all 0.3s ease;
}
 .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
     transform: rotate(45deg) translate(9px, 9px);
}
 .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
     opacity: 0;
}
 .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
     transform: rotate(-45deg) translate(7px, -6px);
}
 .mobile-nav {
     position: fixed;
     top: 90px;
     left: 50%;
     transform: translateX(-50%);
     width: 90%;
     max-width: 400px;
     background: rgba(0, 0, 0, 0.95);
     backdrop-filter: blur(25px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 20px;
     padding: 30px;
     display: none;
     flex-direction: column;
     gap: 20px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
 .mobile-nav.active {
     display: flex;
     animation: slideDown 0.3s ease-out;
}
 @keyframes slideDown {
     from {
         opacity: 0;
         transform: translateX(-50%) translateY(-20px);
    }
     to {
         opacity: 1;
         transform: translateX(-50%) translateY(0);
    }
}
 .mobile-nav a {
     color: #ffffff;
     text-decoration: none;
     padding: 15px 20px;
     border-radius: 12px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.1);
     text-align: center;
     font-size: 1.1rem;
     transition: all 0.3s ease;
}
 .mobile-nav a:hover {
     background: rgba(224, 163, 255, 0.1);
     color: #FFF;
     box-shadow: 0 0 20px rgba(224, 163, 255, 0.3);
     transform: translateY(-2px);
}
/* Section 1: Modern Redesigned Hero */
 .hero {
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     position: relative;
     overflow: hidden;
}
 .hero::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 60%;
     height: 60%;
     background: radial-gradient(circle, rgba(224, 163, 255, 0.04) 0%, transparent 70%);
     transform: translate(-50%, -50%);
     animation: heroGlow 10s ease-in-out infinite;
     z-index: -1;
}
 @keyframes heroGlow {
     0%, 100% {
         transform: translate(-50%, -50%) scale(1) rotate(0deg);
         opacity: 0.6;
    }
     50% {
         transform: translate(-50%, -50%) scale(1.3) rotate(180deg);
         opacity: 1;
    }
}
 .hero-content {
     max-width: 1000px;
     padding: 80px 40px;
	 margin-top: 120px;
     animation: heroAppear 2.5s ease-out;
     position: relative;
     background: none;
     backdrop-filter: none;
     border: none;
     box-shadow: none;
     border-radius: 0;
}
 @keyframes heroAppear {
     from {
         opacity: 0;
         transform: translateY(60px) scale(0.96);
    }
     to {
         opacity: 1;
         transform: translateY(0) scale(1);
    }
}
 .hero-subtitle {
     font-size: 0.9rem;
     color: #FFF;
     margin-bottom: 25px;
     opacity: 0;
     animation: slideInFromLeft 1.2s ease 0.3s forwards;
     text-transform: uppercase;
     letter-spacing: 0.4em;
     position: relative;
     display: inline-block;
     font-weight: 300;
}
 .hero-subtitle::before, .hero-subtitle::after {
     content: '';
     position: absolute;
     top: 50%;
     width: 40px;
     height: 1px;
     background: linear-gradient(90deg, transparent, #FFF, transparent);
     animation: linePulse 3s ease infinite;
}
 .hero-subtitle::before {
     left: -60px;
}
 .hero-subtitle::after {
     right: -60px;
}
 @keyframes linePulse {
     0%, 100% {
         opacity: 0.4;
         transform: scaleX(0.8);
    }
     50% {
         opacity: 1;
         transform: scaleX(1.2);
    }
}
 @keyframes slideInFromLeft {
     from {
         opacity: 0;
         transform: translateX(-40px);
    }
     to {
         opacity: 1;
         transform: translateX(0);
    }
}
p{
    color: #fff;
}
 .hero h1 {
     font-size: clamp(2.2rem, 6vw, 4rem);
     margin-bottom: 30px;
     background: linear-gradient(135deg, #FFF 0%, #FFF 30%, #FFF 60%, #FFF 100%);
     background-size: 300% 300%;
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     animation: modernGradient 8s ease infinite;
     line-height: 1.1;
     letter-spacing: -0.02em;
     font-weight: 800;
     text-shadow: none;
     opacity: 0;
     animation: slideInFromRight 1.2s ease 0.6s forwards, modernGradient 8s ease 0.6s infinite;
}
 @keyframes modernGradient {
     0% {
         background-position: 0% 50%;
    }
     50% {
         background-position: 100% 50%;
    }
     100% {
         background-position: 0% 50%;
    }
}
 @keyframes slideInFromRight {
     from {
         opacity: 0;
         transform: translateX(40px);
    }
     to {
         opacity: 1;
         transform: translateX(0);
    }
}
 .hero-description {
     max-width: 700px;
     margin: 40px auto 50px;
     opacity: 0;
     animation: fadeInScale 1.2s ease 0.9s forwards;
     text-align: center;
}
 .hero-description p {
     font-size: 1.2rem;
     color: #d1d1d1;
     line-height: 1.7;
     margin-bottom: 0;
     font-weight: 300;
}
 @keyframes fadeInScale {
     from {
         opacity: 0;
         transform: scale(0.95);
    }
     to {
         opacity: 1;
         transform: scale(1);
    }
}


/* Section Notre Équipe */
.equipe-section {
  padding: 4rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Titres */
.section-title {
  font-size: 2rem;
  margin: 0 0 0.25rem 0;
  color: #0f172a;
}
.section-subtitle {
  margin: 0 0 2rem 0;
  color: #475569;
  font-size: 0.95rem;
}

/* Grid équipe */
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cartes équipe */
.team-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  outline: none;
}
.team-card:hover,
.team-card:focus {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

/* Photo / avatar */
.team-photo {
  width: 100%;
  padding-top: 95%;
  background-size: cover;
  background-position: center;
}

/* Corps */
.team-body {
  padding: 1rem;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.team-name {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
}
.team-role {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}
.team-description {
  color: #334155;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Social icons */
.team-socials {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1.2rem;
  margin-top: auto;
}
.team-socials a {
  font-size: 1.2rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.team-socials a:hover {
  opacity: 0.7;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .equipe-section {
    background: linear-gradient(180deg, rgba(2,6,23,0.4), rgba(3,7,18,0.4));
  }
  .section-title { color: #e6eef7; }
  .section-subtitle { color: #cbd5e1; }
  .team-card {
    background: rgba(20,24,38,0.35);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .team-body { color: #d1d9e6; }
  .team-role { color: #93a7c1; }
  .team-description { color: #a8bed9; }
}

/* Petits écrans */
@media (max-width: 420px) {
  .section-title { font-size: 1.5rem; }
  .team-name { font-size: 1rem; }
}

/* Animation globale : lente + élégante */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  filter: blur(6px);
  animation: smoothFadeUp 1.4s ease-out forwards;
}

/* Délais progressifs automatiques pour toutes les cards */
.reveal:nth-of-type(1) { animation-delay: 0.2s; }
.reveal:nth-of-type(2) { animation-delay: 0.5s; }
.reveal:nth-of-type(3) { animation-delay: 0.8s; }
.reveal:nth-of-type(4) { animation-delay: 1.1s; }
.reveal:nth-of-type(5) { animation-delay: 1.4s; }
.reveal:nth-of-type(6) { animation-delay: 1.7s; }

/* Animation plus visible */
@keyframes smoothFadeUp {
  0% {
    opacity: 0;
    transform: translateY(45px);
    filter: blur(6px);
  }
  60% {
    opacity: 0.6;
    transform: translateY(15px);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Structure de la section */
.articles-section {
    padding: 70px 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* Titre */
.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Grille responsive */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

/* CARD premium – glass effect */
.article-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 25px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    transition: transform 0.35s ease, 
                box-shadow 0.35s ease,
                background 0.35s ease;
}

/* Au survol : effet premium */
.article-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 35px rgba(0,0,0,0.25);
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.article-card p {
    opacity: 0.9;
    line-height: 1.6rem;
    font-size: 0.95rem;
}

/* Bouton */
.article-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
}

.article-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Animation (scroll simulé via hover de la section) */
/* Animation douce uniquement au survol de la card (optionnel) */
.card-anim {
    transition: transform 0.5s ease, 
                filter 0.5s ease,
                opacity 0.5s ease;
}

/* Animation douce quand la card est survolée */
.card-anim:hover {
    transform: translateY(-10px);
    filter: brightness(1.1);
}
/* Cacher le texte du logo quand on n'est plus sur PC */
@media (max-width: 1024px) {
    .brand-text {
        font-size:50%;
    }
}

/* Responsive petit écran */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .article-card {
        padding: 18px;
    }
}


/* Animation générale pour les deux sections */


.hero-stats {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
     gap: 40px;
    margin-bottom: 3%;
    margin-top: 3%;
     opacity: 0;
     animation: slideUpStagger 1.2s ease 1.2s forwards;
}
 .hero-stat {
     text-align: center;
     position: relative;
     padding: 20px;
     background: linear-gradient(135deg, rgba(224, 163, 255, 0.06), rgba(255, 105, 180, 0.04));
     border: 1px solid rgba(224, 163, 255, 0.15);
     border-radius: 12px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     backdrop-filter: blur(10px);
}
 .hero-stat:hover {
     transform: translateY(-8px) scale(1.05);
     border-color: rgba(255, 105, 180, 0.3);
     box-shadow: 0 20px 40px rgba(224, 163, 255, 0.1);
}
 .hero-stat-number {
     font-size: 1.8rem;
     font-weight: 700;
     color: #FFF;
     display: block;
     text-shadow: 0 0 15px rgba(224, 163, 255, 0.4);
     margin-bottom: 8px;
}
 .hero-stat-label {
     font-size: 0.8rem;
     color: #999;
     text-transform: uppercase;
     letter-spacing: 0.1em;
     font-weight: 400;
}
 @keyframes slideUpStagger {
     from {
         opacity: 0;
         transform: translateY(30px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}
 .cta-buttons {
     display: flex;
     gap: 20px;
     justify-content: center;
     flex-wrap: wrap;
     opacity: 0;
     animation: buttonSlideUp 1.2s ease 1.5s forwards;
}
 @keyframes buttonSlideUp {
     from {
         opacity: 0;
         transform: translateY(20px);
    }
     to {
         opacity: 1;
         transform: translateY(0);
    }
}
 .cta-button {
     display: inline-block;
     padding: 16px 40px;
     background: linear-gradient(135deg, #FFF, #ff69b4);
     color: #000;
     text-decoration: none;
     border-radius: 50px;
     font-weight: 600;
     font-size: 0.95rem;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     text-transform: uppercase;
     letter-spacing: 0.03em;
     box-shadow: 0 4px 15px rgba(224, 163, 255, 0.2);
}
 .cta-button.secondary {
     background: transparent;
     border: 2px solid #FFF;
     color: #FFF;
     box-shadow: 0 4px 15px rgba(224, 163, 255, 0.1);
}
 .cta-button:hover {
     transform: translateY(-4px) scale(1.02);
     box-shadow: 0 12px 30px rgba(224, 163, 255, 0.3);
}
 .cta-button.secondary:hover {
     background: rgba(224, 163, 255, 0.08);
     box-shadow: 0 12px 30px rgba(224, 163, 255, 0.2);
}
/* Section 2: Diagonal Features */
 .features {
     padding: 150px 0;
     position: relative;
     overflow: hidden;
}
 .features::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.1), transparent);
     animation: rotate 20s linear infinite;
     z-index: -1;
}
 @keyframes rotate {
     from {
         transform: rotate(0deg);
    }
     to {
         transform: rotate(360deg);
    }
}
 .section-title {
     text-align: center;
     font-size: clamp(2.5rem, 6vw, 4rem);
     margin-bottom: 80px;
     color: #00ffff;
     position: relative;
}
 .section-title::after {
     content: '';
     position: absolute;
     bottom: -10px;
     left: 50%;
     transform: translateX(-50%);
     width: 100px;
     height: 3px;
     background: linear-gradient(90deg, #00ffff, #ff0080);
     border-radius: 2px;
}
 .features-container {
     max-width: 1240px;
     margin: 0 auto;
     padding: 0 20px;
}
 .diagonal-grid {
     display: flex;
     flex-direction: column;
     gap: 60px;
}
 .feature-row {
     display: flex;
     align-items: center;
     gap: 80px;
     position: relative;
}
 .feature-row:nth-child(even) {
     flex-direction: row-reverse;
}
 .feature-content {
     flex: 1;
     padding: 50px;
     transform: skew(-5deg);
     transition: all 0.4s ease;
}
 .feature-content:hover {
     transform: skew(-5deg) translateY(-10px);
     box-shadow: 0 30px 60px rgba(160, 219, 219, 0.2);
}
 .feature-visual {
     height: 300px;
     position: relative;
     border-radius: 20px;
     overflow: hidden;
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     transition: all 0.4s ease;
}
 .feature-visual:hover {
     transform: scale(1.05);
     box-shadow: 0 20px 40px rgba(224, 163, 255, 0.3);
}
 .feature-visual::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: linear-gradient(45deg, rgba(224, 163, 255, 0.1), rgba(255, 105, 180, 0.1));
     z-index: 1;
     backdrop-filter: blur(1px);
     transition: all 0.4s ease;
}
 .feature-visual:hover::before {
     background: linear-gradient(45deg, rgba(224, 163, 255, 0.2), rgba(255, 105, 180, 0.2));
}
 .feature-row:nth-child(1) .feature-visual {
     background-image: url('images/eau.jpg');
}
 .feature-row:nth-child(2) .feature-visual {
     background-image: url('images/biogaz-2.png');
}
 .feature-row:nth-child(3) .feature-visual {
     background-image: url('images/OIP.jpg');
}
.feature-row:nth-child(4) .feature-visual {
     background-image: url('images/vue industrie.jpg');
}
 .feature-icon {
     font-size: 4rem;
     margin-bottom: 25px;
     background:#ffffff;
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
}
/* Reset simple pour la section */
.realisations-section { padding: 4rem 1rem; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); }

/* Container centralisé */
.container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Titres */

/* Grid responsive */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

/* Card (verre / transparent) */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06); /* base */
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 8px 24px rgba(12,15,20,0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
  outline: none;
}

/* Focus & hover (accessibility) */
.card:focus,
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(12,15,20,0.12);
}

/* Media (image) */
.card-media {
  flex: 0 0 46%;
  background-size: cover;
  background-position: center;
  min-height: 140px;
}

/* Body */
.card-body {
  padding: 1rem 1rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: #0b1220;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
}

/* Titles & text */
.card-title {
  font-size: 1.05rem;
  margin: 0;
  color: #ffffff;
}
.card-text {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Meta row */
.card-meta {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: #ffffff;
}
.dot { opacity: 0.6; }

/* CTA row */
.cta-row {
  margin-top: 1.5rem;
  display:flex;
  justify-content: center;
}
.btn-primary {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(34,197,94,0.95), rgba(16,185,129,0.95));
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(16,185,129,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary:hover,
.btn-primary:focus { transform: translateY(-3px); }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .card, .btn-primary { transition: none; transform: none; }
}

/* Dark mode support (optionnel) */
@media (prefers-color-scheme: dark) {
  .realisations-section { background: linear-gradient(180deg, rgba(2,6,23,0.5), rgba(3,7,18,0.35)); }
  .section-title { color: #e6eef7; }
  .section-subtitle { color: #cbd5e1; }
  .card { background: rgba(20,24,38,0.35); border: 1px solid rgba(255,255,255,0.06); color: #e6eef7; }
  .card-body { color: #d1d9e6; }
  .card-text { color: #a8bed9; }
  .card-meta { color: #93a7c1; }
  .btn-primary { box-shadow: 0 6px 20px rgba(0,0,0,0.6); }
}

/* Small devices tweak */
@media (max-width: 420px) {
  .section-title { font-size: 1.5rem; }
  .card { min-height: 280px; }
  .card-media { min-height: 120px; }
}
 .feature-content h3 {
     font-size: 2.2rem;
     margin-bottom: 20px;
     color: #ffffff;
}
 .feature-content p {
     font-size: 1.1rem;
     color: #cccccc;
     line-height: 1.8;
}
/* Section 3: Enhanced Hexagonal Showcase */
 .showcase {
     padding: 150px 0;
     position: relative;
}
 .hexagon-container {
     display: flex;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap;
     gap: 40px;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
}
 .hexagon {
     width: 22%;
     height: 365px;
     position: relative;
     margin: 2px;
     transition: all 0.4s ease;
}
 .hexagon:hover {
     transform: scale(1.1);
}
 .hexagon-inner {
     width: 100%;
     height: 100%;
     position: relative;
     transform: rotate(30deg);
     border-radius: 25px;
     padding: 50px 25px;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     overflow: hidden;
     transition: all 0.4s ease;
}
 .hexagon:hover .hexagon-inner {
     transform: rotate(0deg);
     border-radius: 15px;
}
 .hexagon:nth-child(odd) .hexagon-inner {
     background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(255, 0, 128, 0.12));
     border: 1px solid rgba(0, 255, 255, 0.3);
}
 .hexagon:nth-child(even) .hexagon-inner {
     background: linear-gradient(135deg, rgba(255, 0, 128, 0.12), rgba(128, 0, 255, 0.12));
     border: 1px solid rgba(255, 0, 128, 0.3);
}
 .hexagon-icon {
     font-size: 2.8rem;
     
     transform: rotate(-30deg);
     filter: drop-shadow(0 0 10px currentColor);
     transition: all 0.4s ease;
}
 .hexagon:hover .hexagon-icon {
     transform: rotate(0deg);
}
 .hexagon h4 {
     color: #ffffff;
     transform: rotate(-30deg);
     margin-bottom: 15px;
     font-weight: bold;
     text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
     transition: all 0.4s ease;
     text-align: center;
     margin-left: -15%;
}
 .hexagon:hover h4 {
     transform: rotate(0deg);
}
 .hexagon p {
     font-size: 0.95rem;
     color: #e0e0e0;
     transform: rotate(-30deg);
     line-height: 1.5;
     max-width: 140px;
     word-wrap: break-word;
     hyphens: auto;
     transition: all 0.4s ease;
}
 .hexagon:hover p {
     transform: rotate(0deg);
}
/* Section 4: Enhanced Timeline */
 .timeline {
     padding: 100px 0;
     position: relative;
}
 .timeline-container {
     max-width: 1100px;
     margin: 0 auto;
     position: relative;
     padding: 0 20px;
}
 .timeline-line {
     position: absolute;
     left: 50%;
     top: 0;
     bottom: 0;
     width: 4px;
     background: linear-gradient(180deg, #FFF, #ff69b4, #9370db);
     transform: translateX(-50%);
     border-radius: 2px;
     box-shadow: 0 0 20px rgba(224, 163, 255, 0.3);
}
 .timeline-item {
     display: flex;
     justify-content: flex-end;
     padding-right: 60px;
     position: relative;
     margin-bottom: 60px;
}
 .timeline-item:nth-child(even) {
     justify-content: flex-start;
     padding-left: 60px;
     padding-right: 0;
}
 .timeline-content {
     max-width: 450px;
     padding: 50px 40px;
     position: relative;
     transform: perspective(1000px) rotateY(-5deg);
     transition: all 0.4s ease;
     background: rgba(224, 163, 255, 0.08);
     backdrop-filter: blur(25px);
     border: 1px solid rgba(224, 163, 255, 0.15);
     border-radius: 25px;
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
 .timeline-item:nth-child(even) .timeline-content {
     transform: perspective(1000px) rotateY(5deg);
}
 .timeline-content:hover {
     transform: perspective(1000px) rotateY(0deg) translateZ(20px);
     box-shadow: 0 25px 60px rgba(224, 163, 255, 0.2), 0 0 0 1px rgba(224, 163, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
     border-color: rgba(224, 163, 255, 0.3);
}
 .timeline-dot {
     position: absolute;
     left: 50%;
     top: 60px;
     transform: translateX(-50%);
     width: 24px;
     height: 24px;
     background: linear-gradient(135deg, #ff69b4, #FFF);
     border-radius: 50%;
     box-shadow: 0 0 25px rgba(255, 105, 180, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
     z-index: 1;
     border: 3px solid rgba(255, 255, 255, 0.2);
}
 .timeline-year {
     font-size: 1.8rem;
     color: #FFF;
     margin-bottom: 20px;
     font-weight: bold;
     text-shadow: 0 0 15px rgba(224, 163, 255, 0.4);
}
 .timeline-content h4 {
     font-size: 1.5rem;
     color: #ffffff;
     margin-bottom: 20px;
     font-weight: 600;
}
 .timeline-content p {
     color: #d1d1d1;
     line-height: 1.7;
     font-size: 1rem;
}
/* Section 5: Contact */
 .contact {
     padding: 150px 0;
     position: relative;
}
 .contact-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 80px;
     align-items: center;
}
 .contact-info {
     padding: 60px 40px;
     position: relative;
}
 .contact-info::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: radial-gradient(circle, rgba(0, 255, 255, 0.1), transparent 70%);
     animation: pulse 4s ease-in-out infinite;
     z-index: -1;
}
 @keyframes pulse {
     0%, 100% {
         transform: scale(1);
         opacity: 0.5;
    }
     50% {
         transform: scale(1.1);
         opacity: 1;
    }
}
 .contact-form {
     padding: 50px 40px;
}
 .form-group {
     margin-bottom: 30px;
     position: relative;
}
 .form-group input, .form-group textarea {
     width: 100%;
     padding: 15px 20px;
     background: rgba(255, 255, 255, 0.05);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 10px;
     color: #ffffff;
     font-family: inherit;
     font-size: 1rem;
     backdrop-filter: blur(10px);
     transition: all 0.3s ease;
}
 .form-group input:focus, .form-group textarea:focus {
     outline: none;
     border-color: #00ffff;
     box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
     background: rgba(255, 255, 255, 0.1);
}
 .form-group input::placeholder, .form-group textarea::placeholder {
     color: #888;
}
 .submit-btn {
     width: 100%;
     padding: 18px;
     background: linear-gradient(45deg, #00ffff, #ff0080);
     border: none;
     border-radius: 10px;
     color: #000;
     font-weight: bold;
     font-size: 1.1rem;
     cursor: pointer;
     transition: all 0.3s ease;
}
 .submit-btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}
 .contact-info h3 {
     font-size: 2.5rem;
     color: #00ffff;
     margin-bottom: 30px;
}
 .contact-info p {
     font-size: 1.2rem;
     color: #cccccc;
     line-height: 1.7;
     margin-bottom: 30px;
}
 .social-links {
     display: flex;
     gap: 20px;
     margin-top: 40px;
}
 .social-links a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 60px;
     height: 60px;
     border-radius: 15px;
     color: #00ffff;
     text-decoration: none;
     font-size: 1.5rem;
     transition: all 0.3s ease;
     position: relative;
     overflow: hidden;
}
 .social-links a::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
     transition: left 0.5s ease;
}
 .social-links a:hover::before {
     left: 100%;
}
 .social-links a:hover {
     transform: translateY(-5px) scale(1.1);
     box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}
/* Footer */
 footer {
     text-align: center;
     padding: 60px 20px 40px;
     border-top: 1px solid rgba(224, 163, 255, 0.2);
     background: rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(20px);
}
 .footer-content {
     max-width: 1200px;
     margin: 0 auto;
}
 .footer-links {
     display: flex;
     justify-content: center;
     gap: 30px;
     margin-bottom: 30px;
     flex-wrap: wrap;
}
 .footer-links a {
     color: #cccccc;
     text-decoration: none;
     font-size: 0.9rem;
     transition: all 0.3s ease;
     position: relative;
     padding: 8px 0;
}
 .footer-links a:hover {
     color: #FFF;
     text-shadow: 0 0 10px rgba(224, 163, 255, 0.5);
}
 .footer-links a::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0;
     height: 1px;
     background: linear-gradient(90deg, #FFF, #ff69b4);
     transition: width 0.3s ease;
}
 .footer-links a:hover::after {
     width: 100%;
}
 .footer-copyright {
     color: #888;
     font-size: 0.9rem;
     margin-bottom: 15px;
}
 .footer-design {
     color: #666;
     font-size: 0.85rem;
     margin-top: 20px;
}
 .footer-design a {
     color: #FFF;
     text-decoration: none;
     transition: all 0.3s ease;
}
 .footer-design a:hover {
     color: #ff69b4;
     text-shadow: 0 0 8px rgba(255, 105, 180, 0.5);
}
/* Mobile Responsiveness */
 @media (max-width: 1024px) {
	 .feature-row {
        flex-direction: column;
        gap: 40px;
		min-height: 720px;
    }

    .feature-row:nth-child(even) {
        flex-direction: column;
    }
	.feature-content {
    	flex: 0;
	}
    .feature-visual {
        height: 250px; /* Adjust the height for mobile view */
        width: 100%;
    }
     .contact-container {
         grid-template-columns: 1fr;
         gap: 40px;
    }

     .timeline-line {
         left: 30px;
    }
     .timeline-item, .timeline-item:nth-child(even) {
         justify-content: flex-start;
         padding-left: 80px;
         padding-right: 0;
    }
     .timeline-dot {
         left: 30px;
    }
     .timeline-content {
         max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}
 @media (max-width: 768px) {
     .hero-content {
         padding: 40px 20px;
    }
     .hero h1 {
         font-size: clamp(1.8rem, 8vw, 3rem);
    }
     .hero-description p {
         font-size: 1.1rem;
    }
     .hero-stats {
         grid-template-columns: repeat(2, 1fr);
         gap: 20px;
         margin: 40px auto 35px;
    }
     .hero-stat {
         padding: 15px;
    }
     .hero-stat-number {
         font-size: 1.5rem;
    }
     .hero-subtitle::before, .hero-subtitle::after {
         width: 25px;
    }
     .hero-subtitle::before {
         left: -35px;
    }
     .hero-subtitle::after {
         right: -35px;
    }
     .cta-buttons {
         flex-direction: column;
         align-items: center;
         gap: 15px;
    }
     .cta-button {
         width: 100%;
         max-width: 280px;
         text-align: center;
    }
    /* Update the existing hexagon styles for mobile */
    .hexagon {
        width: 280px;  /* Increased from 180px */
        height: 320px; /* Increased from 200px */
        margin: 30px auto; /* Center and add more spacing */
    }
    
    .hexagon-inner {
        padding: 60px 35px; /* More padding for larger content area */
    }
    
    .hexagon-icon {
        font-size: 3.5rem; /* Larger icon */
        margin-bottom: 25px;
    }
    
    .hexagon h4 {
        font-size: 1.6rem; /* Larger heading */
        margin-bottom: 20px;
    }
    
    .hexagon p {
        font-size: 1.1rem; /* Larger text */
        max-width: 200px; /* More width for text */
        line-height: 1.6;
    }
    
    .hexagon-container {
        gap: 20px; /* Reduce gap since boxes are larger */
    }
     .section-title {
         margin-bottom: 60px;
    }
     .features, .showcase, .timeline, .contact {
         padding: 80px 0;
    }
     .timeline {
         padding: 60px 0;
    }
     .footer-links {
         gap: 20px;
         margin-bottom: 25px;
    }
     .footer-links a {
         font-size: 0.85rem;
    }
}
/* Enhanced scrollbar */
 ::-webkit-scrollbar {
     width: 12px;
}
 ::-webkit-scrollbar-track {
     background: rgba(0, 0, 0, 0.8);
     border-radius: 6px;
}
 ::-webkit-scrollbar-thumb {
     background: linear-gradient(45deg, #00ffff, #ff0080);
     border-radius: 6px;
     box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
 ::-webkit-scrollbar-thumb:hover {
     background: linear-gradient(45deg, #ff0080, #8000ff);
     box-shadow: 0 0 15px rgba(255, 0, 128, 0.7);
}
