/* FH - Actualites accueil : feuille isolee, ne modifie pas le theme existant. */
.fh-news-section {
    padding: 55px 0 62px;
    background: #fff;
    color: #173544
}

.fh-news-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 23px
}

.fh-news-eyebrow {
    display: block;
    color: #0785bb;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    margin-bottom: 7px
}

.fh-news-heading h2 {
  font-family: inherit;
  font-weight: 750;
  font-size: clamp(31px, 3.2vw, 48px);
  line-height: 1.17;
  letter-spacing: -.033em;
  margin: 11px 0 0
}

.fh-news-all {
    color: #087dad;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.fh-news-all:hover {
    text-decoration: underline
}

.fh-news-empty {
    background: #f3f7f9;
    border: 1px solid #e1eaf0;
    border-radius: 8px;
    padding: 34px 26px;
    color: #5a7682
}

.fh-news-slide[hidden] {
    display: none !important
}

.fh-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: 480px
}

.fh-news-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    color: #fff;
    background: #1a4155;
    isolation: isolate
}

.fh-news-feature {
    grid-row: 1/3
}

.fh-news-photo,
.fh-news-gradient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%
}

.fh-news-photo {
    object-fit: cover;
    transition: transform .5s ease
}

.fh-news-tile:hover .fh-news-photo {
    transform: scale(1.045)
}

.fh-news-gradient {
    background: linear-gradient(0deg, rgba(4, 24, 38, .93) 0%, rgba(5, 28, 43, .65) 43%, rgba(5, 28, 43, .06) 100%);
    pointer-events: none
}

.fh-news-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
}

.fh-news-feature .fh-news-tile-content {
    padding: 35px 38px;
    gap: 13px
}

.fh-news-meta {
    color: #bce3f5;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase
}

.fh-news-tile-title {
    font-size: clamp(18px, 1.9vw, 26px);
    line-height: 1.19;
    font-weight: 750;
    letter-spacing: -.025em;
    text-wrap: balance
}

.fh-news-feature .fh-news-tile-title {
    font-size: clamp(26px, 3vw, 39px);
    max-width: 610px
}

.fh-news-excerpt {
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #e1ebf0
}

.fh-news-read {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .65);
    padding-bottom: 3px;
    margin-top: 5px
}

.fh-news-small .fh-news-read {
    display: none
}

.fh-news-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 19px
}

.fh-news-count {
    color: #5b7685;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 55px
}

.fh-news-dots {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center
}

.fh-news-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: #cbd8df;
    padding: 0;
    cursor: pointer;
    transition: width .2s, background-color .2s
}

.fh-news-dot[aria-current="true"] {
    background: #008fca;
    width: 25px
}

.fh-news-arrows {
    display: flex;
    gap: 8px
}

.fh-news-arrows button {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    border: 1px solid #d8e6eb;
    background: #fff;
    color: #124059;
    font-size: 22px;
    cursor: pointer;
    line-height: 1
}

.fh-news-arrows button:hover {
    background: #e9f5fa
}

@media(max-width:850px) {
    .fh-news-layout {
        height: 405px;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr)
    }

    .fh-news-feature .fh-news-tile-content {
        padding: 25px
    }

    .fh-news-tile-content {
        padding: 18px
    }

    .fh-news-feature .fh-news-tile-title {
        font-size: 27px
    }

    .fh-news-small .fh-news-tile-title {
        font-size: 18px
    }
}

@media(max-width:620px) {
    .fh-news-section {
        padding: 38px 0
    }

    .fh-news-heading {
        align-items: start
    }

    .fh-news-all {
        font-size: 11px;
        margin-top: 4px
    }

    .fh-news-layout {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 11px
    }

    .fh-news-feature {
        grid-row: auto;
        min-height: 350px
    }

    .fh-news-small {
        min-height: 145px
    }

    .fh-news-feature .fh-news-tile-title {
        font-size: 28px
    }

    .fh-news-small .fh-news-tile-title {
        font-size: 19px
    }

    .fh-news-small .fh-news-tile-content {
        padding: 17px 19px
    }

    .fh-news-small .fh-news-meta {
        font-size: 9px
    }

    .fh-news-controls {
        margin-top: 14px
    }

    .fh-news-dots {
        gap: 5px
    }

    .fh-news-feature .fh-news-tile-content {
        padding: 23px
    }

    .fh-news-excerpt {
        font-size: 12px
    }
}

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

    .fh-news-photo,
    .fh-news-dot {
        transition: none !important
    }
}







/* =========================================
   FH - Animations accueil : actualités
   ========================================= */

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

    /* Titre du bandeau */
    .fh-news-section .fh-news-heading {
        animation: home-news-up 450ms ease-out both;
    }

    /* Uniquement la première slide */
    .fh-news-carousel > .fh-news-slide:first-child
    .fh-news-tile {
        animation: home-news-up 550ms
                   cubic-bezier(.22, 1, .36, 1) both;
    }

    /* Grande actualité */
    .fh-news-carousel > .fh-news-slide:first-child
    .fh-news-feature {
        animation-delay: 80ms;
    }

    /* Première petite actualité */
    .fh-news-carousel > .fh-news-slide:first-child
    .fh-news-small:nth-child(2) {
        animation-delay: 160ms;
    }

    /* Deuxième petite actualité */
    .fh-news-carousel > .fh-news-slide:first-child
    .fh-news-small:nth-child(3) {
        animation-delay: 240ms;
    }

    /* Contrôles du carrousel */
    .fh-news-controls {
        animation: home-news-fade 450ms ease-out 200ms both;
    }

    @keyframes home-news-up {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes home-news-fade {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
}

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

    .fh-news-section .fh-news-heading,
    .fh-news-carousel > .fh-news-slide:first-child
    .fh-news-tile,
    .fh-news-controls {
        animation-duration: 250ms;
        animation-delay: 0ms;
    }
}

/* =========================================
   FH - Fondu enchaine entre actualites
   ========================================= */

.fh-news-carousel {
    position: relative;
}

.fh-news-crossfade-overlay {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 480ms ease-in-out;
}

.fh-news-crossfade-overlay.is-leaving {
    opacity: 0;
}

/* Smartphones : fondu legerement plus rapide */
@media (max-width: 620px) {
    .fh-news-crossfade-overlay {
        transition-duration: 350ms;
    }
}

/* Accessibilite */
@media (prefers-reduced-motion: reduce) {
    .fh-news-crossfade-overlay {
        transition: none;
    }
}

/* =========================================
   FH - Conserver le crossfade au retour
   sur la premiere actualite
   ========================================= */

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

    /* Après la première navigation, plus de slide-up */
    .fh-news-carousel.fh-news-has-navigated
    > .fh-news-slide:first-child
    .fh-news-tile {
        animation: none;
    }
}

