

/* Define your custom font */
@font-face {
  font-family: 'Amoura Rosbele'; /* Give your font a name */
  src: url('fonts/Amoura Rosbele.otf') format('opentype'); /* Point to the location of the font file */
 }
@font-face {
  font-family: 'Acumin-BdPro'; /* Give your font a name */
  src: url('fonts/Acumin-BdPro.otf') format('opentype'); /* Point to the location of the font file */
}
@font-face {
  font-family: 'Acumin-Variable-Concept'; /* Give your font a name */
  src: url('fonts/Acumin-Variable-Concept.ttf') format('truetype'); /* Point to the location of the font file */
}

/* Header */
.finance-header {
  background-color: #63C4E1;
  color: white;
  text-align: center; 
  padding: 60px 20px;
}

.finance-header h1 {
  font-size:3.8em; font-weight: bold; 
  font-family: 'Amoura Rosbele';
  margin: 0; letter-spacing: 1.4px;
  line-height: 1.3;
}

.finance-header p {
    font-family: 'Acumin-Variable-Concept';
  font-size: 1.2em; margin-bottom: 40px;
  color: #e6f9ff;
}

/* Blocs superposés */
.finance-services {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: -70px; /* chevauchement */
  position: relative;
  z-index: 2;
  padding: 0 20px 60px;
  flex-wrap: wrap;
}

.service {
  width: 300px;
  background: #EAE8E8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.service:hover {
  transform: scale(1.05);
}
.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service h3 {
    color:#0f172a;
    font-family: 'Amoura Rosbele';
  margin: 30px 0 5px;
  font-size: 1.45em;
}

.service p {
  font-size: 0.95em;
  padding: 0 15px 20px;   margin: 15px 0 5px;
  color: #333;
  font-family: 'Acumin-Variable-Concept';

}


.methodologie {
  text-align: center;
  padding: 50px 20px;
  background: white;
}

.methodologie h2 {
  font-family: 'Amoura Rosbele';
  font-size: 2.2em;
  margin-bottom: 40px; margin-top:-50px;
  color:#0f172a;
}
.etapes{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; /* ↓ moins d’espace */
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.etape{
  background: #fff;
  padding: 14px 16px; /* ↓ plus compact */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.etape:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.etape img {
  height: 55px; /* ↓ plus petit */
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.etape h3.bleu {
  color: #00a0df;
  font-size: 0.95rem; /* ↓ plus petit */
  font-family: 'Acumin-Variable-Concept';
  margin-bottom: 6px;
}

.etape p {
  font-family: 'Acumin-Variable-Concept';
  font-size: 0.85rem; /* ↓ plus compact */
  color: #444;
  line-height: 1.4;
}


.ems-section {
  position: relative;
  background: url('img/image.png') center center/cover no-repeat;
  height: 40vh;
  color: white;
  display: flex; 
  align-items: center;
  justify-content: flex-start;
}

.overlay {
  background: rgba(0, 0, 0, 0.4); /* assombrit l'arrière-plan */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-text {
  opacity: 0;
  transform: translateY(40px);
  animation: slideIn 1s ease forwards;
}

.slide-text.delay {
  animation-delay: 0.3s;
}

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

/* =========================
   EMS SECTION PRO
========================= */
.ems-apple{
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
  text-align: center;
    height: 60vh;

    background: linear-gradient(
    135deg,
    #8ccfff 0%,
    #a0c5e2 40%,
    #f2dfcf 70%,
    #e8c7a8 100%
  );
      box-shadow: 0 15px 40px rgba(15,23,42,0.08);

}

/* =========================
   GLOW ROTATION (PROPRE)
========================= */
.ems-apple::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: rotateGlow 10s linear infinite;
}

/* =========================
   LIGHT FLOAT EFFECT (BONUS)
========================= */
.ems-apple .ems-apple-bg{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ems-apple .ems-apple-bg::before{
  content: "";
  position: absolute;

  top: -40%;
  left: -20%;

  width: 140%;
  height: 140%;

  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);

  animation: floatGlow 8s ease-in-out infinite;
}

/* =========================
   EMS WATERMARK
========================= */
.ems-apple::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;
}

/* =========================
   CONTENT
========================= */
.ems-apple-content{
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  color: white;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes rotateGlow{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatGlow{
  0% { transform: translate(0,0); }
  50% { transform: translate(30px,30px); }
  100% { transform: translate(0,0); }
}

/* ❌ PLUS DE CARD */
.ems-apple-content{
  position: relative;
  text-align: center;
  padding: 20px;
  animation: fadeUp 1s ease forwards;
}

/* TITLE clean Apple */
.ems-apple-content h1{
  font-size: 2.5rem;
font-family: 'Amoura Rosbele';  color: #111;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* subtitle simple */
.ems-apple-content p{
  margin-top: 12px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #334155;
}

/* Apple button */
.btn-apple{
  display: inline-block;
  margin-top: 22px;
  padding: 12px 45px;
  font-size: 1.2rem;
  font-weight: 600;

    background: #ff5a4d;
  color: white;
  border-radius: 999px;
  text-decoration: none;

  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(0,113,227,0.25);
}

.btn-apple:hover{
  transform: scale(1.05);
    background: #ff392b;
  box-shadow: 0 15px 35px rgba(0,113,227,0.35);
}

/* animations */
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes floatBg{
  from{ transform: translateY(-10px) scale(1); }
  to{ transform: translateY(10px) scale(1.05); }
}
/* =========================
   MOBILE UX PRO EMS FINANCE
========================= */

@media (max-width: 768px) {

  /* HEADER */
  .finance-header {
    padding: 50px 15px;
  }

  .finance-header h1 {
     font-family: 'Amoura Rosbele';
    font-size: 2.1rem;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #ffffff;
    max-width: 100%;
  }

  .finance-header p {
 font-family: 'Acumin-Variable-Concept';
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    max-width: 90%;
    margin: 0 auto;  }

  /* SERVICES CARDS */
  .finance-services {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: -40px;
  }

  .service {
    width: 90%;
    max-width: 340px;
  }

  .service img {
    height: 160px;
  }

  .service h3 {
    font-size: 1.2rem;
  }

  .service p {
    font-size: 0.9rem;
  }

  /* METHODOLOGY */
  .methodologie h2 {
    font-size: 1.6rem;
    margin-top: -20px;
  }

  .etapes {
    grid-template-columns: 1fr; /* 1 colonne mobile */
    gap: 12px;
    padding: 0 10px;
  }

  .etape {
    padding: 12px;
  }

  .etape img {
    height: 45px;
  }

  .etape h3.bleu {
    font-size: 0.9rem;
  }

  .etape p {
    font-size: 0.8rem;
  }

  /* EMS SECTION IMAGE */
  .ems-section {
    height: 30vh;
  }

  .content {
    padding-left: 15px;
    text-align: center;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 0.95rem;
  }

  /* BUTTONS */
  .btn-contact,
  .content .btn,
  .btn-apple {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* EMS APPLE SECTION */
  .ems-apple {
    padding: 60px 15px;
  }

  .ems-apple-content h1 {
    font-size: 1.6rem;
  }

  .ems-apple-content p {
    font-size: 1rem;
  }

  /* EMS WATERMARK FIX (IMPORTANT UX) */
  .ems-apple::after {
    font-size: 70px;
    left: 10px;
    bottom: -20px;
    opacity: 0.15;
  }
}

/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 480px) {

  .finance-header h1 {
    font-size: 1.6rem;
  }

  .service {
    width: 95%;
  }

  .ems-apple::after {
    display: none; /* clean UX iPhone SE */
  }

  .ems-section {
    height: auto;
    padding: 40px 10px;
  }

  .content h1 {
    font-size: 1.3rem;
  }
}