/*--------------------------------------------------------------
# Catalogue des formations (calendrier.php)
# Styles isolés sous .fc-* pour ne rien changer au reste du site.
--------------------------------------------------------------*/
.fc-page {
    --fc-encre: #1d2130;
    --fc-texte: #555974;
    --fc-discret: #8a8fa3;
    --fc-ligne: #e4e7ee;
    --fc-fond: #f6f7fa;
    --fc-orange: #ef6603;
    --fc-orange-pale: #fff1e6;
    --fc-bleu: #1a7bb2;
    --fc-bleu-pale: #e8f3fa;
    --fc-vert: #2f8f6b;
    --fc-vert-pale: #e6f4ee;
    background: var(--fc-fond);
    padding: 64px 0 90px;
}

/* ---------- En-tête ---------- */
.fc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.fc-head .section-title {
    padding-bottom: 0;
}

.fc-lead {
    max-width: 460px;
    margin: 0;
    color: var(--fc-texte);
    font-size: 15.5px;
    line-height: 1.65;
}

/* ---------- Barre de filtres ---------- */
.fc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
    background: #fff;
    border: 1px solid var(--fc-ligne);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 30px;
}

.fc-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fc-filter-label {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--fc-discret);
    white-space: nowrap;
}

.fc-chips {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--fc-ligne);
    background: #fff;
    color: var(--fc-encre);
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.fc-chip:hover {
    border-color: #c9ceda;
}

.fc-chip:focus-visible,
.fc-btn:focus-visible,
.fc-help-card:focus-visible {
    outline: 2px solid var(--fc-orange);
    outline-offset: 2px;
}

.fc-chip.is-active {
    background: var(--fc-encre);
    border-color: var(--fc-encre);
    color: #fff;
}

.fc-chip-count {
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--fc-fond);
    color: var(--fc-discret);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fc-chip.is-active .fc-chip-count {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.fc-result {
    margin: 0 0 0 auto;
    font-size: 13.5px;
    color: var(--fc-discret);
    white-space: nowrap;
}

.fc-result strong {
    color: var(--fc-encre);
    font-variant-numeric: tabular-nums;
}

/* ---------- Carte formation ----------
   --fc-accent : couleur du liseré, de la graduation et de la bordure au survol
   (type de formation sur le catalogue, disponibilité sur les sessions) */
.fc-card {
    --fc-accent: var(--fc-orange);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #d9dde6;
    border-radius: 14px;
    padding: 26px 24px 24px;
    box-shadow: 0 6px 18px -12px rgba(29, 33, 48, .25);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    animation: fc-apparition .5s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
}

.fc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fc-accent);
}

.fc-item[data-type="initiale"] .fc-card {
    --fc-accent: var(--fc-bleu);
}

.fc-item[data-type="b2xl"] .fc-card {
    --fc-accent: var(--fc-vert);
}

.fc-card:hover {
    border-color: var(--fc-accent);
    box-shadow: 0 20px 38px -22px rgba(29, 33, 48, .45);
    transform: translateY(-3px);
}

.fc-in .fc-card {
    animation: fc-apparition .4s cubic-bezier(.2, .7, .2, 1) both;
}

/* Anime "translate" et non "transform" pour laisser le survol fonctionner */
@keyframes fc-apparition {
    from {
        opacity: 0;
        translate: 0 10px;
    }

    to {
        opacity: 1;
        translate: none;
    }
}

.fc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.fc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-texte);
}

.fc-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fc-orange);
    box-shadow: 0 0 0 3px var(--fc-orange-pale);
}

.fc-kicker--initiale::before {
    background: var(--fc-bleu);
    box-shadow: 0 0 0 3px var(--fc-bleu-pale);
}

.fc-kicker--b2xl::before {
    background: var(--fc-vert);
    box-shadow: 0 0 0 3px var(--fc-vert-pale);
}

/* Code véhicule façon plaque d'immatriculation */
.fc-plate {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    border: 1.5px solid var(--fc-encre);
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    line-height: 1;
}

.fc-plate::before {
    content: "F";
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 13px;
    padding-bottom: 3px;
    background: #1f3f99;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}

.fc-plate span {
    padding: 5px 9px 4px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--fc-encre);
}

.fc-card-title {
    font-family: "Poppins", sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--fc-encre);
    margin: 0 0 4px;
    letter-spacing: -.2px;
}

.fc-card-sub {
    margin: 0;
    color: var(--fc-discret);
    font-size: 14px;
}

/* Graduation discrète, clin d'œil au compteur du logo FCA */
.fc-gauge {
    position: relative;
    height: 7px;
    margin: 20px 0 16px;
    background: repeating-linear-gradient(90deg, #d9dde6 0 1px, transparent 1px 7px);
}

.fc-gauge::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 2px;
    background: var(--fc-accent, var(--fc-orange));
    transition: width .6s cubic-bezier(.2, .7, .2, 1);
}

.fc-card:hover .fc-gauge::after {
    width: 100%;
}

.fc-card-public {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--fc-texte);
}

.fc-card-public i {
    color: var(--fc-discret);
    font-size: 15px;
}

/* ---------- Boutons ---------- */
.fc-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 10px;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.fc-btn-primary {
    flex: 1 1 auto;
    background: var(--fc-encre);
    color: #fff;
}

.fc-btn-primary i {
    color: var(--fc-orange);
    transition: transform .25s ease, color .2s ease;
}

.fc-btn-primary:hover {
    background: var(--fc-orange);
    color: #fff;
}

.fc-btn-primary:hover i {
    color: #fff;
    transform: translateX(3px);
}

.fc-btn-ghost {
    background: #fff;
    color: var(--fc-encre);
    border-color: var(--fc-ligne);
}

.fc-btn-ghost i {
    color: var(--fc-orange);
}

.fc-btn-ghost:hover {
    border-color: var(--fc-encre);
    color: var(--fc-encre);
}

/* ---------- Aucun résultat ---------- */
.fc-empty {
    text-align: center;
    padding: 56px 20px;
    border: 1px dashed #d3d8e3;
    border-radius: 14px;
    background: #fff;
}

.fc-empty > i {
    font-size: 26px;
    color: var(--fc-discret);
}

.fc-empty p {
    margin: 10px 0 18px;
    color: var(--fc-texte);
}

/* ---------- Encarts d'aide ---------- */
.fc-help {
    margin-top: 40px;
}

.fc-help-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px;
    padding: 28px 30px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--fc-ligne);
    color: var(--fc-texte);
}

.fc-help-card strong {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--fc-encre);
    line-height: 1.3;
}

.fc-help-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--fc-orange);
}

.fc-help-text {
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 480px;
}

.fc-help-card--dark {
    position: relative;
    overflow: hidden;
    background: var(--fc-encre);
    border-color: var(--fc-encre);
    color: rgba(255, 255, 255, .72);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Cadran en filigrane */
.fc-help-card--dark::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: repeating-conic-gradient(from -90deg, rgba(255, 255, 255, .14) 0 1deg, transparent 1deg 7.5deg);
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 70%, transparent 71%);
    mask: radial-gradient(circle, transparent 58%, #000 59%, #000 70%, transparent 71%);
    pointer-events: none;
}

.fc-help-card--dark strong {
    color: #fff;
}

.fc-help-card--dark:hover {
    color: rgba(255, 255, 255, .72);
    transform: translateY(-3px);
    box-shadow: 0 22px 40px -24px rgba(29, 33, 48, .7);
}

.fc-help-link {
    margin-top: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
}

.fc-help-link i {
    color: var(--fc-orange);
    margin-left: 4px;
    display: inline-block;
    transition: transform .25s ease;
}

.fc-help-card--dark:hover .fc-help-link i {
    transform: translateX(4px);
}

.fc-help-phone {
    margin-top: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--fc-encre);
    font-variant-numeric: tabular-nums;
}

.fc-help-phone i {
    font-size: 19px;
    color: var(--fc-orange);
    margin-right: 6px;
}

.fc-help-phone:hover {
    color: var(--fc-orange);
}

.fc-help-mail {
    font-size: 14px;
    color: var(--fc-texte);
    text-decoration: underline;
    text-decoration-color: var(--fc-ligne);
    text-underline-offset: 3px;
}

/*--------------------------------------------------------------
# Pages de sessions (sessions-formation.php)
--------------------------------------------------------------*/
.fs-page {
    padding-top: 36px;
}

.fs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 30px;
    font-size: 13.5px;
    color: var(--fc-discret);
}

.fs-breadcrumb a {
    color: var(--fc-texte);
}

.fs-breadcrumb a:hover {
    color: var(--fc-orange);
}

.fs-breadcrumb i {
    font-size: 10px;
}

.fs-breadcrumb span {
    color: var(--fc-encre);
    font-weight: 600;
}

.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 28px 30px;
    margin-bottom: 26px;
    background: #fff;
    border: 1px solid var(--fc-ligne);
    border-radius: 14px;
}

.fs-head-top {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.fs-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--fc-encre);
    margin: 0 0 6px;
}

.fs-sub {
    margin: 0;
    color: var(--fc-discret);
    font-size: 15px;
}

.fs-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fs-count {
    margin: 0 0 16px;
}

/* Carte session : l'accent suit la disponibilité */
.fs-card {
    --fc-accent: var(--fc-vert);
}

.fs-card.is-last {
    --fc-accent: var(--fc-orange);
}

.fs-card.is-soon {
    --fc-accent: var(--fc-bleu);
}

.fs-card.is-full {
    --fc-accent: #c0392b;
}

.fs-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fs-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 62px;
    height: 64px;
    border-radius: 12px;
    background: var(--fc-encre);
    color: rgba(255, 255, 255, .75);
    line-height: 1;
}

.fs-date strong {
    font-family: "Poppins", sans-serif;
    font-size: 23px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.fs-date span {
    margin-top: 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fs-place {
    min-width: 0;
}

.fs-place .fc-card-title {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 3px;
}

.fs-place .fc-card-sub i {
    font-size: 12px;
    margin-right: 2px;
}

.fs-details {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.fs-details li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
    color: var(--fc-texte);
}

.fs-details li + li {
    margin-top: 10px;
}

.fs-details i {
    color: var(--fc-discret);
    font-size: 15px;
    line-height: 1.35;
}

.fs-details strong {
    font-weight: 600;
    color: var(--fc-encre);
    font-variant-numeric: tabular-nums;
}

/* Disponibilité */
.fs-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--fc-vert);
}

.fs-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px var(--fc-vert-pale);
}

.is-last .fs-status {
    color: var(--fc-orange);
}

.is-last .fs-status::before {
    box-shadow: 0 0 0 3px var(--fc-orange-pale);
}

.is-soon .fs-status {
    color: var(--fc-bleu);
}

.is-soon .fs-status::before {
    box-shadow: 0 0 0 3px var(--fc-bleu-pale);
}

.is-full .fs-status {
    color: #c0392b;
}

.is-full .fs-status::before {
    box-shadow: 0 0 0 3px #fbeaea;
}

.is-full .fs-date {
    background: #e9ebf0;
    color: var(--fc-discret);
}

.is-full .fs-date strong {
    color: var(--fc-texte);
}

.fs-card .fc-btn-primary {
    flex: 1 1 100%;
}

.fs-btn-full {
    flex: 1 1 100%;
}

.fs-btn-full i {
    color: var(--fc-orange);
}

.fs-empty .fc-btn {
    display: inline-flex;
}

.fs-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 36px;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--fc-orange-pale);
    color: var(--fc-texte);
}

.fs-notice > i {
    font-size: 20px;
    color: var(--fc-orange);
    line-height: 1.3;
}

.fs-notice p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
}

.fs-notice strong {
    color: var(--fc-encre);
    margin-right: 4px;
}

.fs-notice a {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .fc-result {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .fs-head {
        padding: 22px 20px;
        align-items: stretch;
    }

    .fs-head-actions .fc-btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 767px) {
    .fc-page {
        padding: 44px 0 64px;
    }

    .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 0 12px;
    }

    .fc-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .fc-filter-label,
    .fc-result {
        padding: 0 16px;
    }

    /* Filtres défilables horizontalement plutôt que sur 3 lignes */
    .fc-chips {
        overflow-x: auto;
        padding: 0 16px 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .fc-chips::-webkit-scrollbar {
        display: none;
    }

    .fc-card {
        padding: 20px 20px 20px;
    }

    .fc-card-title {
        font-size: 19px;
    }

    .fc-help-card {
        padding: 24px 22px;
    }
}

@media (hover: none) {
    .fc-card:hover {
        transform: none;
        border-color: #d9dde6;
        box-shadow: 0 6px 18px -12px rgba(29, 33, 48, .25);
    }
}

@media (prefers-reduced-motion: reduce) {

    .fc-card,
    .fc-in .fc-card {
        animation: none;
    }

    .fc-card,
    .fc-gauge::after,
    .fc-help-card--dark {
        transition: none;
    }
}
