/* =========================================================
   Page Hamidou — Hero carousel (une seule section, 2 slides)
   Conforme à la maquette Figma "Intégration privée"
   ========================================================= */

.hamidou-section {
  margin: 0;
  width: 100%;
  /* Dégradé pastel visible derrière la carte hero (cf. maquette) */
  background: linear-gradient(169.76deg,
    rgb(232, 245, 225) 1.09%,
    rgb(239, 227, 210) 47.74%,
    rgb(221, 233, 245) 100.12%);
}

/* Carrousel = fenêtre qui masque le défilement horizontal */
.hamidou-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 84px);
  min-height: 600px;
  max-height: 880px;
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Piste qui contient les 2 slides côte à côte */
.hamidou-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Un slide = pleine largeur de la fenêtre */
.hamidou-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hamidou-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Voile sombre dégradé (clair en haut, sombre en bas) */
.hamidou-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg,
    rgba(12, 25, 34, 0.10) 28%,
    rgb(13, 26, 35) 92%);
}

/* ---------------------------------------------------------
   Contenu superposé
   --------------------------------------------------------- */
.hamidou-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px 24px 44px;
  text-align: center;
  z-index: 2;
}

.hamidou-deco {
  display: flex;
  justify-content: center;
}

.hamidou-deco-img {
  width: 88px;
  height: auto;
  opacity: 0.85;
}

/* Bloc principal poussé vers le bas-centre, comme la maquette */
.hamidou-body {
  margin-top: auto;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 760px;
  width: 100%;
}

.hamidou-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.hamidou-title {
  width: 100%;
  color: #ece3d3;
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: break-word;
}

.hamidou-title--lg {
  font-size: 64px;
  line-height: 1.17;
}

.hamidou-subtitle {
  width: 100%;
  color: #fff;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 35px;
}

/* ---- Pastilles méta (20 pages, 5 min, Français) ---- */
.hamidou-meta {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.hamidou-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 23, 33, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.hamidou-pill-icon {
  flex-shrink: 0;
  color: #fff;
}

/* ---- Boutons d'action ---- */
.hamidou-actions {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.hamidou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1 1 0;
  max-width: 320px;
  height: 46px;
  padding: 0 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transition: all 0.25s ease-in;
  cursor: pointer;
}

.hamidou-btn--primary {
  background: #f90;
  border: 1px solid #f90;
}

.hamidou-btn--primary:hover {
  background: #e68a00;
  border-color: #e68a00;
}

.hamidou-btn--ghost {
  background: rgba(23, 39, 53, 0.4);
  border: 1px solid #fff;
}

.hamidou-btn--ghost:hover {
  background: rgba(23, 39, 53, 0.7);
}

.hamidou-btn-icon {
  flex-shrink: 0;
  color: #fff;
}

/* ---- Pagination (dots) ---- */
.hamidou-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hamidou-dot {
  width: 89px;
  height: 8px;
  border: none;
  padding: 0;
  border-radius: 80px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.3s ease;
}

.hamidou-dot.is-active {
  background: #f90;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hamidou-title {
    font-size: 72px;
  }
  .hamidou-title--lg {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .hamidou-carousel {
    height: calc(100svh - 84px);
    min-height: 480px;
    max-height: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }

  .hamidou-content {
    padding: 56px 20px 30px;
  }

  .hamidou-deco {
    margin-top: 8px;
  }

  .hamidou-deco-img {
    width: 56px;
  }

  .hamidou-body {
    gap: 26px;
    margin-bottom: 44px;
  }

  .hamidou-heading {
    gap: 14px;
  }

  .hamidou-title {
    font-size: 46px;
  }

  .hamidou-title--lg {
    font-size: 30px;
    line-height: 1.22;
  }

  .hamidou-subtitle {
    font-size: 15px;
    line-height: 24px;
  }

  /* Pastilles plus compactes pour bien tenir sur une ligne ou deux */
  .hamidou-meta {
    gap: 10px;
  }

  .hamidou-pill {
    height: 36px;
    padding: 0 14px;
    gap: 8px;
    font-size: 13px;
  }

  .hamidou-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hamidou-btn {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 24px;
  }

  .hamidou-dots {
    bottom: 22px;
    gap: 8px;
  }

  .hamidou-dot {
    width: 48px;
  }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .hamidou-title {
    font-size: 40px;
  }

  .hamidou-title--lg {
    font-size: 27px;
  }

  .hamidou-pill {
    font-size: 12px;
    padding: 0 12px;
  }
}
