/* =========================================================
           PAGE SERVICES — STYLE COHÉRENT AVEC INDEX.PHP
        ========================================================= */

/* ---- Hero ---- */
.page-hero {
  background: var(--blue);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;

  /* --- TECHNIQUE DU MASQUE (Remplace background-image) --- */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;

  /* --- COULEUR DE L'ICÔNE --- */
  /* On utilise du blanc avec une très faible opacité pour qu'il se mélange au bleu du fond */
  /* Cela crée naturellement une nuance "cohérente" de bleu plus clair */
  background-color: rgba(255, 255, 255, 0.12);

  animation: gear-rotate 40s linear infinite;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 600px;
  height: 600px;
  -webkit-mask-image: url("../svg/fraise1.svg");
  mask-image: url("../svg/fraise1.svg");
  animation-direction: reverse;
  animation-duration: 60s;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 30%;
  bottom: -30%;
  width: 400px;
  height: 400px;
  -webkit-mask-image: url("../svg/fraise2.svg");
  mask-image: url("../svg/fraise2.svg");
}

/* On garde la même animation */
@keyframes gear-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.page-hero .breadcrumb-hero {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.page-hero .breadcrumb-hero a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.page-hero .breadcrumb-hero a:hover {
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-hero p.lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 560px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  letter-spacing: 0.02em;
}

/* ---- Section label (idem index) ---- */
.section-label {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  display: block;
  margin-bottom: 0.6rem;
}

/* ---- Présentation — image + texte ---- */
.presentation-section {
  padding: 5rem 0;
}

.presentation-section h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.presentation-section p {
  color: var(--light-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.img-formation {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  object-fit: cover;
  height: 420px;
}

/* ---- Chiffres clés ---- */
.stats-band {
  background: var(--blue);
  padding: 3rem 0;
}

.stats-band .stat-item {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-band .stat-item:last-child {
  border-right: none;
}

.stats-band .stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stats-band .stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---- Cards outils ---- */
.outils-section {
  padding: 5rem 0;
  background: #f7f8fa;
}

.outil-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  height: 100%;
}

.outil-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

.outil-icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #fff;
}

.outil-card h5 {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.outil-card p {
  color: var(--light-dark);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- Section image pleine largeur avec texte ---- */
.split-section {
  padding: 5rem 0;
}

.split-section img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
}

.split-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.split-section p {
  color: var(--light-dark);
  line-height: 1.8;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--light-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.check-list li i {
  color: var(--blue);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ---- Formateurs ---- */
.formateurs-section {
  padding: 5rem 0;
  background: #f7f8fa;
}

.formateur-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  border-top: 3px solid var(--blue);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.formateur-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
}

.formateur-avatar {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.formateur-card h5 {
  font-weight: 800;
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.formateur-card .role {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: block;
}

.formateur-card .company {
  font-size: 0.82rem;
  color: var(--light-dark);
  line-height: 1.6;
}

.formateur-card a {
  font-size: 0.82rem;
  color: var(--blue);
  word-break: break-all;
}

/* ---- Tarification ---- */
.tarif-section {
  padding: 5rem 0;
}

.tarif-box {
  background: var(--blue);
  border-radius: 12px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.tarif-box::after {
  content: "";
  position: absolute;
  right: -5%;
  top: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.tarif-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tarif-box .price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: 1rem 0 0.3rem;
}

.tarif-box .price-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.tarif-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.tarif-box ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tarif-box ul li i {
  color: rgba(255, 255, 255, 0.7);
}

.tarif-info {
  padding: 2rem;
}

.tarif-info h4 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
}

.tarif-info .step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.tarif-info .step-num {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tarif-info .step-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.tarif-info .step-text span {
  font-size: 0.85rem;
  color: var(--light-dark);
  line-height: 1.5;
}

/* ---- Satisfaction ---- */
.satisfaction-section {
  padding: 4rem 0;
  background: #f7f8fa;
}

.satisfaction-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.satisfaction-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.satisfaction-card h5 {
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.satisfaction-card p {
  color: var(--light-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ---- CTA Banner (idem index) ---- */
.cta-banner {
  background: var(--blue);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  top: -200px;
  left: -100px;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ---- Reveal animations (identiques à index) ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.reveal-left {
  transform: translateX(-36px);
}

.reveal.reveal-right {
  transform: translateX(36px);
}

.reveal.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Qualiopi badge ---- */
.qualiopi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  margin-top: 1.2rem;
}

.qualiopi-badge span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.qualiopi-badge i {
  color: var(--blue);
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .stats-band .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .tarif-box {
    margin-bottom: 2rem;
  }
  .img-formation {
    height: 260px;
  }
  .split-section img {
    height: 280px;
  }
}
