/* pack-complet.css : la page d'offre spéciale « Pack complet » (/offre-speciale/pack-complet).
 *
 * La page reprend la mise en page et les composants de la page Développeur Agentique : elle charge
 * formation/developpeur-agentique.css (classes .da-*). Ce fichier ne porte que ce qui lui est propre,
 * sous le préfixe .pc- : le haut de page, le bloc « Pack complet », le parcours, le programme repliable.
 * Les captures d'offres d'emploi et les chiffres sont dans /offres-emploi.css, commun avec la page
 * Développeur Agentique. */

/* ------------------------------------------------------------------------------------------------ */
/* Haut de page, sur toute la largeur                                                               */

.pc-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
    max-width: var(--page-width);
    padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 30px) clamp(48px, 6vw, 80px);
}

.pc-hero-title {
    font-size: clamp(38px, calc(3.4vw + 20px), 66px);
    line-height: 1.12;
    max-width: 1050px;
}

.pc-hero-title .accent-color {
    display: inline;
    scale: 1;
    line-height: inherit;
}

.pc-hero-subtitle {
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.5;
    color: #c5c8d3;
    margin: 0;
    max-width: 820px;
    text-align: center;
}

.pc-hero-subtitle strong {
    color: #ffffff;
}

.pc-bubble-urgent {
    border: 1px solid rgba(255, 59, 59, 0.5);
}

/* ------------------------------------------------------------------------------------------------ */
/* Bloc « Pack complet » : les cartes des formations dans un cadre en pointillés                    */

.pc-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    width: 100%;
    margin-top: 34px;
    padding: 64px 36px 40px;
    border: 2px dashed rgba(127, 221, 0, 0.75);
    border-radius: 26px;
    background: radial-gradient(ellipse at 50% 0%, rgba(127, 221, 0, 0.07), rgba(0, 0, 0, 0) 65%);
}

/* L'étiquette, posée à cheval sur le bord du haut. */
.pc-pack-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    padding: 9px 26px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #000000;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 30px 2px rgba(127, 221, 0, 0.45);
}

.pc-pack-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Chaque carte est tournée sur l'axe Y ; elle se redresse au survol. */
.pc-pack-item {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    margin: 0 -6px;
    transform: perspective(1100px) rotateY(22deg);
    transition: transform .35s var(--ease-out-quint);
    filter: drop-shadow(-18px 22px 26px rgba(0, 0, 0, 0.65));
}

.pc-pack-item:hover {
    transform: perspective(1100px) rotateY(0deg) scale(1.04);
    z-index: 2;
}

.pc-pack-item .course-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    height: auto;
    gap: 0;
    background: #0d121b;
    cursor: pointer;
}

.pc-pack-item .course-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    padding: 16px 18px 20px;
}

.pc-pack-item .course-card-title {
    margin: 0;
    font-size: 21px;
}

.pc-pack-item .course-card-description {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
    min-height: 2.9em;
}

.pc-pack-item .course-card-bubbles-container {
    display: flex;
    gap: 8px;
    margin: 2px 0 0;
}

.pc-pack-item .course-message-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pc-pack-item .course-message-container p {
    margin: 0;
}

/* Le prix à l'unité, en bas à droite de la carte. */
.pc-pack-prix {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 3px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.pc-pack-plus {
    flex: 0 0 auto;
    margin: 0 2px;
    z-index: 1;
    font-size: 34px;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 18px rgba(127, 221, 0, 0.6);
}

.pc-pack-totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
}

.pc-pack-totals span {
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(127, 221, 0, 0.1);
    border: 1px solid rgba(127, 221, 0, 0.35);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.pc-pack-totals b {
    color: var(--accent-color);
}

/* Le tarif, sous les cartes : total rayé, prix du pack, « tout compris », puis le bouton. */
.pc-pack-tarif {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-top: 26px;
    border-top: 1px dashed rgba(127, 221, 0, 0.35);
}

.pc-pack-tarif-ligne {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

/* Total rayé en diagonale, du bas à gauche vers le haut à droite. */
.pc-barre {
    position: relative;
    display: inline-block;
    font-size: 30px;
    font-weight: 600;
    color: #8b90a0;
    text-decoration: none;
    white-space: nowrap;
}

.pc-barre::after {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    top: 50%;
    height: 3px;
    border-radius: 2px;
    background: #ff5c5c;
    transform: translateY(-50%) rotate(-16deg);
}

.pc-pack-prix-pack {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-color);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 28px rgba(200, 255, 84, 0.55);
    white-space: nowrap;
}

.pc-pack-mention {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.pc-pack-fois {
    font-size: 16px;
    color: #c5c8d3;
    margin: 0;
}

.pc-pack-note {
    font-size: 14px;
    color: #8b90a0;
    margin: 0;
    text-align: center;
}

.pc-pack-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.pc-pack-cta .button {
    font-size: 18px;
    padding: 18px 44px;
}

.pc-pack-ferme {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* ------------------------------------------------------------------------------------------------ */
/* Le parcours : une carte par étape                                                                */

.pc-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.pc-step {
    display: flex;
    gap: 24px;
    padding: 24px 26px;
    background: var(--course-card-background);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.pc-step-accent {
    border-color: rgba(127, 221, 0, 0.55);
    box-shadow: 0 0 34px -8px rgba(127, 221, 0, 0.35);
}

.pc-step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 190px;
}

a.pc-step-lien {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

h3 a.pc-step-lien:hover {
    color: var(--accent-color);
}

.pc-step-visual img {
    width: 100%;
    aspect-ratio: 750/422;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #024287;
}

.pc-step-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pc-step-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.pc-step-title {
    font-size: 24px;
    line-height: 1.25;
    margin: 0;
}

.pc-step-meta {
    font-size: 14px;
    font-weight: 600;
    color: #8fb4ff;
    white-space: nowrap;
}

.pc-step-text {
    font-size: 17px;
    line-height: 1.55;
    color: #c5c8d3;
    margin: 0;
}

.pc-step-text strong {
    color: #ffffff;
}

.pc-step .course-info-items {
    margin-top: 4px;
}

/* ------------------------------------------------------------------------------------------------ */
/* Le programme, une formation par volet repliable                                                  */

.pc-prog {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 26px;
}

.pc-prog details {
    display: block;
    background: var(--course-card-background);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
}

.pc-prog summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pc-prog summary::-webkit-details-marker {
    display: none;
}

.pc-prog summary::after {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    transition: transform .2s;
}

.pc-prog details[open] summary::after {
    transform: rotate(-135deg);
}

.pc-prog-title {
    flex: 1;
    font-size: 19px;
    font-weight: 700;
}

.pc-prog-meta {
    font-size: 14px;
    font-weight: 600;
    color: #8fb4ff;
    white-space: nowrap;
}

.pc-prog-body {
    display: flex;
    flex-direction: column;
    padding: 0 22px 18px;
}

.pc-prog-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    line-height: 1.4;
}

.pc-prog-row span:first-child {
    flex: 1;
}

.pc-prog-row span:last-child {
    flex: 0 0 auto;
    font-size: 14px;
    color: #8b90a0;
    white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------------ */
/* Les notes des formations, au-dessus des avis                                                     */

.pc-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.pc-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 180px;
    padding: 18px 20px;
    background: var(--course-card-background);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

.pc-note-valeur {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--rating-color);
}

.pc-note-valeur img {
    width: 22px;
    height: 22px;
}

.pc-note-titre {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.pc-note-nombre {
    font-size: 14px;
    color: #8b90a0;
}

/* ------------------------------------------------------------------------------------------------ */
/* Panneau d'achat : les quatre vignettes à la place de la vidéo                                    */

.pc-panel-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #000000;
}

.pc-panel-thumbs img {
    display: block;
    width: 100%;
    aspect-ratio: 750/422;
    object-fit: cover;
}

.pc-panel-barre {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.pc-panel-barre::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    top: 50%;
    height: 2px;
    background: #ff5c5c;
    transform: translateY(-50%) rotate(-16deg);
}

/* ------------------------------------------------------------------------------------------------ */
/* Mobile                                                                                           */

@media (max-width: 900px) {
    .pc-pack {
        padding: 48px 16px 28px;
        gap: 26px;
    }

    .pc-pack-label {
        font-size: 16px;
        padding: 7px 18px;
    }

    .pc-pack-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        align-items: stretch;
    }

    .pc-pack-item {
        max-width: none;
        margin: 0;
        transform: none;
        filter: none;
    }

    .pc-pack-item:hover {
        transform: none;
    }

    .pc-pack-item .course-card {
        height: 100%;
    }

    .pc-pack-plus {
        display: none;
    }

    .pc-pack-item .course-card-title {
        font-size: 17px;
    }

    .pc-pack-item .course-card-description,
    .pc-pack-item .course-message-container {
        display: none;
    }

    .pc-pack-prix {
        position: static;
        align-self: flex-end;
        margin: 0 12px 12px 0;
        font-size: 16px;
    }

    .pc-pack-prix-pack {
        font-size: 48px;
    }

    .pc-barre {
        font-size: 24px;
    }

    .pc-step {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .pc-step-visual {
        flex: 0 0 auto;
        width: 60%;
        align-self: flex-start;
    }

}
