
/* ================= ROOT EMS BRAND ================= */
:root{
  /* EMS PRIMARY COLORS */
  --ems-blue: #00bcd4;
  --ems-red: #f0625d;

  /* EMS BRAND GRADIENT COLORS */
  --ems-c1: #49c6e5;
  --ems-c2: #8fd8e8;
  --ems-c3: #f0dfcf;
  --ems-c4: #e6d3be;

  /* GRADIENT MAIN EMS */
  --ems-gradient: linear-gradient(
    135deg,
    #49c6e5 0%,
    #8fd8e8 35%,
    #f0dfcf 70%,
    #e6d3be 100%
  );

  /* DARK & TEXT */
  --ems-dark: #0f172a;
  --ems-gray: #64748b;
  --ems-light: #f8fafc;
}

/* ================= GLOBAL ================= */
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: var(--ems-dark);
}

/* ================= HERO ================= */
.ems-hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: white;
}

/* background image */
.ems-hero-overlay {
  position: absolute;
  inset: 0;
background: linear-gradient(
    to right,  
    rgba(140, 207, 255, 0.316),
    rgba(46, 160, 253, 0.231)
  ),  url("img/teste.png") center/cover no-repeat;

}

/* dark layer */
.ems-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* content */
.ems-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

/* ================= TITLES ================= */
.ems-title {
  font-size: 4.2rem !important;
  font-family: 'Amoura Rosbele', cursive;
    /* PRO spacing */
  letter-spacing: 2px !important;
  line-height: 1.3 !important;
  margin-bottom: 15px;

  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ems-subtitle {
   font-size: 1.4rem;
  font-family: 'Acumin-BdPro';
  color: #fefefe;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);

  line-height: 1.6;
  letter-spacing: 0.5px;
}


/* ================= SECTION GENERAL ================= */

/* ================= SECTION ================= */
.ems-section {
  padding: 90px 20px;
  background: #fff;
}

.ems-section.alt {
  background: var(--ems-light);
}

.ems-section .container {
  max-width: 1100px;
  margin: auto;
}

/* ================= TITLES ================= */
.ems-section-title {
  font-size: 2.3rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--ems-dark);
  position: relative;
}

.ems-section-title::after {
  content: "";
  width: 70px;
  height: 4px;
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
  background: var(--ems-gradient);
}

/* ================= TEXT ================= */
.ems-text {
  font-size: 17px;
  color: var(--ems-gray);
  max-width: 850px;
  margin: 0 auto 15px;
  line-height: 1.8;
  text-align: center;
}

/* ================= GRID ================= */
.ems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

/* ================= CARD ================= */
.ems-card {
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border-left: 4px solid var(--ems-blue);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* hover shine */
.ems-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(73,198,229,0.08),
    transparent
  );
  transition: 0.6s;
}

.ems-card:hover::before {
  left: 100%;
}

.ems-card:hover {
  transform: translateY(-8px);
  border-left: 4px solid var(--ems-red);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* ================= CARD TEXT ================= */
.ems-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ems-dark);
  margin-bottom: 10px;
}

.ems-card-text {
  font-size: 15px;
  color: var(--ems-gray);
  line-height: 1.6;
}

/* ================= SPLIT ================= */
.ems-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* ================= BOX ================= */
.ems-box {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: 0.3s ease;
}

.ems-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.1);
}

/* ================= HEADER ================= */
header {
  background: rgba(0,0,0,0.75) !important;
  backdrop-filter: blur(10px);
}

/* ================= ANIMATIONS ================= */
.ems-hero-content,
.ems-section-title,
.ems-card,
.ems-box {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==========================================
   EMS TRANSFORMATION FLOW - HORIZONTAL UI PRO
   WITH REVIEW-SECTION BACKGROUND
   ========================================== */

.ems-flow{
  margin: 0;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    #8ccfff 0%,
    #a0c5e2 40%,
    #f2dfcf 70%,
    #e8c7a8 100%
  );
  position: relative;
  overflow: hidden;
}

/* Animated light effect */
.ems-flow::before{
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.25),
    transparent 60%
  );
  animation: moveGlow 8s linear infinite;
  pointer-events: none;
}

/* EMS watermark */
.ems-flow::after{
  content: "EMS";
  position: absolute;
  bottom: -30px;
  left: 40px;
  font-family: 'Amoura Rosbele';
  font-size: 130px;
  font-weight: 900;
  letter-spacing: 12px;
  color: rgba(255,255,255,0.22);
  pointer-events: none;
}

@keyframes moveGlow{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ems-flow .container{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin-bottom: 90px;
}

/* ---------- TITLE ---------- */
.flow-title{
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
   font-family: 'Amoura Rosbele'; 
  color: #0f172a;
  margin-bottom: 55px;
  letter-spacing: -0.02em;
}

.flow-title::after{
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a0df, #64d2ff);
}

/* ---------- FLOW ---------- */
.flow{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Hide unused HTML line */
.flow-line{
  display: none;
}

/* ---------- ITEMS ---------- */
.flow-item{
  width: 100%;
}

.flow-item.left,
.flow-item.right{
  margin: 0;
  padding: 0;
}

/* ---------- CARDS ---------- */
.flow-card{
  position: relative;
  height: 100%;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.805);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 10px 30px rgba(15,23,42,0.08),
    0 4px 10px rgba(15,23,42,0.04);
  transition: all 0.3s ease;
}

.flow-card:hover{
  transform: translateY(-5px);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.10),
    0 8px 20px rgba(0,160,223,0.08);
}

.flow-card.highlight{
  background: rgba(255, 255, 255, 0.805);
  border-color: rgba(0,160,223,0.18);
  box-shadow:
    0 14px 32px rgba(0,160,223,0.08),
    0 4px 10px rgba(15,23,42,0.04);
}

/* Connector arrow */
.flow-item:not(:last-child) .flow-card::after{
  content: "→";
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 700;
  color: #00a0df;
  z-index: 3;
}

/* ---------- BADGE ---------- */
.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00a0df, #38c6ff);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0,160,223,0.18);
}

/* ---------- TEXT ---------- */
.flow-card h3{
  margin: 0 0 8px;
  font-size: 1.1rem;
 font-family: 'Acumin-BdPro'; 
  color: #0f172a;
}

.flow-card p{
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
    font-family: 'Acumin-Variable-Concept';
  color: #64748b;
}
/* ==========================================
   MOBILE VERSION PRO
   ========================================== */
   
@media (max-width: 768px) {

  /* ---------- HERO ---------- */
  .ems-hero {
    height: 55vh;
    padding: 110px 18px 70px;
  }

  .ems-hero-content {
    max-width: 100%;
  }

  .ems-title {
    font-size: 2.6rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 14px;
  }

  .ems-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 100%;
    padding: 0 6px;
  }

  /* ---------- GENERAL SECTIONS ---------- */
  .ems-section {
    padding: 60px 16px;
  }

  .ems-section-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 28px;
  }

  .ems-section-title::after {
    width: 60px;
    height: 3px;
    margin-top: 10px;
  }

  /* Supprimer complètement le texte watermark "EMS" dans .ems-flow */
.ems-flow::after{
  content: none;
  display: none;
}
  .ems-text {
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: left;
    max-width: 100%;
  }

  /* ---------- GRID ---------- */
  .ems-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  /* ---------- CARDS ---------- */
  .ems-card {
    padding: 20px 18px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .ems-card:hover {
    transform: translateY(-3px);
  }

  .ems-card-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .ems-card-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* ---------- SPLIT LAYOUT ---------- */
  .ems-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ems-box {
    padding: 20px 18px;
    border-radius: 18px;
  }

  /* ==========================================
     EMS TRANSFORMATION FLOW
     ========================================== */
  .ems-flow {
    padding: 55px 16px;
  }

  .ems-flow .container {
    margin-bottom: 0;
  }

  .ems-flow::after {
    font-size: 68px;
    left: 12px;
    bottom: -8px;
    letter-spacing: 4px;
  }

  .flow-title {
    font-size: 2rem;
    margin-bottom: 34px;
    line-height: 1.2;
  }

  .flow-title::after {
    width: 56px;
    margin-top: 10px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Vertical arrows between cards */
  .flow-item:not(:last-child) .flow-card::after {
    content: "↓";
    top: auto;
    bottom: -22px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    font-size: 1.35rem;
  }

  .flow-card,
  .flow-card.highlight {
    padding: 20px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .badge {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .flow-card h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .flow-card p {
    font-size: 0.88rem;
    line-height: 1.7;
  }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */
@media (max-width: 480px) {

  .ems-title {
    font-size: 2.15rem !important;
  }

  .ems-subtitle {
    font-size: 0.95rem;
  }

  .ems-section-title,
  .flow-title {
    font-size: 1.75rem;
  }

  .ems-flow::after {
    font-size: 52px;
    letter-spacing: 3px;
  }

  .flow-card h3 {
    font-size: 0.95rem;
  }

  .flow-card p,
  .ems-card-text,
  .ems-text {
    font-size: 0.85rem;
  }
}