/* ========================================================================== 
   IA FORMATION — Page Formations
   À charger après accueil.css
   ========================================================================== */

.formations-page .inner-header {
    min-height: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(98, 75, 192, .19), transparent 27%),
        linear-gradient(130deg, #fbfaff 0%, #f2effc 52%, #ffffff 100%);
}

.formations-page .inner-header::after {
    right: -20px;
    bottom: -175px;
    font-size: 330px;
}

.page-hero {
    position: relative;
    z-index: 1;
    padding-top: 82px;
    padding-bottom: 88px;
}

.page-hero-copy { max-width: 900px; }

.page-hero h1 {
    margin: 0;
    max-width: 900px;
    color: var(--ia-ink);
    font-size: clamp(40px, 4.8vw, 60px);
    line-height: 1.07;
    font-weight: 750;
    letter-spacing: -.04em;
}

.page-hero h1 span { color: var(--ia-purple); }

.page-hero-lead {
    max-width: 820px;
    margin: 26px 0 0 !important;
    color: #4d4a58 !important;
    font-size: 18px;
    line-height: 1.75;
}

.formations-page .section h2,
.formations-page .why-section h2,
.formations-page .custom-path-section h2 {
    color: var(--ia-ink);
}

.section-lead {
    max-width: 800px;
    margin: 20px auto 0 !important;
    color: #5a5664 !important;
    font-size: 16px;
    line-height: 1.75;
}


/* ---------- Pourquoi ---------- */
.why-section {
    padding: 88px 0 92px;
    background: var(--ia-bg);
    border-top: 1px solid var(--ia-line);
    border-bottom: 1px solid var(--ia-line);
}

.compact-heading { margin-bottom: 46px; }
.compact-heading h2,
.programmes-heading h2,
.metiers-heading h2 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #dcd8e8;
    border-bottom: 1px solid #dcd8e8;
}

.why-card {
    min-height: 185px;
    margin: 0;
    padding: 25px 22px;
    border-right: 1px solid #dcd8e8;
    background: transparent;
    border-radius: 0;
}

.why-card:first-child { border-left: 1px solid #dcd8e8; }
.why-card span { color: #a49db7; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.why-card h3 { margin: 18px 0 11px; color: var(--ia-purple); font-size: 18px; line-height: 1.3; }
.why-card p { margin: 0 !important; color: #5b5764 !important; font-size: 13px; line-height: 1.6; }

.difference-line {
    max-width: 850px;
    margin: 38px auto 0 !important;
    padding-left: 19px;
    border-left: 3px solid var(--ia-purple);
    color: #3e394b !important;
    font-size: 16px;
    line-height: 1.65;
}

/* ---------- Formations métier ---------- */
.metiers-section { background: #fff; }
.metiers-heading { margin-bottom: 52px; }

.metier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.metier-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 27px;
    border: 1px solid var(--ia-line);
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.metier-card:hover {
    transform: translateY(-4px);
    border-color: #cec7e8;
    box-shadow: 0 16px 38px rgba(36, 23, 94, .07);
}

.metier-number {
    display: block;
    margin-bottom: 15px;
    color: #aaa4bc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.metier-card h3 {
    margin: 0 0 13px;
    color: var(--ia-purple);
    font-size: 20px;
    line-height: 1.28;
    letter-spacing: -.018em;
}

.metier-card .metier-pitch {
    margin: 0 0 14px !important;
    color: #34313b !important;
    font-size: 13px;
    line-height: 1.62;
    font-weight: 700;
}

.metier-card .metier-topics {
    flex: 1;
    margin: 0 0 20px !important;
    color: #716c79 !important;
    font-size: 11.5px;
    line-height: 1.65;
}

.metier-card > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--ia-line);
    color: var(--ia-purple);
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.metier-card > a:hover { color: var(--ia-purple-dark); }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1199px) {
    .why-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 0; }
    .why-card { border-bottom: 1px solid #dcd8e8; }
    .programme-grid, .metier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media only screen and (max-width: 959px) {
    .section-intro-grid { grid-template-columns: 1fr; gap: 45px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 767px) {
    .page-hero { padding: 58px 18px 66px; }
    .page-hero h1 { font-size: 40px; }
    .page-hero-lead { font-size: 16px; }
    .outcomes-section, .programmes-section, .metiers-section { padding-left: 18px; padding-right: 18px; }
    .why-section { padding: 70px 18px; }
    .outcome-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .why-card, .why-card:first-child { border-left: 1px solid #dcd8e8; }
    .programme-grid, .metier-grid { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 468px) {
    .page-hero h1 { font-size: 34px; }
    .programme-meta div { grid-template-columns: 1fr; gap: 3px; }
    .programme-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

 .metier-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e3ee;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}


/* Image d'entête */
.metier-image {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
    background: #eceaf4;
}

.metier-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.metier-card:hover .metier-image img {
    transform: scale(1.035);
}


/* Placeholder temporaire */
.metier-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    background:
        linear-gradient(
            135deg,
            #f1f0f7 0%,
            #e7e4f2 100%
        );
}


/* Contenu */
.metier-card-content {
    position: relative;
    padding: 26px 20px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* Numéro légèrement superposé à l'image */
.metier-number {
    position: absolute;
    top: -22px;
    left: 18px;

    width: 46px;
    height: 46px;

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

    background: #34257a;
    color: #fff;

    border: 3px solid #fff;
    border-radius: 50%;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 700;
}


/* Titre */
.metier-card h3 {
    margin: 10px 0 12px;
}


/* Bouton/lien en bas */
.metier-card-content > a {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ia-line);
  color: var(--ia-purple);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.metier-image {
    aspect-ratio: 16 / 9;
    height: auto;
}

/* =========================================================
   OUTCOMES
   ========================================================= */

.outcomes-section {
    background: #f7f6fb;
}

.outcomes-heading {
    max-width: 780px;
    margin-bottom: 35px;
}

.outcomes-heading h2 {
    margin-top: 8px;
}


/* Grille pleine largeur */
.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}


/* Carte */
.outcome-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd9ea;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}


/* Partie texte */
.outcome-content {
    min-height: 40px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 12px;
}

.outcome-content span {
    flex: 0 0 auto;

    color: #34257a;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
}

.outcome-content p {
    margin: 0;
    padding: 0;

    color: #222;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    font-weight: 600;
}


/* Image */
.outcome-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #eceaf3;
}

.outcome-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .35s ease;
}

.outcome-item:hover .outcome-image img {
    transform: scale(1.035);
}


/* TABLETTE */
@media only screen and (max-width: 959px) {

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

    .outcome-image {
        height: 190px;
    }
}


/* MOBILE */
@media only screen and (max-width: 600px) {

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

    .outcome-content {
        min-height: auto;
    }

    .outcome-image {
        height: 210px;
    }
}

/* =========================================================
   CARTES PARCOURS AVEC IMAGE
   ========================================================= */

.programme-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedbe9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}


/* Zone visuelle supérieure */
.programme-card-top {
    position: relative;
    min-height: 360px;
    padding: 30px 28px 35px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Overlay pour lisibilité */
.programme-card-top::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            105deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.96) 36%,
            rgba(255,255,255,.82) 55%,
            rgba(255,255,255,.35) 72%,
            rgba(255,255,255,0) 100%
        );

    z-index: 0;
}


/* Tout le contenu texte reste au-dessus */
.programme-card-top > * {
    position: relative;
    z-index: 1;
}


/* Numéro */
.programme-index {
    display: block;
    margin-bottom: 22px;

    color: #9a94b5;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 800;
}


/* Titre */
.programme-card-top h3 {
    max-width: 72%;
    margin: 0 0 14px;

    color: #34257a;
    font-size: 24px;
    line-height: 1.18;
}


/* Sous-titre */
.programme-subtitle {
    max-width: 70%;
    margin-bottom: 20px;

    color: #111;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}


/* Texte courant */
.programme-card-top > p:not(.programme-subtitle):not(.compact-features) {
    max-width: 68%;

    color: #555;
    line-height: 1.55;
}


/* Pour les cartes plus longues */
.programme-card-top .compact-features {
    max-width: 72%;
}


/* =========================================================
   MÉTADONNÉES
   ========================================================= */

.programme-meta {
    padding: 0 28px;
    background: #fff;
}

.programme-meta > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;

    padding: 13px 0;
    border-top: 1px solid #dedbe9;
}

.programme-meta span {
    color: #8c879d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.programme-meta strong {
    color: #302d3a;
    font-size: 15px;
}


/* =========================================================
   LIEN CTA
   ========================================================= */

.programme-link {
    margin-top: auto;
    padding: 22px 28px;

    background: #f5f3fb;
    border-top: 1px solid #dedbe9;

    color: #34257a;
    font-weight: 800;
    text-transform: uppercase;
}

.programme-link:hover {
    background: #ece8f8;
}


/* =========================================================
   IMAGES PAR CARTE
   ========================================================= */

.programme-card-01 .programme-card-top {
    background-image: url("../images/parcours-executive.jpg");
}

.programme-card-02 .programme-card-top {
    background-image: url("../images/parcours-business.jpg");
}

.programme-card-03 .programme-card-top {
    background-image: url("../images/parcours-metier.jpg");
}

.programme-card-04 .programme-card-top {
    background-image: url("../images/parcours-transformation.jpg");
}

.programme-card-05 .programme-card-top {
    background-image: url("../images/parcours-afest.jpg");
}

.programme-card-06 .programme-card-top {
    background-image: url("../images/parcours-certifiant.jpg");
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.programme-card p {
  margin: 0 0 14px !important;
  color: #5d5965 !important;
  font-size: 13px;
  line-height: 1.67;
}

.programme-promise {
  margin: 14px 0 0 !important;
  color: var(--ia-purple) !important;
  font-size: 12px !important;
  font-weight: 750;
}

.programme-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 17px 29px;
    background: #f7f5fc;
    border-top: 1px solid var(--ia-line);
    color: var(--ia-purple);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.programme-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 9px;
  border-radius: 99px;
  background: var(--ia-purple-soft);
  color: var(--ia-purple);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* MOBILE */
@media only screen and (max-width: 600px) {

    .programme-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}

.custom-path-section {
    padding: 0 18px 70px;
    background: #fff;
}

.custom-path-box {
    display: grid;
    grid-template-columns: 36% 64%;
    overflow: hidden;

    background: #f3f3f3;
    border-radius: 14px;
}

/* IMAGE */

.custom-path-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.custom-path-image img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: 15% center;
}


/* Fondu image → contenu */

.custom-path-image::after {
    content: "";
    position: absolute;
    z-index: 2;

    top: 0;
    right: 0;
    bottom: 0;

    width: 32%;

    background: linear-gradient(
        to right,
        rgba(243, 243, 243, 0) 0%,
        rgba(243, 243, 243, 0.35) 35%,
        rgba(243, 243, 243, 0.80) 72%,
        #f3f3f3 100%
    );

    pointer-events: none;
}


/* CONTENU */

.custom-path-content {
    position: relative;
    z-index: 3;
    margin-left: -1px;

    padding: 60px 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* CONTENU */

.custom-path-content {
    padding: 60px 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.custom-path-content .section-kicker {
    margin: 0 0 14px;
    color: #34257a;
}

.custom-path-content h2 {
    margin: 0 0 20px;

    color: #26232d;
    font-size: 38px;
    line-height: 1.15;
}

.custom-path-lead {
    margin-bottom: 16px;

    color: #26232d;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
}

.custom-path-content p {
    max-width: 850px;
    color: #676471;
    font-size: 16px;
    line-height: 1.7;
}

.custom-path-content p strong {
    color: #26232d;
}


/* CTA */

.custom-path-action {
    margin-top: 12px;
}

.custom-path-action .button {
    margin: 0;
}


/* TABLETTE */

@media only screen and (max-width: 959px) {

    .custom-path-box {
        grid-template-columns: 40% 60%;
    }

    .custom-path-content {
        padding: 45px 40px;
    }

    .custom-path-content h2 {
        font-size: 32px;
    }
}


/* MOBILE */

@media only screen and (max-width: 767px) {

    .custom-path-box {
        grid-template-columns: 1fr;
    }

    .custom-path-image {
        min-height: 280px;
        max-height: 340px;
    }

    .custom-path-content {
        padding: 38px 28px 42px;
    }

    .custom-path-content h2 {
        font-size: 28px;
    }
}