/*
Theme Name: Newscrunch Infos Média La Rochelle
Theme URI: https://infos-media-la-rochelle.fr/
Description: Thème enfant Newscrunch conçu pour le site vide Infos Média La Rochelle.
Author: Infos Média
Template: newscrunch
Version: 1.0.5
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: newscrunch-imlr
*/

:root {
    --imlr-purple: #5532f0;
    --imlr-purple-dark: #3518b8;
    --imlr-purple-soft: #f2efff;
    --imlr-coral: #ff654f;
    --imlr-ink: #17131f;
    --imlr-muted: #6f6978;
    --imlr-line: #e6e2ec;
    --imlr-paper: #fff;
    --imlr-canvas: #f5f4f7;
    --imlr-mint: #dff5ee;
    --imlr-sea: #0d6f77;
    --imlr-radius: 18px;
    --imlr-shadow: 0 18px 55px rgba(32, 20, 70, .11);
    --imlr-container: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.imlr-site {
    margin: 0;
    color: var(--imlr-ink);
    background: var(--imlr-canvas);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.imlr-site a {
    color: inherit;
    text-decoration: none;
}

.imlr-site img {
    max-width: 100%;
    height: auto;
}

.imlr-container {
    width: min(calc(100% - 32px), var(--imlr-container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 18px;
    color: #fff;
    background: var(--imlr-purple-dark);
    border-radius: 8px;
}

.imlr-topbar {
    color: #fff;
    background: linear-gradient(90deg, var(--imlr-purple-dark), var(--imlr-purple));
    font-size: .82rem;
    font-weight: 700;
}

.imlr-topbar__inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.imlr-topbar__links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.imlr-topbar__links a:hover,
.imlr-topbar__links a:focus {
    text-decoration: underline;
}

.imlr-brandbar {
    background: #fff;
    border-bottom: 1px solid var(--imlr-line);
}

.imlr-brandbar__inner {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.imlr-brandbar__logo {
    grid-column: 1;
    justify-self: start;
    min-width: 1px;
}

.imlr-brandbar__logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.imlr-brandbar__logo .custom-logo {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(53, 24, 184, .18);
}

.imlr-brand {
    grid-column: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: -.04em;
    line-height: .9;
}

.imlr-brand__main {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 950;
}

.imlr-brand__main em {
    color: var(--imlr-purple);
    font-style: normal;
}

.imlr-brand__city {
    margin-top: 11px;
    color: var(--imlr-muted);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .42em;
    text-transform: uppercase;
}

.imlr-brand__dot {
    display: inline-block;
    width: .22em;
    height: .22em;
    margin-left: .08em;
    vertical-align: .1em;
    background: var(--imlr-coral);
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255, 101, 79, .55);
}

.imlr-brandbar__aside {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.imlr-brandbar__aside a,
.imlr-button,
.imlr-newsletter-inline button,
.imlr-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #fff;
    background: var(--imlr-purple);
    border: 1px solid var(--imlr-purple);
    border-radius: 999px;
    font-weight: 850;
    transition: transform .2s ease, background .2s ease;
}

.imlr-brandbar__aside a:hover,
.imlr-button:hover,
.imlr-newsletter-inline button:hover,
.imlr-empty a:hover {
    color: #fff;
    background: var(--imlr-purple-dark);
    transform: translateY(-1px);
}

.imlr-nav-wrap {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--imlr-line);
    backdrop-filter: blur(12px);
}

.imlr-nav {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imlr-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.imlr-nav li {
    position: relative;
}

.imlr-nav a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 12px;
    font-size: .86rem;
    font-weight: 850;
}

.imlr-nav a:hover,
.imlr-nav a:focus,
.imlr-nav .current-menu-item > a {
    color: var(--imlr-purple);
}

.imlr-nav .sub-menu {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    width: 250px;
    display: none;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--imlr-line);
    border-radius: 14px;
    box-shadow: var(--imlr-shadow);
}

.imlr-nav li:hover > .sub-menu,
.imlr-nav li:focus-within > .sub-menu {
    display: block;
}

.imlr-nav .sub-menu a {
    min-height: 42px;
    border-radius: 9px;
}

.imlr-nav .sub-menu a:hover {
    background: var(--imlr-purple-soft);
}

.imlr-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    color: var(--imlr-ink);
    background: #fff;
    border: 1px solid var(--imlr-line);
    border-radius: 999px;
    font: inherit;
    font-weight: 850;
}

.imlr-ticker {
    background: #fff;
    border-bottom: 1px solid var(--imlr-line);
}

.imlr-ticker__inner {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.imlr-ticker__label {
    padding: 5px 11px;
    color: #fff;
    background: var(--imlr-coral);
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .1em;
}

.imlr-ticker__items {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 750;
}

.imlr-ticker__items span {
    color: var(--imlr-muted);
}

.imlr-main {
    padding-block: 28px 70px;
}

.imlr-hero {
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 14px;
}

.imlr-hero__primary,
.imlr-hero__secondary {
    min-height: 510px;
}

.imlr-hero__secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.imlr-story-card {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #2d166e, #7254ff);
    border-radius: var(--imlr-radius);
    box-shadow: var(--imlr-shadow);
}

.imlr-story-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 101, 79, .78), transparent 16%),
        linear-gradient(20deg, rgba(15, 10, 28, .95), rgba(15, 10, 28, .1) 72%);
}

.imlr-story-card.has-image::after {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background: var(--imlr-card-image) center/cover no-repeat;
}

.imlr-story-card__content {
    width: 100%;
    padding: clamp(22px, 4vw, 44px);
}

.imlr-story-card--small .imlr-story-card__content {
    padding: 24px;
}

.imlr-story-card__category,
.imlr-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--imlr-coral);
    font-size: .7rem;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.imlr-story-card__category {
    padding: 5px 9px;
    color: #fff;
    background: var(--imlr-coral);
    border-radius: 5px;
}

.imlr-story-card h1,
.imlr-story-card h2 {
    max-width: 760px;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.imlr-story-card--small h2 {
    font-size: clamp(1.25rem, 2vw, 1.9rem);
}

.imlr-story-card p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
}

.imlr-section {
    margin-top: 56px;
}

.imlr-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 2px solid var(--imlr-ink);
}

.imlr-section__heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.imlr-section__heading a {
    color: var(--imlr-purple);
    font-size: .82rem;
    font-weight: 900;
}

.imlr-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.imlr-news-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--imlr-line);
    border-radius: 15px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.imlr-news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--imlr-shadow);
}

.imlr-news-card__media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(85, 50, 240, .92), rgba(34, 16, 106, .84)),
        repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, .08) 18px 20px);
}

.imlr-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imlr-news-card__body {
    padding: 19px;
}

.imlr-news-card__body h3 {
    margin: 5px 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.17;
}

.imlr-news-card__meta,
.imlr-article__meta {
    color: var(--imlr-muted);
    font-size: .78rem;
    font-weight: 700;
}

.imlr-news-card__excerpt {
    color: var(--imlr-muted);
    font-size: .92rem;
}

.imlr-feature-band {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
}

.imlr-agenda-preview,
.imlr-proximity-preview,
.imlr-empty,
.imlr-content-card {
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--imlr-line);
    border-radius: var(--imlr-radius);
}

.imlr-agenda-preview {
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 101, 79, .85), transparent 18%),
        linear-gradient(145deg, #301573, var(--imlr-purple));
    border: 0;
}

.imlr-agenda-preview h2,
.imlr-proximity-preview h2,
.imlr-newsletter-panel h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1;
}

.imlr-agenda-preview p {
    color: rgba(255, 255, 255, .83);
}

.imlr-agenda-preview .imlr-button {
    color: var(--imlr-purple-dark);
    background: #fff;
    border-color: #fff;
}

.imlr-proximity-preview {
    background: linear-gradient(145deg, var(--imlr-mint), #fff);
}

.imlr-proximity-preview .imlr-kicker {
    color: var(--imlr-sea);
}

.imlr-newsletter-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: clamp(30px, 5vw, 58px);
    color: #fff;
    background: #25105f;
    border-radius: var(--imlr-radius);
}

.imlr-newsletter-panel::after {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -45%;
    width: 420px;
    height: 420px;
    border: 80px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.imlr-newsletter-panel > * {
    position: relative;
    z-index: 1;
}

.imlr-newsletter-panel p {
    color: rgba(255, 255, 255, .8);
}

.imlr-newsletter-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-self: center;
}

.imlr-newsletter-inline input {
    min-width: 0;
    min-height: 50px;
    padding: 12px 16px;
    color: var(--imlr-ink);
    background: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
}

.imlr-newsletter-inline button {
    min-height: 50px;
    color: var(--imlr-ink);
    background: var(--imlr-coral);
    border-color: var(--imlr-coral);
    cursor: pointer;
}

.imlr-empty {
    text-align: center;
}

.imlr-empty__art {
    width: 82px;
    height: 82px;
    margin: 0 auto 17px;
    background:
        radial-gradient(circle at 68% 30%, var(--imlr-coral) 0 8%, transparent 9%),
        linear-gradient(145deg, var(--imlr-purple-dark), var(--imlr-purple));
    border-radius: 24px;
    transform: rotate(-5deg);
}

.imlr-empty h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.imlr-empty p {
    max-width: 540px;
    margin: 0 auto 18px;
    color: var(--imlr-muted);
}

.imlr-page-hero {
    padding: clamp(42px, 7vw, 86px) 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 101, 79, .7), transparent 16%),
        linear-gradient(145deg, #26105e, var(--imlr-purple));
}

.imlr-page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.imlr-page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
}

.imlr-content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.imlr-content-card {
    min-width: 0;
}

.imlr-content-card > :first-child {
    margin-top: 0;
}

.imlr-content-card > :last-child {
    margin-bottom: 0;
}

.imlr-article__title {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.imlr-article__image {
    margin: 26px 0;
    overflow: hidden;
    border-radius: 15px;
}

.imlr-article__content {
    font-size: 1.05rem;
}

.imlr-article__content h2,
.imlr-article__content h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

.imlr-sidebar {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 18px;
}

.imlr-sidebar__card {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--imlr-line);
    border-radius: 15px;
}

.imlr-sidebar__card h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.imlr-footer {
    color: #fff;
    background: #17121f;
}

.imlr-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 34px;
    padding-block: 54px 40px;
}

.imlr-footer h2,
.imlr-footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.imlr-footer p,
.imlr-footer a {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
}

.imlr-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.imlr-footer li + li {
    margin-top: 8px;
}

.imlr-footer a:hover {
    color: #fff;
}

.imlr-footer__bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.imlr-footer__bottom p {
    margin: 0;
}

@media (max-width: 1020px) {
    .imlr-brandbar__inner {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }

    .imlr-brandbar__logo {
        grid-column: 1;
    }

    .imlr-brandbar__logo .custom-logo {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .imlr-brand {
        grid-column: 2;
        align-items: flex-start;
    }

    .imlr-brandbar__aside {
        grid-column: 3;
    }

    .imlr-menu-toggle {
        display: inline-flex;
    }

    .imlr-nav {
        min-height: 58px;
        justify-content: flex-start;
    }

    .imlr-nav ul {
        position: absolute;
        top: 58px;
        right: 16px;
        left: 16px;
        display: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        align-items: stretch;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--imlr-line);
        border-radius: 15px;
        box-shadow: var(--imlr-shadow);
    }

    .imlr-nav.is-open ul {
        display: block;
    }

    .imlr-nav a {
        min-height: 46px;
        padding: 0 12px;
        border-radius: 9px;
    }

    .imlr-nav a:hover {
        background: var(--imlr-purple-soft);
    }

    .imlr-nav .sub-menu {
        position: static;
        width: auto;
        display: block;
        margin-left: 16px;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .imlr-hero {
        grid-template-columns: 1fr;
    }

    .imlr-hero__primary {
        min-height: 480px;
    }

    .imlr-hero__secondary {
        min-height: 260px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .imlr-content-wrap {
        grid-template-columns: 1fr;
    }

    .imlr-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .imlr-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .imlr-topbar__inner {
        min-height: 34px;
    }

    .imlr-topbar__links a:not(:last-child),
    .imlr-topbar__location {
        display: none;
    }

    .imlr-topbar__links {
        width: 100%;
        margin-left: auto;
        justify-content: flex-end;
        text-align: right;
    }

    .imlr-brandbar__inner {
        width: min(calc(100% - 20px), var(--imlr-container));
        min-height: 112px;
        display: block;
        position: relative;
    }

    .imlr-brandbar__logo {
        position: absolute;
        top: 50%;
        left: 0;
        margin: 0;
        transform: translateY(-50%);
    }

    .imlr-brandbar__logo .custom-logo {
        width: 64px !important;
        max-width: none !important;
        height: 64px !important;
        margin: 0 !important;
        border-radius: 13px;
    }

    .imlr-brand {
        position: absolute;
        top: 50%;
        left: 50%;
        width: max-content;
        align-items: center;
        text-align: center;
        white-space: nowrap;
        transform: translate(-50%, -50%);
    }

    .imlr-brand__main {
        font-size: clamp(1.35rem, 6vw, 1.7rem);
    }

    .imlr-brand__city {
        width: 100%;
        margin-top: 8px;
        font-size: clamp(.48rem, 2vw, .62rem);
        letter-spacing: .25em;
        text-align: center;
    }

    .imlr-brandbar__aside {
        display: none !important;
    }

    .imlr-ticker__inner {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-block: 8px;
    }

    .imlr-ticker__label {
        width: max-content;
    }

    .imlr-main {
        padding-top: 16px;
    }

    .imlr-hero__primary {
        min-height: 420px;
    }

    .imlr-hero__secondary {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .imlr-story-card--small {
        min-height: 260px;
    }

    .imlr-card-grid,
    .imlr-feature-band,
    .imlr-newsletter-panel,
    .imlr-sidebar {
        grid-template-columns: 1fr;
    }

    .imlr-newsletter-inline {
        grid-template-columns: 1fr;
    }

    .imlr-footer__grid {
        grid-template-columns: 1fr;
    }

    .imlr-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }
}
