/* Pages de vente dédiées (layout « program ») : compléments au gabarit KajaSchool (kajaschool_home/style.css). */

/* Le coréen ne se coupe jamais en milieu de mot. */
.pg-page { word-break: keep-all; }

.pg-page h1, .pg-page h2, .pg-page h3, .pg-page h4, .pg-page h5 { word-break: keep-all; }

/* Aperçu staff (produit hors ligne) */
.pg-staff-notice { background: #fff3cd; color: #6b5500; text-align: center; padding: 8px 15px; font-size: 14px; }

/* Hero (section id="hero-4" : marges et tailles du gabarit ; le titre est un h1, mêmes tailles que le h2 du gabarit) */
.pg-hero .pg-hero-box { background: rgba(255,255,255,0.92); padding: 35px 30px; border-radius: 8px; }
.pg-hero h1.h2-xs { margin-bottom: 12px; }
@media (min-width: 992px) and (max-width: 1199.95px) { .pg-hero h1.h2-xs { font-size: 2.85rem; } }
@media (min-width: 768px) and (max-width: 991.95px) { .pg-hero h1.h2-xs { font-size: 3rem; } }
@media (max-width: 767px) { .pg-hero h1.h2-xs { font-size: 2.25rem; } }
.pg-hero-subtitle { font-size: 21px; font-style: italic; line-height: 1.4; margin-bottom: 22px; }
.pg-hero-intro { font-size: 17px; line-height: 1.6; text-align: justify; }

/* Vidéo YouTube (16/9, rendue uniquement si un identifiant est renseigné) */
.pg-video { position: relative; width: 100%; max-width: 760px; margin: 25px auto 5px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.pg-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Emplacement vidéo (staff uniquement, tant qu'aucun [video=ID] n'est dans le contenu) */
.pg-video-placeholder { display: flex; align-items: center; justify-content: center; background: #f5f5fb; border: 2px dashed #494ca2; color: #494ca2; font-size: 15px; line-height: 1.6; padding: 20px; text-align: center; }
.pg-video-placeholder code { color: #e0457b; }

/* Logo KajaCorée (carré) dans l'en-tête du gabarit */
.pg-logo img { vertical-align: middle; }
.desktoplogo .pg-logo { display: inline-block; padding-top: 10px; }

/* Boutons d'achat */
.pg-btn-center { text-align: center; margin-top: 25px; }
.pg-buy-button { cursor: pointer; white-space: normal; line-height: 1.3; }

/* Démonstration 이거 ___이에요 */
.pg-demo { background: #f5f5fb; border-radius: 10px; padding: 25px 22px; }
.pg-demo-pattern { font-size: 30px; font-weight: 700; text-align: center; margin-bottom: 18px; color: #494ca2; }
.pg-demo-table { width: 100%; border-collapse: collapse; }
.pg-demo-table td { padding: 9px 6px; border-bottom: 1px solid #e2e2ee; vertical-align: top; font-size: 17px; }
.pg-demo-table td:first-child { font-size: 21px; white-space: nowrap; padding-right: 18px; }
.pg-demo-table tr:last-child td { border-bottom: 0; }
.pg-demo-word { color: #e0457b; font-weight: 700; }

/* Bénéfices (boîtes c4-box du gabarit) */
.pg-benefits .c4-box { height: 100%; }
.pg-benefits .c4-box-ico h5 { margin-top: 8px; }

/* Déroulé d'un chapitre */
.pg-steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: pgstep; }
.pg-steps li { position: relative; padding-left: 50px; margin-bottom: 14px; font-size: 17px; line-height: 1.5; min-height: 36px; }
.pg-steps li::before { counter-increment: pgstep; content: counter(pgstep); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #494ca2; color: #fff; font-weight: 700; text-align: center; line-height: 36px; }

/* Bloc d'offre */
.pg-offer { background-size: cover; background-position: center; padding: 70px 0; }
.pg-offer-box { background: rgba(255,255,255,0.95); border-radius: 10px; padding: 35px 30px; max-width: 780px; margin: 0 auto; }
.pg-offer-box .h3-sm { text-align: center; }
.pg-offer-list li { font-size: 17px; }
.pg-offer-price { text-align: center; margin: 25px 0 12px; }
.pg-price-old { font-size: 28px; color: #888; text-decoration: line-through; margin-right: 14px; }
.pg-price-new { font-size: 46px; font-weight: 800; color: #e0457b; }
.pg-price-only { font-size: 46px; font-weight: 800; color: #494ca2; }
.pg-offer-text { text-align: center; font-size: 18px; }

/* Accordéon : questions centrées, liens cliquables visibles */
.pg-objections .card-header { text-align: center; }
/* Le gabarit ne stylait le titre que pour l'id #accordion : on reprend ses réglages (sinon marge basse et interligne de Bootstrap). */
.pg-objections .card-header h5 { line-height: 1.3; letter-spacing: -0.5px; margin: 0; }
.pg-objections .card-header a { cursor: pointer; display: block; }

/* Liens dans le texte (KajaSchool, Hangeul en 14 jours, kajacoree.com) : bien visibles */
.pg-page .txt-block a, .pg-objections .card-body a, .pg-team .txt-block a { color: #ff2813; font-weight: 700; text-decoration: underline; }
.pg-page .txt-block a:hover, .pg-objections .card-body a:hover { color: #c51a0a; }

@media (max-width: 991px) {
    .pg-hero .pg-hero-box { padding: 25px 20px; }
    .pg-demo-pattern { font-size: 26px; }
}

@media (max-width: 767px) {
    .pg-hero .pg-hero-box { padding: 20px 15px; }
    .pg-hero-subtitle { font-size: 18px; }
    .pg-hero-intro { text-align: left; font-size: 16px; }
    .pg-demo { padding: 18px 14px; margin-top: 25px; }
    .pg-demo-pattern { font-size: 24px; }
    .pg-demo-table tr { display: block; border-bottom: 1px solid #e2e2ee; padding: 6px 0; }
    .pg-demo-table tr:last-child { border-bottom: 0; }
    .pg-demo-table td { display: block; border-bottom: 0; padding: 2px 0; }
    .pg-demo-table td:first-child { white-space: normal; padding-right: 0; }
    .pg-offer { padding: 40px 0; }
    .pg-offer-box { padding: 25px 18px; }
    .pg-price-old { font-size: 22px; margin-right: 10px; }
    .pg-price-new, .pg-price-only { font-size: 38px; }
    .pg-btn-center .btn { display: block; width: 100%; }
}

/* Étapes du déroulé (motif image/texte du gabarit) */
.pg-step { margin-bottom: 40px; }
.pg-step-image img { border-radius: 12px; box-shadow: 0 8px 28px rgba(30, 30, 80, 0.14); }
.pg-step-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.pg-step-closing { margin-top: 10px; }

/* Bloc bénéfice livre + recueil : deux couvertures côte à côte */
.pg-covers { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.pg-covers img { max-height: 260px; width: auto; max-width: 100%; border-radius: 6px; box-shadow: 0 6px 20px rgba(30, 30, 80, 0.18); }
.pg-cover-livre { max-width: 45%; }
.pg-cover-recueil { max-width: 55%; }

/* Bloc d'offre : couvertures en petit */
.pg-offer-covers { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 18px 0 22px; }
.pg-offer-covers img { height: 160px; width: auto; max-width: 100%; border-radius: 4px; box-shadow: 0 4px 14px rgba(30, 30, 80, 0.18); }

/* Liste des chapitres, par partie */
.pg-part { margin-bottom: 26px; }
.pg-part-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #494ca2; margin: 0 15px 10px; padding-bottom: 8px; border-bottom: 2px solid #494ca2; }
.pg-part-count { font-weight: 500; text-transform: none; letter-spacing: 0; color: #777; margin-left: 8px; font-size: 14px; }
.pg-chapters { margin-bottom: 10px; }
.pg-chapter { display: flex; align-items: flex-start; padding: 10px 15px; }
.pg-ch-num { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #494ca2; color: #fff; font-weight: 700; text-align: center; line-height: 34px; margin-right: 14px; font-size: 15px; }
.pg-ch-body { display: flex; flex-direction: column; min-width: 0; }
.pg-ch-kr { font-size: 18px; font-weight: 700; color: #2c3e50; line-height: 1.4; }
.pg-ch-var { font-weight: 500; font-size: 16px; color: #555; }
.pg-ch-fr { font-size: 15px; color: #666; line-height: 1.4; margin-top: 2px; }
.pg-chapters-toggle[aria-expanded="true"] { display: none; }

@media (max-width: 767px) {
    .pg-step { margin-bottom: 30px; }
    .pg-step-image { margin-bottom: 16px; }
    .pg-step-title { font-size: 20px; }
    .pg-covers { margin-bottom: 18px; }
    .pg-covers img { max-height: 200px; }
    .pg-offer-covers img { height: 130px; }
    .pg-chapter { padding: 8px 0; }
    .pg-part-title { margin-left: 0; margin-right: 0; }
}
