/* ===============================
   RESET & BASE
=============================== */

 /* --- VARIABLES & BASE --- */
        :root {
            --primary: #F05A22; /* Orange Metrologix */
            --secondary: #377992; /* Bleu Metrologix */
            --text-dark: #1f2937;
            --vert: #377992; /* Bleu remplace vert */
            --orange: #F05A22;
            --bg-light: #FFFFFF;
        }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: #0b0f14;
  color: #fff;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}


/* ===============================
   HEADER & NAVIGATION
=============================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  /*background: rgba(0,0,0,0.6);*/
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
header.scrolled {
  background: rgba(0,0,0,0.85);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 42px;
}

/* NAVIGATION */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
}
.nav-links li {
  list-style: none;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.3s, border-bottom 0.3s;
}
.nav-links a.active {
  color: #F05A22;
  border-bottom: 2px solid #F05A22;
}
.nav-links a:hover {
  color: #F05A22;
  border-bottom: 2px solid #F05A22;
}

/* HAMBURGER MENU */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: -100%;
    height: calc(100vh - 70px);
    width: 250px;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ===============================
   HERO SLIDER
=============================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#fff;
  padding:120px 20px 80px;
  overflow:hidden;
}

/* Image du slide */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Overlay animé */
.hero-bg .overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(6,78,59,.85),rgba(0,0,0,.75));
  z-index:1;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:1000px;
  margin:auto;
  animation:fadeInUp 1.5s ease-out;
}

.hero-intro{display:block;font-size:clamp(.8rem,2vw,1.2rem);text-transform:uppercase;letter-spacing:2px;color:var(--primary);font-weight:700;margin-bottom:1rem}
.hero h2{
  font-size:5rem;
  margin:0;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  background:linear-gradient(120deg,#777 0%,#fff 20%,#bbb 40%,#fff 60%,#777 80%,#0d6efd 85%,#f97316 95%);
  background-size:300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metalShine 6s ease-in-out infinite;
}

@keyframes metalShine{
  0% {background-position:-200% center;}
  50% {background-position:100% center;}
  100% {background-position:200% center;}
}

.hero h3{
  font-size:1.8rem;
  font-weight:500;
  margin:15px 0;
}

.hero p{
  font-size:1.1rem;
  line-height:1.6;
  max-width:700px;
  margin:auto;
}

@media(max-width:1200px){
  .hero h2{font-size:4rem;}
  .hero h3{font-size:1.6rem;}
  .hero p{font-size:1rem;}
}

@media(max-width:992px){
  .hero h2{font-size:3.2rem;}
  .hero h3{font-size:1.4rem;}
  .hero p{font-size:.95rem;}
}

@media(max-width:768px){
  .hero h2{font-size:2.6rem; letter-spacing:1px;}
  .hero h3{font-size:1.2rem;}
  .hero p{font-size:.9rem;}
}

@media(max-width:480px){
  .hero h2{font-size:2rem;}
  .hero h3{font-size:1rem;}
  .hero p{font-size:.85rem;}
}

.hero-slider { position: relative; height: 100vh; overflow: hidden; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; position: relative; z-index: 1; }
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.85));
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 6%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.hero-brand {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem,6vw,4.8rem);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.hero-message {
  font-size: clamp(0.9rem,2.5vw,1.05rem);
  line-height: 1.8;
  max-width: 720px;
  margin: auto;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Slide vidÃ©o */
.slide.weighing {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* VidÃ©o arriÃ¨re-plan */
.background-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Overlay sombre */
.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Boutons CTA */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsivité*/
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; }
}

/* ANIMATIONS */
.hero-brand span, .hero-message span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}
.hero-brand span { animation: fadeUpTitle 1s ease forwards; animation-delay: 0.2s; }
.hero-message span { animation: fadeUpText 1s ease forwards; animation-delay: 0.8s; }

@keyframes fadeUpTitle { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUpText { to { opacity: 1; transform: translateY(0); } }

/* HERO BUTTONS */
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpButtons 1s ease forwards;
  animation-delay: 1.4s;
}
@keyframes fadeUpButtons { to { opacity: 1; transform: translateY(0); } }

.btn-primary {
  background: #F05A22;
  color: #000;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s;
}
.btn-primary:hover { background: #F05A22; transform: scale(1.05); }

.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #F05A22; transform: scale(1.05); }

/* SLIDER CONTROLS */

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  transform: translateY(-50%);
  padding: 0 2rem;
}

.slider-controls button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.slider-controls button i {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.slider-controls button:hover {
  background: var(--orange-action);
  border-color: var(--orange-action);
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(240, 90, 34, 0.5);
}

.slider-controls button.next:hover i { transform: translateX(4px); }
.slider-controls button.prev:hover i { transform: translateX(-4px); }

.slider-controls button:active {
  transform: scale(0.95);
}

/* SLIDER DOTS */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.slider-dots .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: #fff;
}

        /*---EXPERTISES---*/
.expertises-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.domaine-box{background:var(--blanc);border:1px solid var(--orange);border-radius:20px;padding:40px;transition:.4s}
.domaine-box:hover{transform:translateY(-10px);box-shadow:0 20px 40px rgba(0,0,0,.1);border-color:var(--vert)}
.domaine-header{display:flex;align-items:center;gap:20px;margin-bottom:30px}
.domaine-icon{background:var(--vert);color:#fff;width:50px;height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:bold}
.domaine-orange .domaine-icon{background:var(--orange)}
.sub-list{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.tag{background:#70fca3;padding:6px 15px;border-radius:50px;font-size:1rem;font-weight:600;border:1px solid var(--gris-bordure)}
@media(max-width:1024px){
.expertises-grid{grid-template-columns:1fr;gap:40px}
}

@media(max-width:768px){
.domaine-box{padding:25px}
.tag{font-size:.9rem}
}

#services{
  padding:100px 5%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

#services h2{
  text-align:center;
  font-size:3rem;
  margin-bottom:70px;
  color:#0f172a;
  font-weight:700;
}

#services h2 span{
  color:#377992;
  position: relative;
}

#services h2 span::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #377992, #F05A22);
  border-radius: 2px;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* SERVICE CARD */
.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #377992, #F05A22);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(57, 255, 20, 0.2);
  border-color: rgba(57, 255, 20, 0.3);
}

/* CARD ICON */
.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #377992 0%, #2dd40d 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(57, 255, 20, 0.3);
}

.card-icon i {
  font-size: 2.5rem;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.service-card:hover .card-icon {
  background: linear-gradient(135deg, #F05A22 0%, #ff8533 100%);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.4);
  transform: rotate(-5deg) scale(1.05);
}

.service-card:hover .card-icon i {
  transform: scale(1.1);
}

/* CARD TITLE */
.service-card h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: #377992;
}

/* CARD DESCRIPTION */
.service-card p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* CARD LINK */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #F05A22;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.card-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F05A22;
  transition: width 0.3s ease;
}

.card-link:hover::after {
  width: 100%;
}

.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(5px);
}

.card-link:hover {
  color: #377992;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  #services {
    padding: 60px 5%;
  }

  #services h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 25px;
  }

  .card-icon {
    width: 70px;
    height: 70px;
  }

  .card-icon i {
    font-size: 2rem;
  }
}

.expertises-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.domaine-box{
background:white;
border-radius:15px;
padding:30px;
box-shadow:0 8px 25px rgba(0,0,0,0.1);
transition:transform .3s, box-shadow .3s;
}

.domaine-box:hover{
transform:translateY(-8px);
box-shadow:0 12px 30px rgba(0,0,0,0.15);
}

.domaine-header{
display:flex;
align-items:center;
gap:15px;
margin-bottom:20px;
}

.domaine-icon{
width:50px;
height:50px;
background:#2563eb;
color:white;
font-weight:800;
font-size:1.2rem;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
}

.domaine-orange .domaine-icon{
background:#f97316;
}

.sub-list .tag{
display:flex;
align-items:center;
gap:12px;
font-size:1rem;
color:#1a1a1a;
margin-bottom:12px;
line-height:1.4;
}

.tag-icon{
width:24px;
height:24px;
flex-shrink:0;
}

@media(max-width:992px){
.expertises-grid{
grid-template-columns:1fr;
}
}

        /*---VISION---*/
.bg-gris{background:#d3e4edf9}
.mission-row{display:flex;align-items:center;gap:60px;margin-bottom:65px;background:#fff;padding:40px;border-radius:30px}
.mission-row.reverse{flex-direction:row-reverse}
.mission-img{flex:1}
.mission-img img{width:100%;height:350px;object-fit:cover;border-radius:20px;box-shadow:15px 15px 0 var(--orange)}
.mission-text{flex:1.2}
.mission-text h3{font-size:2rem;color:var(--orange);margin-bottom:20px}
.mission-text p{font-size:20px;text-align:justify; color:#000;}
.line{width:60px;height:5px;background:var(--orange);margin-bottom:20px;border-radius:10px}


/*---MISSION---*/
.mission-row{display:flex;align-items:center;justify-content:space-between;gap:40px}
.mission-row.reverse{flex-direction:row-reverse}
.mission-img img{width:auto;height:auto;border-radius:12px;object-fit:none}
.mission-text p{font-size:18px;line-height:1.6;color:#1e293b}

@media(max-width:1024px){
.mission-row{flex-direction:column;gap:30px}
.mission-row.reverse{flex-direction:column}
.mission-img img{width:auto;height:auto;border-radius:12px;object-fit:none}
}


@media(max-width:768px){
.mission-text p{font-size:16px}
}

@media(max-width:576px){
.mission-row{gap:20px}
.mission-text p{font-size:15px}
}


#missions h2{
text-align:center;
font-size:2.8rem;
margin-bottom:50px;
color:#1e293b;
}

#missions h2 span{
color:#f97316;
}

.bg-gris {background:#d3e4edf9}
.mission-row {
    display:flex;
    align-items:center;
    gap:60px;
    margin-bottom:60px;
    background:#fff;
    padding:40px;
    border-radius:30px;
}
.mission-row.reverse {flex-direction:row-reverse}
.mission-img {flex:1}
.mission-img img {
    width:100%;
    height:350px;
    object-fit:cover;
    border-radius:20px;
    box-shadow:15px 15px 0 var(--orange);
}
.mission-text {flex:1.2}
.mission-text h3 {
    font-size:2rem;
    color:var(--orange);
    margin-bottom:20px;
}
.mission-text p {
    font-size:20px;
    text-align:justify;
    line-height:1.5;
}

/* Responsive */
@media(max-width:1024px){
    .mission-row {flex-direction:column;gap:30px}
    .mission-row.reverse {flex-direction:column}
    .mission-text p {font-size:18px}
}
@media(max-width:480px){
    .mission-text h3 {font-size:1.5rem}
    .mission-text p {
        font-size:16px;
        text-align:left;
        word-break:break-word;
    }
}


/* Ligne décorative */
.line {
    width:60px;
    height:5px;
    background:var(--orange);
    margin-bottom:20px;
    border-radius:10px;
}

/* Curseur unique */
#cursor {
    display:inline-block;
    width:2px;
    background:var(--orange);
    animation: blinkCursor 0.7s infinite;
    vertical-align:bottom;
    margin-left:2px;
}

/* Animation curseur */
@keyframes blinkCursor {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}


.map-box{position:relative}
.pump{
position:absolute;
font-size:18px;
color:#fff;
background:#f97316;
border-radius:50%;
padding:4px;
box-shadow:0 0 8px rgba(249,115,22,.7);
opacity:0;
animation:pump 5s infinite
}

/* positions ajustées */
.congo{top:54%;left:47%;animation-delay:0s}
.rdc{top:55%;left:57%;animation-delay:1s}
.gabon{top:50%;left:42%;animation-delay:2s}
.cameroun{top:45%;left:46%;animation-delay:3s}
.angola{top:67%;left:49%;animation-delay:4s}
.rca{top:40%;left:52%;animation-delay:2.5s}
.tchad{top:55%;left:54%;animation-delay:1.5s}


/* animation plus fluide */
@keyframes pump{
0%,85%,100%{opacity:0;transform:scale(.6)}
40%{opacity:1;transform:scale(1)}
60%{opacity:1;transform:scale(1.15)}
}

/* ===== HSE SECTION – PARALLAX EFFECT ===== */
.hse-section {
  width: 100%;
  padding: clamp(3rem, 6vw, 6rem) 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  color: #fff8ec;
}

/* Background image avec effet parallaxe */
.hse-section::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: calc(100% + 100px);
  background-image: url('../images/slider3.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  /* L'animation parallaxe est appliquée via JS avec --parallax-offset */
}

/* Overlay orange très fin pour visualiser le parallaxe */
.hse-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(240, 90, 34, 0.15) 0%,
    rgba(240, 90, 34, 0.25) 50%,
    rgba(240, 90, 34, 0.20) 100%
  );
  z-index: 1;
  pointer-events: none;
}


.hse-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hse-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hse-title i {
  color: #00ffd0;
  margin-right: 0.5rem;
}

.hse-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

/* Objectif */
.hse-goal {
  text-align: center;
  margin-bottom: 3rem;
}

.goal-label {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

.goal-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: #00ffd0;
}

/* Stats */
.hse-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  background: rgb(55 121 146 / 55%);
  border-radius: 16px;
  padding: 1.8rem 1.2rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: bold;
  color: #ffffff;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Diagramme */
.hse-diagram h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.diagram-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  align-items: flex-end;
  height: 220px;
}

.bar {
  position: relative;
  height: calc(var(--value) * 20%);
  background: linear-gradient(to top, #00ffd0, #00aaff);
  border-radius: 8px 8px 0 0;
  transition: height 0.8s ease, opacity 0.6s ease;
}

.bar.zero {
  background: linear-gradient(to top, #00ff88, #00ffd0);
}

.bar span {
  position: absolute;
  bottom: -28px;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 768px) {
  .diagram-bars {
    height: 180px;
  }
}

/* ===============================
   ANIMATIONS D'APPARITION FLUIDES
=============================== */

/* Classes d'animation pour différentes directions */
.animate-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-from-top {
  opacity: 0;
  transform: translateY(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-from-bottom {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* État visible */
.animate-from-left.visible,
.animate-from-right.visible,
.animate-from-top.visible,
.animate-from-bottom.visible,
.animate-fade-in.visible,
.animate-scale-in.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Délais pour animations en cascade */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }
.animate-delay-7 { transition-delay: 0.7s; }
.animate-delay-8 { transition-delay: 0.8s; }

.tv-ticker {
  position: fixed;
  bottom: 0;           /* 🔽 changer en top:0 si besoin */
  left: 0;
  width: 100%;
  height: 55px;
  display: flex;
  background: linear-gradient(90deg, #020617, #020617);
  color: #fff;
  z-index: 99999;      /* 🔒 Toujours au-dessus */
  font-family: Arial, sans-serif;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 1024px) { .hero-content { padding: 0 4%; } }
@media (max-width: 768px) {
  .hero-content { padding: 0 2rem; }
  .hero-brand { font-size: clamp(1.8rem,7vw,2.8rem); }
  .hero-message { font-size: 0.95rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 0.8rem; }
  .slider-controls { padding: 0 1rem; }
  .slider-controls button { font-size: 1.5rem; padding: 0.3rem 0.6rem; }
  .footer-container { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-brand { font-size: clamp(1.6rem,9vw,2.4rem); }
  .hero-message { font-size: 0.9rem; }
}
