/* =========================================================
   3XR Formation — Catalogue & Certification
   Complément à style.css — réutilise les variables existantes
   ========================================================= */

/* Couleurs des 4 axes (dérivées de la charte) */
:root {
    --axe1: #00cc99;
    --axe2: #333366;
    --axe3: #e07b39;
    --axe4: #8e44ad;
}

/* ---------- PAGE CATALOGUE ---------- */
.cat-page {
    background-color: var(--light-grey);
    padding-bottom: 80px;
}

.cat-intro {
    padding: 70px 0 30px;
    text-align: center;
}

.cat-intro-link {
    margin-top: 20px;
    font-size: 1.05rem;
}

.cat-intro-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.cat-intro-link a:hover { text-decoration: underline; }

/* ---------- FILTRES ---------- */
.cat-filters-section { padding-top: 20px; }

.cat-filters {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.filter-group { margin-bottom: 22px; }

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 10px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    font-family: 'Alata', sans-serif;
    font-size: 0.9rem;
    padding: 9px 18px;
    border: 1px solid #ddd;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.filter-bottom {
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 5px;
}

.cat-search {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Alata', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.cat-search:focus { border: 2px solid var(--primary-color); }

.btn-reset {
    background: none;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    font-family: 'Alata', sans-serif;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--text-dark);
    color: var(--white);
}

.cat-count {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

.cat-count strong { color: var(--text-dark); }

/* ---------- GRILLE RESULTATS ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.cat-card:hover { transform: translateY(-6px); }

.cat-card[data-axe="Axe 1"] { border-top-color: var(--axe1); }
.cat-card[data-axe="Axe 2"] { border-top-color: var(--axe2); }
.cat-card[data-axe="Axe 3"] { border-top-color: var(--axe3); }
.cat-card[data-axe="Axe 4"] { border-top-color: var(--axe4); }

.cat-card-bloc {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin-bottom: 10px;
}

.cat-card-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.badge-axe { color: var(--white); }
.badge-axe[data-axe="Axe 1"] { background: var(--axe1); }
.badge-axe[data-axe="Axe 2"] { background: var(--axe2); }
.badge-axe[data-axe="Axe 3"] { background: var(--axe3); }
.badge-axe[data-axe="Axe 4"] { background: var(--axe4); }

.badge-axe.secondaire {
    background: var(--white);
    border: 1px solid;
}
.badge-axe.secondaire[data-axe="Axe 1"] { color: var(--axe1); border-color: var(--axe1); }
.badge-axe.secondaire[data-axe="Axe 2"] { color: var(--axe2); border-color: var(--axe2); }
.badge-axe.secondaire[data-axe="Axe 3"] { color: var(--axe3); border-color: var(--axe3); }
.badge-axe.secondaire[data-axe="Axe 4"] { color: var(--axe4); border-color: var(--axe4); }

.badge-reflexive {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffe69c;
}

.cat-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cat-card-meta span::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

/* ---------- PRIX SUR LES CARTES ---------- */
.cat-card-prix {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prix-val {
    font-family: 'Roboto Slab', serif;
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
}

.prix-unit {
    font-size: 0.78rem;
    color: #888;
}

.prix-fin {
    font-size: 0.75rem;
    color: var(--dark-blue);
    font-weight: bold;
    margin-top: 4px;
}

/* ---------- BANDEAU TARIFS ---------- */
.tarif-bar {
    max-width: 900px;
    margin: 35px auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.tarif-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 25px;
    border-right: 1px solid #eee;
}

.tarif-item:last-of-type { border-right: none; }

.tarif-prix {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.tarif-lib {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}

.tarif-note {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin: 0;
}

.tarif-note strong { color: var(--dark-blue); }

.cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.05rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: 'Alata', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* ---------- CTA ---------- */
.cat-cta {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.cat-cta h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cat-cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
    opacity: 0.9;
}

/* =========================================================
   PAGE CERTIFICATION
   ========================================================= */
.cert-page { background-color: var(--light-grey); padding-bottom: 80px; }

.cert-intro {
    padding: 70px 0 40px;
    text-align: center;
}

.cert-rule {
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px 30px;
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cert-rule strong { color: var(--text-dark); }

/* --- Formulaire --- */
.cert-form-section { padding-top: 10px; }

.cert-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.cert-step { margin-bottom: 40px; }
.cert-step:last-of-type { margin-bottom: 0; }

.cert-step-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.cert-step-num {
    background: var(--primary-color);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.cert-step-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.cert-step-help {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 18px 47px;
    line-height: 1.5;
}

.cert-axe-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
    margin-left: 47px;
    transition: border 0.3s;
}

.cert-axe-row:hover { border-color: #ddd; }

.cert-axe-info { flex: 1; }

.cert-axe-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 3px;
}

.cert-axe-name[data-axe="Axe 1"] { color: var(--axe1); }
.cert-axe-name[data-axe="Axe 2"] { color: var(--axe2); }
.cert-axe-name[data-axe="Axe 3"] { color: var(--axe3); }
.cert-axe-name[data-axe="Axe 4"] { color: var(--axe4); }

.cert-axe-desc { font-size: 0.85rem; color: #777; }

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.stepper button {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--light-grey);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-family: 'Alata', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.stepper button:hover { background: var(--primary-color); color: var(--white); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper button:disabled:hover { background: var(--light-grey); color: var(--text-dark); }

.stepper output {
    width: 44px;
    text-align: center;
    font-weight: bold;
    font-size: 1.05rem;
    font-family: 'Alata', sans-serif;
}

.cert-check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-left: 47px;
    padding: 18px 20px;
    background: var(--light-grey);
    border-radius: 8px;
}

.cert-check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--primary-color); flex-shrink: 0; }
.cert-check-row label { font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.cert-check-row label strong { display: block; margin-bottom: 3px; }
.cert-check-row label span { color: #777; font-size: 0.85rem; }

/* --- Résultat --- */
.cert-result {
    max-width: 900px;
    margin: 40px auto 0;
    scroll-margin-top: 100px;
}

.cert-verdict {
    border-radius: 12px;
    padding: 35px 40px;
    color: var(--white);
    margin-bottom: 25px;
}

.cert-verdict.ok { background: var(--primary-color); }
.cert-verdict.todo { background: var(--dark-blue); }

.cert-verdict h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.7rem;
    margin-bottom: 12px;
}

.cert-verdict p { line-height: 1.6; opacity: 0.95; }

.cert-gaps { display: grid; gap: 15px; margin-bottom: 30px; }

.gap-item {
    background: var(--white);
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-color);
}

.gap-item.done { border-left-color: #ccc; opacity: 0.75; }

.gap-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gap-icon { font-size: 1.1rem; font-weight: bold; }
.gap-item .gap-icon { color: var(--primary-color); }
.gap-item.done .gap-icon { color: #aaa; }

.gap-title { font-family: 'Roboto Slab', serif; font-size: 1.1rem; }
.gap-detail { font-size: 0.95rem; color: #666; line-height: 1.6; }

.cert-reco { margin-top: 40px; }

.cert-reco h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cert-reco-sub { font-size: 0.95rem; color: #777; margin-bottom: 25px; }

.cert-budget {
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    padding: 28px 32px;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.cert-budget-line {
    font-family: 'Roboto Slab', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cert-budget-line strong { color: var(--primary-color); }

.cert-budget-note {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
}

.cert-budget-note strong { color: var(--dark-blue); }

.cert-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-card { padding: 30px 25px; }
    .cert-axe-row, .cert-check-row, .cert-step-help { margin-left: 0; }
    .cert-axe-row { flex-direction: row; gap: 15px; }
}

@media (max-width: 850px) {
    .tarif-bar { gap: 20px; padding: 22px 18px; }
    .tarif-item { padding: 0 12px; border-right: none; flex: 1; min-width: 90px; }
    .tarif-prix { font-size: 1.5rem; }
    .tarif-lib { font-size: 0.75rem; text-align: center; }
}

@media (max-width: 650px) {
    .cat-grid { grid-template-columns: 1fr; }
    .filter-bottom { flex-direction: column; align-items: stretch; }
    .btn-reset { width: 100%; }
    .cat-filters { padding: 22px 18px; }
    .cert-verdict { padding: 28px 25px; }
    .cert-verdict h2 { font-size: 1.35rem; }
    .cert-actions { flex-direction: column; }
    .cert-actions a { text-align: center; }
    .chip { font-size: 0.82rem; padding: 8px 14px; }
}

/* =========================================================
   PAGE FICHE FORMATION
   ========================================================= */
.fiche-page {
    background-color: var(--light-grey);
    padding: 30px 0 80px;
}

.fiche-breadcrumb { margin-bottom: 20px; }

.fiche-breadcrumb a {
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.fiche-breadcrumb a:hover { color: var(--primary-color); }

.fiche-loading { text-align: center; padding: 60px 20px; color: #888; }

.fiche-notfound { padding: 40px 0 60px; }

.fiche {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}

/* --- En-tête --- */
.fiche-head {
    padding: 45px 50px 35px;
    border-top: 5px solid var(--primary-color);
}

.fiche[data-axe="Axe 1"] .fiche-head { border-top-color: var(--axe1); }
.fiche[data-axe="Axe 2"] .fiche-head { border-top-color: var(--axe2); }
.fiche[data-axe="Axe 3"] .fiche-head { border-top-color: var(--axe3); }
.fiche[data-axe="Axe 4"] .fiche-head { border-top-color: var(--axe4); }

.fiche-bloc {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 12px;
}

.fiche-titre {
    font-family: 'Roboto Slab', serif;
    font-size: 2.1rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.fiche-head .cat-badges { margin-bottom: 25px; }

.fiche-accroche {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #555;
    max-width: 800px;
}

/* --- Corps : 2 colonnes --- */
.fiche-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 0 50px 45px;
}

.fiche-section { margin-bottom: 40px; }
.fiche-section:last-child { margin-bottom: 0; }

.fiche-h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-grey);
}

/* --- Listes --- */
.fiche-list { list-style: none; }

.fiche-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.65;
    color: #444;
    font-size: 0.98rem;
}

.fiche-list.check li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.fiche-list.dot li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* --- Modules --- */
.fiche-modules { list-style: none; counter-reset: mod; }

.fiche-module {
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 14px 18px;
    background: var(--light-grey);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary-color);
}

.fiche-module-num {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 72px;
}

.fiche-module-txt { line-height: 1.6; color: #444; font-size: 0.97rem; }

/* --- Axes --- */
.fiche-axe-line { line-height: 1.7; color: #444; margin-bottom: 8px; }
.fiche-axe-line.secondaire { color: #666; font-size: 0.95rem; }

.fiche-axe-note {
    margin-top: 15px;
    padding: 15px 18px;
    background: #fff8e6;
    border-left: 3px solid #f0c040;
    border-radius: 6px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #6b5518;
}

/* --- Colonne latérale --- */
.fiche-side { align-self: start; position: sticky; top: 100px; }

.fiche-tarif-box {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 204, 153, 0.25);
}

.fiche-tarifs { display: flex; justify-content: center; gap: 20px; }

.fiche-tarif-opt { display: flex; flex-direction: column; }

.fiche-tarif-prix {
    font-family: 'Roboto Slab', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--white);
    line-height: 1;
}

.fiche-tarif-lib {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    margin-top: 5px;
}

.fiche-tarif-unit {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin: 12px 0 20px;
}

.fiche-cta {
    display: block;
    background: #000 !important;
    width: 100%;
    text-align: center;
}

.fiche-tarif-fin {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-top: 15px;
}

.fiche-infos {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 25px;
}

.fiche-info { margin-bottom: 20px; }
.fiche-info:last-child { margin-bottom: 0; }

.fiche-info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 5px;
}

.fiche-info-val {
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

/* --- Bas de fiche --- */
.fiche-foot {
    background: var(--dark-blue);
    color: var(--white);
    padding: 40px 50px;
}

.fiche-foot-opco h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.fiche-foot-opco p {
    line-height: 1.75;
    opacity: 0.9;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.fiche-foot-opco strong { color: var(--primary-color); }

.fiche-foot-note { font-size: 0.85rem !important; opacity: 0.7 !important; }

.fiche-foot-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.fiche-foot-cta .btn-outline { border-color: var(--white); color: var(--white); }
.fiche-foot-cta .btn-outline:hover { background: var(--white); color: var(--dark-blue); }

/* --- Cartes cliquables --- */
a.cat-card { text-decoration: none; color: inherit; display: block; padding: 0; }
a.cat-card:hover .cat-card-title { color: var(--primary-color); }
.cat-card-title { transition: color 0.3s; }
.cat-card-inner { padding: 25px; display: flex; flex-direction: column; height: 100%; }

/* --- Responsive fiche --- */
@media (max-width: 992px) {
    .fiche-body { grid-template-columns: 1fr; gap: 35px; padding: 0 30px 35px; }
    .fiche-side { position: static; }
    .fiche-head { padding: 35px 30px 28px; }
    .fiche-titre { font-size: 1.6rem; }
    .fiche-foot { padding: 30px; }
}

@media (max-width: 650px) {
    .fiche-body { padding: 0 20px 30px; }
    .fiche-head { padding: 28px 20px 22px; }
    .fiche-titre { font-size: 1.35rem; }
    .fiche-foot { padding: 25px 20px; }
    .fiche-foot-cta { flex-direction: column; }
    .fiche-foot-cta a { text-align: center; }
    .fiche-module { flex-direction: column; gap: 6px; }
}

/* ---------- CERTIFICATION : choix statut & triennales ---------- */
.cert-choice {
    display: flex;
    gap: 15px;
    margin-left: 47px;
}

.cert-choice-btn {
    flex: 1;
    text-align: left;
    background: var(--white);
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Alata', sans-serif;
}

.cert-choice-btn:hover { border-color: var(--primary-color); }

.cert-choice-btn.active {
    border-color: var(--primary-color);
    background: rgba(0, 204, 153, 0.06);
}

.cert-choice-t {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cert-choice-t strong { color: var(--primary-color); }

.cert-choice-s {
    display: block;
    font-size: 0.82rem;
    color: #888;
    line-height: 1.4;
}

.cert-tri {
    margin-left: 47px;
    margin-bottom: 22px;
    padding: 18px 20px;
    background: var(--light-grey);
    border-radius: 10px;
}

.cert-tri:last-child { margin-bottom: 0; }

.cert-tri-title {
    font-family: 'Roboto Slab', serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.cert-tri-dates {
    font-family: 'Alata', sans-serif;
    font-weight: normal;
    font-size: 0.85rem;
    color: #999;
}

.cert-tri .cert-axe-row {
    margin-left: 0;
    background: var(--white);
}

@media (max-width: 650px) {
    .cert-choice { flex-direction: column; margin-left: 0; }
    .cert-tri { margin-left: 0; }
}

/* ---------- CERTIFICATION Option B : année, période, encart triennal ---------- */
.cert-year-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 47px;
    flex-wrap: wrap;
}

.cert-year-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: bold;
}

.cert-year-input {
    width: 140px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Alata', sans-serif;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: border 0.25s;
}

.cert-year-input:focus { border-color: var(--primary-color); }

.cert-year-feedback {
    margin: 12px 0 0 47px;
    font-size: 0.92rem;
    line-height: 1.5;
    padding: 10px 15px;
    border-radius: 8px;
}

.cert-year-feedback.ok {
    background: rgba(0, 204, 153, 0.08);
    color: #0a7a5c;
    border-left: 3px solid var(--primary-color);
}

.cert-year-feedback.ok strong { color: var(--dark-blue); }

.cert-year-feedback.err {
    background: #fdecea;
    color: #a3352a;
    border-left: 3px solid #e07b39;
}

/* Bandeau période dans le résultat */
.cert-periode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--dark-blue);
    color: #fff;
    border-radius: 10px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

.cert-periode-lbl {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
}

.cert-periode-val {
    font-family: 'Roboto Slab', serif;
    font-weight: bold;
    font-size: 1.05rem;
}

/* Encart triennal indicatif */
.cert-tri-note {
    background: #fff8e6;
    border: 1px solid #ffe1a3;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.cert-tri-note h4 {
    font-family: 'Roboto Slab', serif;
    font-size: 1.05rem;
    color: #8a6d1a;
    margin-bottom: 8px;
}

.cert-tri-note p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #6b5518;
}

.cert-tri-note strong { color: #5a4712; }

@media (max-width: 650px) {
    .cert-year-row { margin-left: 0; }
    .cert-year-feedback { margin-left: 0; }
    .cert-periode { flex-direction: column; align-items: flex-start; }
}
