/*
Theme Name: JPC Refonte
Description: Présentation du Juvisy Poker Club pour le thème Argent.
Template: argent
Version: 0.1.22
Text Domain: jpc-refonte
*/

.jpc-shell {
    --jpc-red: #d11e3c;
    --jpc-ink: #222;
    --jpc-line: #dedede;
    --jpc-shadow: 0 4px 16px rgb(34 34 34 / 7%);
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
}

.jpc-shell #content :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea),
.jpc-shell #content :is(.jpc-app, .jpc-palmares) {
    font-family: Arial, Helvetica, sans-serif;
}

.jpc-shell .jpc-front .jpc-podium-heading {
    font-size: 15px;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 12px;
}

.jpc-wrap {
    width: min(1160px, calc(100% - 28px));
    margin-inline: auto;
}

.jpc-header, .jpc-front, .jpc-footer {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.52;
}

.jpc-header {
    background: #fff;
    border-bottom: 1px solid var(--jpc-line);
    position: relative;
    z-index: 10;
}

.jpc-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 10px;
}

.jpc-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--jpc-ink);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.1;
    font-size: 13px;
}

.jpc-brand img { width: 46px; height: 46px; object-fit: contain; }
.jpc-brand strong { font-size: 16px; }

.jpc-menu-button, .jpc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #d4d4d4;
    background: #f2f2f2;
    color: var(--jpc-ink);
    text-decoration: none;
    font: 700 1rem/1.2 Arial, Helvetica, sans-serif;
}

.jpc-header [hidden] { display: none; }
.jpc-shell :is(.jpc-header, .jpc-front, .jpc-footer) :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.jpc-header .jpc-nav { flex-basis: 100%; }
.jpc-header .jpc-nav ul { list-style: none; margin: 0; padding: 0; }
.jpc-header .jpc-nav .sub-menu { padding-inline-start: 16px; }
.jpc-header .jpc-nav a {
    display: block;
    padding: 10px;
    color: var(--jpc-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.jpc-header .jpc-nav a:hover, .jpc-header .jpc-nav [aria-current="page"] { color: #a8142d; background: #fcecef; }

.jpc-front { color: var(--jpc-ink); padding-block: 32px; }
.jpc-front h1,
.jpc-shell.page .site-main > article > .page-header > h1,
.jpc-shell.page .site-main > article > .entry-header > h1,
.jpc-shell.page .site-main #post-2763 .jpc-app > div > h1 {
    color: var(--jpc-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-style: normal;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-align: start;
    margin: 0 0 16px;
}

.jpc-shell.page .site-main > article > :is(.page-header, .entry-header) {
    margin-block-end: 16px;
}

.jpc-shell.page .site-main > article > :is(.page-header, .entry-header) > h1 {
    margin-block-end: 0;
}

/* La page Classements confie son titre à l’extension JPC. */
.jpc-shell.page .site-main #post-2763 > :is(.page-header, .entry-header):not(:has(h1)) {
    display: none;
}

.jpc-shell.page .site-main #post-2763 .jpc-app > div > h1 + p,
.jpc-front-intro {
    margin-block-start: 0;
}

.jpc-front h2 { font-family: inherit; font-weight: 800; }
.jpc-front h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 16px; }
.jpc-front-intro { color: #606060; font-size: 1.125rem; }
.jpc-home-grid { display: grid; gap: 18px; margin-block: 24px; }
.jpc-front .jpc-card {
    background: #fff;
    border: 1px solid var(--jpc-line);
    border-top: 4px solid var(--jpc-red);
    border-radius: 14px;
    box-shadow: var(--jpc-shadow);
    padding: clamp(18px, 3vw, 26px);
    min-width: 0;
}
.jpc-front-intro { font-size: clamp(17px, 2vw, 21px); }
#jpc-upcoming + .jpc-actions,
#jpc-news-content + .jpc-actions { margin-block-start: 16px; }
.jpc-agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jpc-agenda-event {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 10px 12px;
    border: 1px solid var(--jpc-line);
    border-radius: 9px;
    font-size: 15px;
}
.jpc-agenda-event strong, .jpc-agenda-details { grid-column: 1 / -1; }
.jpc-shell .jpc-agenda-date { color: #a8142d; font-weight: 800; }
.jpc-agenda-category { background: #fcecef; color: #a8142d; border-radius: 1em; padding: 0 8px; font-size: 13px; font-weight: 700; }
.jpc-agenda-details { color: #606060; font-size: 13px; }
#jpc-next-live h3 { font: 800 24px/1.2 Arial, Helvetica, sans-serif; margin: 0 0 8px; }
.jpc-live-date { display: block; font-size: clamp(26px, 4vw, 42px); font-weight: 800; line-height: 1.15; }
.jpc-shell .simcal-calendar-grid .simcal-week-day::first-letter { text-transform: uppercase; }
.jpc-shell :is(#post-2763, #post-428, #post-1899) .page-content {
    width: min(1160px, calc(100% - 28px));
    margin-inline: auto;
}
.jpc-shell #post-1899 .awsm-grid { margin-inline: 0; }
@media (max-width: 699px) {
    .jpc-shell .site-main > article.page { width: 100%; margin-inline: auto; }
    .jpc-shell .site-main > article.page > :is(.page-content, .page-header) {
        width: calc(100% - 28px);
        margin-inline: auto;
    }
}
.jpc-calendar-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.jpc-calendar-filters button { min-height: 44px; padding: 8px 12px; background: #f2f2f2; color: #222; border: 1px solid #d4d4d4; border-radius: 8px; font: 700 14px Arial, Helvetica, sans-serif; }
.jpc-calendar-filters button[aria-pressed="true"] { background: #d11e3c; color: #fff; border-color: #d11e3c; }
.jpc-calendar-page [hidden] { display: none !important; }
.jpc-calendar-section { margin-block: 30px; }
.jpc-calendar-section h2 { font-size: clamp(23px, 3vw, 31px); }
.jpc-calendar-section .jpc-agenda-event { background: #fff; }
.jpc-month-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
.jpc-month-toolbar h3, .jpc-month-details h3 { font: 800 clamp(17px, 2.5vw, 24px)/1.2 Arial, Helvetica, sans-serif; margin: 0; }
.jpc-month-toolbar button, .jpc-calendar-clear { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--jpc-line); border-radius: 8px; background: #fff; color: var(--jpc-ink); font: 700 16px Arial, Helvetica, sans-serif; }
.jpc-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.jpc-month-weekday { font-size: 13px; text-align: center; font-weight: 700; color: #606060; }
.jpc-month-day { display: flex; flex-wrap: wrap; align-content: start; gap: 4px; min-height: 54px; padding: 5px; border: 1px solid var(--jpc-line); border-radius: 7px; background: #fff; color: var(--jpc-ink); font: 14px Arial, Helvetica, sans-serif; text-align: start; }
.jpc-month-day > strong { width: 100%; }
.jpc-month-day[aria-pressed="true"] { border-color: var(--jpc-red); background: #fcecef; }
.jpc-month-chip { display: block; width: 7px; height: 7px; overflow: hidden; border-radius: 50%; background: #606060; font-size: 0; }
.jpc-month-chip[data-category="Live"] { background: var(--jpc-red); }
.jpc-month-chip[data-category="Online JPC"] { background: #222; }
.jpc-month-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-block: 22px 12px; }
.jpc-month-events { margin-bottom: 22px; }
#jpc-month-source { font-size: 15px; }
@media (min-width: 700px) {
    .jpc-month-day { min-height: 88px; padding: 8px; }
    .jpc-month-chip { width: 100%; height: auto; padding: 3px 5px; white-space: nowrap; text-overflow: ellipsis; border-radius: 4px; color: #fff; font-size: 12px; }
}
#jpc-next-live p { font-size: 16px; margin: 12px 0 20px; }
.jpc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jpc-header-actions { display: flex; gap: 6px; align-items: center; }
.jpc-home-icon { width: 44px; padding: 0; font-size: 25px; }
.jpc-results-archives { margin-block: 20px 0; }
@media (min-width: 1000px) {
    .jpc-header-actions { display: none; }
}
.jpc-front .jpc-podium { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; padding: 0; }
.jpc-podium li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--jpc-line); border-radius: 9px; padding: 9px 12px; font-size: 15px; }
.jpc-podium-rank { background: #111; color: #fff; border-radius: 5px; padding: 3px 7px; font-weight: 800; }
.jpc-podium-player { display: flex; min-width: 0; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.jpc-podium-portrait { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; object-fit: cover; }
.jpc-news-excerpt p { font-size: 16px; max-width: 70ch; }
.jpc-news-excerpt + .jpc-news-excerpt {
    border-top: 1px solid var(--jpc-line);
    margin-top: 20px;
    padding-top: 20px;
}
.jpc-button { box-shadow: 0 3px 8px rgb(34 34 34 / 12%); font-size: 16px; }
.jpc-button:hover { background: #e8e8e8; color: var(--jpc-ink); }
.jpc-button-primary { border-color: var(--jpc-red); background: var(--jpc-red); color: #fff; }
.jpc-button-primary:hover { background: #a8142d; color: #fff; }

/* Argent affiche ses widgets de pied de page via la barre latérale. */
.jpc-shell #secondary.footer-widget-area { display: none; }
.jpc-footer { background: #202020; color: #e8e8e8; margin-top: 50px; padding-top: 44px; }
.jpc-footer-row { display: grid; align-items: start; gap: 24px; }
.jpc-footer-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.jpc-footer-brand img { width: 55px; height: 55px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.jpc-footer h2 { color: inherit; font: 700 15px/1.52 Arial, Helvetica, sans-serif; margin: 0 0 10px; }
.jpc-footer nav a { display: block; width: fit-content; color: #ddd; font-size: 13px; margin: 7px 0; text-decoration: none; }
.jpc-footer nav a:hover { color: #fff; text-decoration: underline; }
.jpc-copyright { border-top: 1px solid #444; text-align: center; padding: 15px; font-size: 12px; color: #aaa; margin-top: 35px; }

@media (min-width: 561px) {
    .jpc-footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

@media (min-width: 801px) {
    .jpc-footer-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

@media (min-width: 700px) {
    .jpc-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
    .jpc-shell.page .site-main > #post-18 {
        box-sizing: border-box;
        width: calc(100% - 28px);
        max-width: none;
        margin-inline: auto;
        padding-inline: 0;
    }

    .jpc-shell #post-18 > :is(.page-header, .entry-header, .entry-content, .page-content) {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }

    .jpc-shell #post-18 .wpcf7 {
        box-sizing: border-box;
        width: 100%;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--jpc-line);
        border-top: 4px solid var(--jpc-red);
        border-radius: 14px;
        box-shadow: var(--jpc-shadow);
    }

    .jpc-shell #post-18 .wpcf7-form-control-wrap { display: block; margin-top: 5px; }
    .jpc-shell #post-18 .wpcf7-form-control-wrap :is(input[type="text"], input[type="email"], textarea) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        border-radius: 8px;
        font-size: 16px;
    }

    .jpc-shell #post-18 .wpcf7-textarea { min-height: 128px; resize: vertical; }
    .jpc-shell #post-18 .wpcf7-submit {
        min-height: 44px;
        padding: 9px 16px;
        border-radius: 8px;
        background: #a8142d;
        color: #fff;
    }
}

@media (min-width: 1000px) {
    .jpc-wrap { width: min(1160px, calc(100% - 40px)); }
    .jpc-brand img { width: 52px; height: 52px; }
    .jpc-header-row { flex-wrap: nowrap; min-height: 80px; }
    .jpc-header .jpc-nav { flex: 0 1 auto; }
    .jpc-header .jpc-nav > ul { display: flex; flex-wrap: wrap; }
    .jpc-header .jpc-nav li { position: relative; }
    .jpc-header .jpc-nav .sub-menu {
        display: none;
        position: absolute;
        inset-block-start: 100%;
        inset-inline-end: 0;
        min-width: 200px;
        background: #fff;
        padding: 6px;
        border: 1px solid var(--jpc-line);
        border-radius: 10px;
        box-shadow: var(--jpc-shadow);
    }
    .jpc-header .jpc-nav .sub-menu .sub-menu { position: static; }
    .jpc-header .jpc-nav li:hover > .sub-menu, .jpc-header .jpc-nav li:focus-within > .sub-menu { display: block; }
}
