/* Pages editoriales FH - classes isolees pour preserver les ajustements du site. */
.fh-static {
    padding-block: clamp(42px, 6vw, 88px)
}

.fh-static-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(260px, .7fr);
    gap: clamp(26px, 4vw, 64px);
    align-items: start;
}

.fh-static-main,
.fh-static-sidebar {
    min-width: 0
}

.fh-static-main h1 {
    font-size: clamp(2.15rem, 3.3vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    margin: 12px 0 27px;
    color: #153447
}

.fh-static-image {
    display: block;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 7px;
    margin-bottom: 26px
}

.fh-static-intro {
    font-size: clamp(1.14rem, 1.55vw, 1.35rem);
    line-height: 1.55;
    font-weight: 650;
    color: #25485b;
    margin-bottom: 22px
}

.fh-static-body {
    color: #27485a;
    font-size: 1.04rem;
    line-height: 1.75
}

.fh-static-body p {
    margin: 0 0 19px
}

.fh-static-body h2 {
    font-size: clamp(1.3rem, 1.6vw, 1.65rem);
    line-height: 1.25;
    color: #007ebd;
    margin: 0 0 13px
}

.fh-static-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 28px 0 10px
}

.fh-static-side-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 22px 21px;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 7px 23px #1534471f;
    border: 1px solid #dfe9ef;
    border-radius: 6px;
    color: #153447;
    text-decoration: none;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.35
}

.fh-static-side-link:hover,
.fh-static-side-link:focus-visible {
    color: #007ebd;
    border-color: #93c7df
}

.fh-static-side-link span {
    color: #007ebd
}

.fh-static-documents {
    margin-top: 34px;
    padding: 23px 28px;
    background: #f2f7f9;
    border: 1px solid #d9e8ee;
    border-radius: 6px
}

.fh-static-documents h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #17394c
}

.fh-static-documents ul {
    padding-left: 22px;
    margin: 0
}

.fh-static-documents li {
    margin: 8px 0;
    line-height: 1.5
}

.fh-static-documents a {
    color: #006eaa
}

.fh-static-breadcrumb {
    margin-bottom: 25px;
    color: #547386;
    font-size: .95rem
}

.fh-static-breadcrumb a {
    color: #007ebd
}

.fh-static-draft {
    border: 1px solid #d4e3eb;
    background: #f4f8fa;
    padding: 14px 18px;
    margin-bottom: 25px;
    color: #365d71
}

/* Cartes multi-liens dans la navigation laterale des pages statiques. */
.fh-static-side-group {
    background: #fff;
    border: 1px solid #dce5ea;
    border-radius: 6px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(18, 48, 66, .07);
    min-width: 0;
}
/* Élément non cliquable dans les groupes de liens */
.fh-static-side-group .fh-static-side-current {
    display: block;
    padding: 10px 0;
    color: var(--navy);
    font-weight: 700;
    cursor: default;
}

.fh-static-side-group h2 {
    color: #123042;
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 12px;
}
.fh-static-side-group ul { list-style: none; padding: 0; margin: 0; }
.fh-static-side-group li + li { border-top: 1px solid #e5edf1; }
.fh-static-side-group a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    color: #007fbd;
    font-weight: 650;
    font-size: 13px;
    text-decoration: none;
}
.fh-static-side-group a:hover { text-decoration: underline; }
.fh-static-side-group a span { flex-shrink: 0; }


/* =====================================================
   FH - Tableaux génériques
   Utilisables sur toutes les pages statiques
   ===================================================== */

.fh-table-responsive {
    width: 100%;
    min-width: 0;
    margin: 26px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.fh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
}

.fh-table th,
.fh-table td {
    padding: 13px 15px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #dce7ed;
    overflow-wrap: anywhere;
}

.fh-table thead {
    background: #e8f4f9;
}

.fh-table thead th {
    color: #123042;
    font-weight: 700;
}

.fh-table tbody th {
    color: #183242;
    font-weight: 700;
}

.fh-table tbody tr:hover {
    background: #f2f8fa;
}

/* Variante compacte */
.fh-table-compact th,
.fh-table-compact td {
    padding: 8px 10px;
    font-size: 13px;
}


/* =========================================
   FH - Texte avec image à droite
   ========================================= */

.fh-text-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
    align-items: center;
    gap: 30px;
    margin: 28px 0;
}

.fh-text-image-content {
    min-width: 0;
}

.fh-text-image-content p:last-child {
    margin-bottom: 0;
}

.fh-text-image-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Variante en fiches sur smartphone */
@media (max-width: 650px) {

    .fh-table-cards,
    .fh-table-cards tbody,
    .fh-table-cards tr,
    .fh-table-cards th,
    .fh-table-cards td {
        display: block;
        width: 100%;
    }

    .fh-table-cards thead {
        display: none;
    }

    .fh-table-cards tbody tr {
        padding: 15px;
        margin-bottom: 12px;
        background: #fff;
        border: 1px solid #dce7ed;
        border-radius: 7px;
    }

    .fh-table-cards tbody th,
    .fh-table-cards tbody td {
        padding: 4px 0;
        border: 0;
    }

    .fh-table-cards tbody th::before,
    .fh-table-cards tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #647985;
        font-size: 11px;
        font-weight: 500;
    }

    .fh-table-cards tbody th:empty,
    .fh-table-cards tbody td:empty {
        display: none;
    }

    .fh-text-image {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fh-text-image-media {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }
}




@media(max-width:900px) {
    .fh-static-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .fh-static-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .fh-static-side-link {
        margin: 0
    }
}

@media(max-width:600px) {

    .fh-static-columns,
    .fh-static-sidebar {
        grid-template-columns: minmax(0, 1fr)
    }

    .fh-static-main h1 {
        margin-bottom: 20px
    }

    .fh-static-side-link {
        padding: 17px
    }
}










/* =========================================
   FH - Animations des pages statiques
   ========================================= */

@media (prefers-reduced-motion: no-preference) {

    /* Fil d'Ariane */
    .fh-static-breadcrumb {
        animation: fh-fade-in 400ms ease-out both;
    }

    /* Contenu principal */
    .fh-static-main {
        animation: fh-slide-up 500ms ease-out both;
        animation-delay: 60ms;
    }

    /* Sidebar : glissement depuis la droite */
    .fh-static-sidebar {
        animation: fh-slide-left 550ms
                   cubic-bezier(.22, 1, .36, 1) both;
        animation-delay: 120ms;
    }

    /* Image du contenu */
    .fh-static-image {
        animation: fh-slide-up 600ms ease-out both;
        animation-delay: 160ms;
    }

    /* Animations */
    @keyframes fh-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes fh-slide-up {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fh-slide-left {
        from {
            opacity: 0;
            transform: translateX(22px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Smartphones : animations plus discrètes */
@media (max-width: 767px) and
       (prefers-reduced-motion: no-preference) {

    .fh-static-main,
    .fh-static-sidebar,
    .fh-static-image {
        animation-duration: 250ms;
        animation-delay: 0ms;
    }

    /* Pas de glissement latéral sur mobile */
    .fh-static-sidebar {
        animation-name: fh-fade-in;
    }
}
