/*
 * Accueil éditorial LCP : confort de lecture sur téléphone.
 * Les couleurs et la typographie reprennent les variables de l'accueil existant.
 */
@media (max-width: 700px) {
    #lcp-ed-root > .lcp-ed-topline {
        display: none !important;
    }
    #lcp-ed-root .lcp-ed-header {
        position: relative;
        padding: 14px 15px !important;
        gap: 14px !important;
    }
    #lcp-ed-root .lcp-ed-header-title {
        box-sizing: border-box;
        width: 100%;
        padding-right: 48px;
        min-width: 0;
    }
    #lcp-ed-root .lcp-ed-brand {
        font-size: clamp(26px, 7.7vw, 34px) !important;
        letter-spacing: -1.3px !important;
        white-space: nowrap;
    }
    #lcp-ed-root .lcp-ed-subtitle {
        font-size: 8px !important;
        letter-spacing: 1.1px !important;
        margin-top: 7px !important;
    }
    #lcp-ed-root .lcp-ed-header-actions {
        display: grid !important;
        grid-template-columns: minmax(82px, 1fr) auto auto;
        width: 100%;
        gap: 6px !important;
        align-items: stretch !important;
    }
    #lcp-ed-root .lcp-ed-theme-toggle {
        position: absolute;
        top: 14px;
        right: 15px;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0 !important;
        justify-content: center;
        font-size: 18px !important;
    }
    #lcp-ed-root .lcp-ed-theme-toggle span {
        display: none !important;
    }
    #lcp-ed-root .lcp-ed-search {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 44px !important;
        margin: 0 !important;
    }
    #lcp-ed-root .lcp-ed-search input,
    #lcp-ed-root .lcp-ed-search:hover input,
    #lcp-ed-root .lcp-ed-search:focus-within input {
        box-sizing: border-box;
        flex: 1 1 auto;
        width: calc(100% - 36px) !important;
        min-width: 0;
        opacity: 1;
        padding-left: 10px !important;
        font-size: 16px !important;
    }
    #lcp-ed-root .lcp-ed-search button {
        flex: 0 0 36px;
        height: 42px !important;
    }
    #lcp-ed-root .lcp-ed-search:focus-within {
        grid-column: 1 / -1;
    }
    #lcp-ed-root .lcp-ed-login,
    #lcp-ed-root .lcp-ed-account {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px !important;
        font-size: 10px !important;
        white-space: nowrap;
    }
    #lcp-ed-root .lcp-ed-nav {
        padding: 0 15px !important;
        gap: 0 !important;
    }
    #lcp-ed-root .lcp-ed-nav-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0 !important;
        width: 100%;
    }
    #lcp-ed-root .lcp-ed-nav-list > li,
    #lcp-ed-root .lcp-ed-nav-list > li:last-child {
        min-width: 0;
        margin: 0 !important;
    }
    #lcp-ed-root .lcp-ed-nav-list > li > a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 8px 2px !important;
        font-size: 10px !important;
        letter-spacing: 0 !important;
        text-align: center;
    }
    #lcp-ed-root .lcp-ed-nav-list > li:nth-child(4n+3) > .sub-menu,
    #lcp-ed-root .lcp-ed-nav-list > li:nth-child(4n) > .sub-menu {
        left: auto !important;
        right: 0 !important;
    }
    #lcp-ed-root .lcp-ed-nav .sub-menu a {
        box-sizing: border-box;
        min-height: 44px;
    }
    #lcp-ed-root .lcp-ed-une-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
    #lcp-ed-root .lcp-ed-une-main {
        grid-area: 1 / 1 !important;
        min-width: 0;
    }
    #lcp-ed-root .lcp-ed-une-right {
        grid-area: 2 / 1 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
        min-width: 0;
    }
    #lcp-ed-root .lcp-ed-une-left {
        grid-area: 3 / 1 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-right: 0 !important;
        min-width: 0;
    }
    #lcp-ed-root .lcp-ed-une-left .lcp-ed-card,
    #lcp-ed-root .lcp-ed-une-right .lcp-ed-rail-story {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    #lcp-ed-root .lcp-ed-rail-story h3,
    #lcp-ed-root .lcp-ed-une-left .lcp-ed-card h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    #lcp-ed-root .lcp-ed-rail-head,
    #lcp-ed-root .lcp-ed-left-heading {
        font-size: 23px !important;
    }
    #lcp-ed-root .lcp-ed-rail-story time {
        font-size: 12px;
    }
}

