/* =========================
   VARIABLES
========================= */
:root {
  --primary: #0a2a43;
  --secondary: #00a6ff;
  --accent: #00d4a6;
  --dark: #061521;
  --light: #f4f7fb;
  --white: #ffffff;
  --text: #2b2b2b;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.7;
}

/* =========================
   HERO SECTION
========================= */
.cash-hero {
  position: relative;
  min-height: 150vh;

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* IMAGE DE FOND */
  background: url('../../../image/cashdeals.jpeg') center/cover no-repeat;

  color: var(--white);
 
}

/* OVERLAY */
.cash-hero .overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(

  );

  z-index: 1;
}

/* TEXTE HERO */
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 500px;
}

/* IMAGE HERO */
.hero-img {
  position: relative;
  z-index: 2;
  width: 45%;
}

.hero-img img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* =========================
   SECTIONS
========================= */
.block {
  max-width: 1150px;
  margin: auto;
  padding: 90px 20px;
}

.block h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary);
}

.block p {
  margin-bottom: 14px;
  font-size: 16px;
}

/* =========================
   LAYOUT SPLIT (PRO)
========================= */
.block.split {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* TEXTE */
.block.split .text {
  flex: 1;
}

/* IMAGE */
.block.split .img {
  flex: 1;
}

/* IMAGE STYLE */
.block.split .img img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  transition: 0.4s;
}

.block.split .img img:hover {
  transform: scale(1.05);
}

/* =========================
   ALTERNANCE
========================= */

/* NORMAL */
.block.split .text {
  order: 1;
}
.block.split .img {
  order: 2;
}

/* REVERSE */
.block.split.reverse .img {
  order: 1;
}
.block.split.reverse .text {
  order: 2;
}

/* =========================
   LISTES
========================= */
.block ul {
  margin-top: 15px;
  padding-left: 20px;
}

.block ul li {
  margin-bottom: 10px;
}

/* =========================
   SECTION CLAIRE (EX-DARK)
========================= */
.block.dark {
  background: #f2f5f9;
  color: var(--text);
  border-radius: 10px;
}

.block.dark h2 {
  color: var(--primary);
}

/* =========================
   CARDS GRID
========================= */
.grid3 {
  max-width: 1150px;
  margin: auto;
  padding: 80px 20px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background: var(--white);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-top: 4px solid var(--secondary);
  transition: 0.3s;
}

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

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* =========================
   SIGNATURE
========================= */
.signature {
  text-align: center;
  padding: 100px 20px;

  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
}

.signature h2 {
  font-size: 34px;
  margin-bottom: 15px;
}

.signature p {
  max-width: 700px;
  margin: auto;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  /* HERO */
  .cash-hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-img {
    width: 100%;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  /* SPLIT */
  .block.split {
    flex-direction: column;
    text-align: center;
  }

  .block.split .img img {
    max-width: 100%;
  }

  /* GRID */
  .grid3 {
    grid-template-columns: 1fr;
  }
}


/* =========================
   HERO MOBILE - IMAGE ENTIÈRE VISIBLE
========================= */
@media (max-width: 900px) {

  .cash-hero {
    min-height: 80vh;
    padding: 30px 0px;

    /* IMPORTANT : centre propre */
    background-position: center;
     background-size: 140% auto;
    background-repeat: no-repeat;

 
  }


}

/* petit mobile */
@media (max-width: 480px) {

  .cash-hero {
    min-height: 35vh;
     background-size: 99% auto;
    background-position: center;
  }
}