@layer ancien {
/* 08-cta.css — bandeau CTA de fin de page (§ 5, § 6, § 8) : image plein cadre + voile rgba(4, 20, 38, .55) ; hauteur
   550 / 500 px, ≥ 480 px en mobile ; contenu centré verticalement (écarts égaux ; ≥ 120 px à 1440 quand le contenu le
   permet, voir le rapport du lot 2) ; 80 px en haut et en bas en mobile (hauteur libre).
   Textes centrés (cta--centre), alignés à gauche (cta--gauche : Formations) ; Contact (cta--contact) : titre et P à
   gauche, 4 petites cartes sans fond (icône + P) en ligne et bouton à droite ≥ 1000 px, empilés en dessous.
   Empilement : image (−2) < voile (−1) < contenu (1), dans le contexte isolé du bandeau. */

.cta {
  --fond-section: var(--fond-principal);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 550px;
  background-color: var(--fond-principal);
}

.cta__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(4, 20, 38, 0.55);
}

.cta__contenu {
  position: relative;
  z-index: 1;
}

.cta__contenu > .surtitre + h2,
.cta__texte > .surtitre + h2 {
  margin-top: var(--espace-surtitre-titre);
}

.cta__contenu > h2 + p,
.cta__texte > h2 + p {
  margin-top: var(--espace-titre-texte);
}

.cta__contenu > p + .boutons {
  margin-top: var(--espace-avant-bouton);
}

/* Centré : P sur une ligne de 880 px au plus (le contenu du CTA de Nos solutions tient ainsi dans 550 − 2 × 120 px). */
.cta--centre .cta__contenu {
  text-align: center;
}

.cta--centre .surtitre,
.cta--centre .boutons {
  justify-content: center;
}

.cta--centre .cta__contenu > p {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

/* À gauche (Formations) : colonne de texte de 760 px au plus. */
.cta--gauche .cta__contenu > * {
  max-width: 760px;
}

/* Contact : texte (P de 640 px au plus), puis cartes et bouton. */
.cta--contact .cta__texte {
  max-width: 760px;
}

.cta--contact .cta__texte > p {
  max-width: 640px;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

.cta__cartes {
  display: flex;
  flex: 1 1 auto;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Petites cartes sans fond, séparées par des filets (maquette de Contact, A-23) ; icône 40 px, texte dessous. */
.cta__carte {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.cta__carte:first-child {
  padding-left: 0;
  border-left: 0;
}

.cta__carte .icone {
  width: 40px;
  height: 40px;
}

.cta__carte p {
  font-size: 15px;
  font-weight: 500; /* Texte de carte, A-33 */
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--texte-principal);
}

.cta__actions .boutons {
  flex: none;
}

@media (max-width: 1199px) {
  .cta {
    height: 500px;
  }
}

@media (max-width: 999px) {
  .cta__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-top: 32px;
  }

  .cta__cartes {
    align-self: stretch;
  }
}

@media (max-width: 767px) {
  .cta {
    height: auto;
    min-height: 480px;
    padding: 80px 0;
  }

  .cta__cartes {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .cta__carte {
    flex: 1 1 45%;
    padding: 0 16px 0 0;
    border-left: 0;
  }
}

/* Tour 3 du lot 5 : fidélité à la maquette (A-01 v5, T5a, P1) : texte des CTA 20 px (maquette : 19 à 20,3 px ;
   À propos 22 px, dans 30-a-propos.css), interligne 1,5 ; 820 et 390 dans la proportion du Lead (19 / 17). CTA de
   550 px et contenu centré inchangés (A-30, A-34). */
.cta__contenu > p:not(.surtitre),
.cta__texte > p:not(.surtitre) {
  font-size: 20px;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  .cta__contenu > p:not(.surtitre),
  .cta__texte > p:not(.surtitre) {
    font-size: 19px;
  }
}

@media (max-width: 767px) {
  .cta__contenu > p:not(.surtitre),
  .cta__texte > p:not(.surtitre) {
    font-size: 17px;
  }
}

}
