/* =========================================================
   CELLAL CARD — Site de présentation
   ========================================================= */

:root {
  --orange: #f29c3e;
  --orange-light: #fbc07d;
  --red: #c8262c;
  --red-dark: #8e1a1f;
  --dark: #1b1f2a;
  --gray: #5c6470;
  --gray-light: #8a93a3;
  --bg-muted: #f7f3ef;
  --white: #ffffff;

  --gradient-brand: linear-gradient(135deg, #f6c177 0%, #ee8b3d 45%, #c8262c 100%);
  --gradient-brand-soft: linear-gradient(135deg, #fdf1e2 0%, #fbe3d4 100%);

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 31, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 31, 42, 0.14);

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--dark); color: #fff; }

.section__head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__lead {
  margin-top: 14px;
  color: var(--gray);
  font-size: 1.05rem;
}

.text-light { color: #fff; }
.text-light-muted { color: rgba(255,255,255,0.72); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.eyebrow--light { color: var(--orange-light); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 38, 44, 0.25);
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 38, 44, 0.32); }

.btn--white {
  background: #fff;
  color: var(--red);
}

.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--small { padding: 10px 22px; font-size: 0.85rem; }

/* =========================================================
   Header
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27,31,42,0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand__logo { height: 36px; width: auto; }
.brand__name strong { color: var(--red); }

.nav {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}

.nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--red); }

.nav-cta { flex-shrink: 0; }

.nav__cta-mobile { display: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
  margin: 0 auto;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  z-index: -2;
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  padding-bottom: 60%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 640px;
}

.hero__text h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__text h1 span { display: block; }

.hero__lead {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 520px;
}

.hero__desc {
  margin-top: 16px;
  font-size: 1rem;
  max-width: 520px;
  color: rgba(255,255,255,0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero__media { display: flex; justify-content: center; }

.hero__phone {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   Generic grids
   ========================================================= */

.grid {
  display: grid;
  gap: 28px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   Cards
   ========================================================= */

.card {
  border-radius: var(--radius);
  padding: 32px;
}

.card--light {
  background: var(--bg-muted);
  border: 1px solid rgba(27,31,42,0.06);
}

.card--accent {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 18px; }

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.check-list--light li::before {
  background: #fff;
}

.check-list--light li {
  color: rgba(255,255,255,0.92);
}

/* Problem section */

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}

.problem-grid__media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.problem-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-grid__cards {
  display: grid;
  gap: 24px;
}

/* Info cards (transformation digitale) */

.info-card {
  background: #fff;
  border: 1px solid rgba(27,31,42,0.06);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.info-card--highlight {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
}

.info-card--highlight p { color: rgba(255,255,255,0.9); }

.info-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand-soft);
  color: var(--red);
  margin-bottom: 20px;
}

.info-card--highlight .info-card__icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.info-card__icon svg { width: 26px; height: 26px; }

.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--gray); font-size: 0.95rem; }
.info-card--highlight p { color: rgba(255,255,255,0.92); }

.callout {
  margin-top: 48px;
  text-align: center;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.callout strong { color: var(--red); }
.callout a:hover strong { text-decoration: underline; }

/* Solution overview cards */

.solution-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(27,31,42,0.07);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,38,44,0.25);
}

.solution-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.solution-card__icon svg { width: 28px; height: 28px; }

.solution-card h3 { margin-bottom: 10px; }
.solution-card p { color: var(--gray); flex-grow: 1; }

.solution-card__more {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
}

/* =========================================================
   Feature sections (Wallet / Carte / Plateforme)
   ========================================================= */

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature--reverse .feature__inner {
  direction: rtl;
}

.feature--reverse .feature__inner > * {
  direction: ltr;
}

.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.feature__text h2 { margin-bottom: 18px; }
.feature__text p { color: var(--gray); margin-bottom: 14px; }
.feature__text p strong { color: var(--dark); }

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.source-card {
  border: 1px solid rgba(27,31,42,0.08);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--bg-muted);
}

.source-card h4 { color: var(--red); margin-bottom: 4px; }
.source-card p { margin: 0; font-size: 0.9rem; color: var(--gray); }

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature-list__item {
  border-left: 3px solid var(--orange);
  padding-left: 18px;
}

.feature-list__item h4 { margin-bottom: 4px; }
.feature-list__item p { margin: 0; font-size: 0.92rem; color: var(--gray); }

/* =========================================================
   Stats / benefits
   ========================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
}

.benefit-grid { margin-top: 0; }

.benefit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.benefit-card__icon svg { width: 24px; height: 24px; color: #fff; }

.benefit-card h4 { color: #fff; margin-bottom: 8px; }
.benefit-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }

/* =========================================================
   Pilot section
   ========================================================= */

.pilot-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.pilot-grid__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.pilot-grid__text h2 { margin-bottom: 18px; }
.pilot-grid__text > p { color: var(--gray); margin-bottom: 24px; }

.pilot-grid__text .check-list { margin-bottom: 28px; }
.pilot-grid__text .check-list li { color: var(--gray); }
.pilot-grid__text .check-list strong { color: var(--dark); }

.logo-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
}

.logo-row__item {
  height: 32px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(27,31,42,0.05);
  box-sizing: content-box;
}

.logo-row__item--round { height: 40px; padding: 8px; }

.logo-row__caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* =========================================================
   Vision / sectors / partnership
   ========================================================= */

.sector-grid { margin-bottom: 64px; }

.sector-card {
  background: #fff;
  border: 1px solid rgba(27,31,42,0.06);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.sector-card__emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 14px;
}

.sector-card h4 { margin-bottom: 8px; }
.sector-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }

.partnership {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.partnership__media img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.partnership__text h3 { margin-bottom: 14px; }
.partnership__text p { color: var(--gray); margin-bottom: 24px; }

/* =========================================================
   Contact / CTA
   ========================================================= */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  z-index: -1;
}

.cta__inner { max-width: 760px; }

.cta .section__lead { max-width: 560px; margin-left: auto; margin-right: auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 40px;
  text-align: left;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.contact-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card h4 { color: #fff; margin-bottom: 4px; }
.contact-card p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.92rem; word-break: break-word; }

.cta__btn { margin-top: 8px; }

/* =========================================================
   Comment ça marche — tabs & steps
   ========================================================= */

.nav a.is-active { color: var(--red); }

.page-hero { padding-bottom: 16px; text-align: center; }

.page-hero .section__head { margin-bottom: 32px; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-btn {
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid rgba(27,31,42,0.1);
  background: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover { border-color: rgba(200,38,44,0.3); color: var(--red); }

.tab-btn.is-active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(200, 38, 44, 0.2);
}

.howto { padding-top: 40px; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.howto-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(27,31,42,0.06);
}

.howto-step:first-child { padding-top: 0; }
.howto-step:last-child { border-bottom: none; padding-bottom: 0; }

.howto-step__media {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.howto-step__text { order: 2; }

.howto-step--reverse .howto-step__media { order: 2; }
.howto-step--reverse .howto-step__text { order: 1; }

.app-shot {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(27,31,42,0.06);
}

.howto-step__media--1 .app-shot { max-width: 240px; }
.howto-step__media--2 .app-shot { max-width: 200px; }
.howto-step__media--3 .app-shot { max-width: 150px; }

.howto-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.howto-step__text h3 { margin-bottom: 14px; }
.howto-step__text p { color: var(--gray); }

@media (max-width: 900px) {
  .howto-step {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .howto-step__media,
  .howto-step--reverse .howto-step__media {
    order: -1;
  }

  .howto-step__text,
  .howto-step--reverse .howto-step__text {
    order: 2;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name strong { color: var(--orange-light); }

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer__nav a:hover { color: #fff; }

.footer__copy { font-size: 0.85rem; width: 100%; text-align: center; opacity: 0.6; order: 3; }

@media (min-width: 760px) {
  .footer__copy { width: auto; text-align: right; order: 0; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .partnership { grid-template-columns: 1fr; }
  .partnership__media { order: -1; }
}

@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .burger { display: flex; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(27,31,42,0.06);
  }

  .nav.is-open .nav__cta-mobile {
    display: inline-flex;
    margin-top: 4px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero__lead, .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media { order: -1; }
  .hero__phone { max-width: 260px; }

  .grid--3 { grid-template-columns: 1fr; }

  .problem-grid,
  .feature__inner,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__inner { direction: ltr; }
  .feature__media { order: -1; }

  .source-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .grid--4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .logo-row { gap: 20px; }
  .footer__inner { justify-content: center; text-align: center; }
}
