/* Section dictionnaire FH : styles isolés, sans modifier les cartes existantes. */
.home-dictionary {
    background: #e8f3f8;
    padding: clamp(48px, 6vw, 90px) 0;
}

.home-dictionary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(28px, 5vw, 90px);
}

.home-dictionary-media,
.home-dictionary-content {
    min-width: 0;
    box-sizing: border-box;
}

.home-dictionary-media {
    display: flex;
    min-height: 0;
    aspect-ratio: 3 / 2;
    align-items: flex-end;
    padding: 24px;
    border-radius: 9px;
    overflow: hidden;
    text-decoration: none;
    background-color: #13445b;
    background-image: linear-gradient(180deg, rgba(4, 35, 51, .02), rgba(4, 35, 51, .68)), url('/assets/img/dictionnaire.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 38px rgba(14, 45, 61, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-dictionary-media:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(14, 45, 61, .18);
}

.home-dictionary-media-label {
    color: #fff;
    font-size: .82rem;
    letter-spacing: .13em;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
}

.home-dictionary-media-label span {
    letter-spacing: 0;
}

.home-dictionary-content h2 {
    color: #17394c;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.13;
    letter-spacing: -.035em;
    margin: 12px 0 20px;
    font-weight: 800;
}

.home-dictionary-content>p {
    color: #446779;
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 760px;
}

.home-dictionary-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-dictionary-languages a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    color: #075d90;
    background: #fff;
    border: 1px solid #c7dce7;
    border-radius: 5px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.home-dictionary-languages a:hover,
.home-dictionary-languages a:focus-visible {
    background: #f4fbff;
    border-color: #007ebd;
}

.home-dictionary-languages a span:first-child {
    font-size: 1.35rem;
    line-height: 1;
}

.home-dictionary-languages .dictionary-flag {
    display: block;
    width: 25px;
    height: 19px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (max-width: 860px) {
    .home-dictionary-layout {
        grid-template-columns: 1fr;
    }

    .home-dictionary-media {
        min-height: 240px;
        max-height: 410px;
    }
}

@media (max-width: 480px) {
    .home-dictionary {
        padding: 44px 0;
    }

    .home-dictionary-media {
        min-height: 190px;
    }

    .home-dictionary-languages a {
        flex: 1 1 auto;
        justify-content: center;
    }
}