* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f5ef;
    color: #1f2a1f;
    line-height: 1.65;
    font-size: 17px;
}

a {
    color: #008c36;
    text-decoration: none;
}

a:hover {
    color: #6ca719;
    text-decoration: underline;
}

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

.site-page {
    width: 100%;
    min-height: 100vh;
    background: #f2f5ef;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}

/* Header */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d9e4d2;
}

.site-header-inner {
    min-height: 118px;
    padding: 18px 0;
    display: table;
    width: 100%;
}

.brand {
    display: table-cell;
    vertical-align: middle;
    color: #1f2a1f;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    display: block;
    max-width: 300px;
    max-height: 92px;
}

.brand-text {
    display: inline-block;
    line-height: 1.1;
}

.brand-name {
    display: block;
    font-size: 54px;
    font-weight: 900;
    color: #008c36;
    letter-spacing: -0.05em;
}

.brand-region {
    display: block;
    font-size: 23px;
    font-weight: 800;
    color: #1f2a1f;
}

.header-actions {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.facebook-link {
    display: inline-block;
    padding: 10px 18px;
    color: #ffffff;
    background: #008c36;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(0, 140, 54, 0.22);
}

.facebook-link:hover {
    color: #ffffff;
    background: #6ca719;
    text-decoration: none;
}

/* Panorama */

.site-panorama {
    width: 100%;
    min-height: 270px;
    background: #008c36;
    background-image:
        linear-gradient(120deg, rgba(0, 91, 42, 0.92) 0%, rgba(0, 140, 54, 0.82) 45%, rgba(122, 181, 29, 0.78) 100%),
        url("../img/panorama.jpg");
    background-position: center center;
    background-size: cover;
    color: #ffffff;
}

.site-panorama-overlay {
    min-height: 270px;
    padding: 66px 0;
    background: rgba(0, 0, 0, 0.10);
}

.site-panorama-kicker {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.site-panorama h1 {
    margin: 0;
    max-width: 760px;
    font-size: 54px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
}

/* Navigation */

.site-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #d9e4d2;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
    position: relative;
    z-index: 10;
}

.site-nav-inner {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.nav-item {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 19px 10px 18px 10px;
    color: #008c36;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 4px solid transparent;
}

.nav-link:hover {
    color: #6ca719;
    background: #f7faf5;
    text-decoration: none;
    border-bottom-color: #b9df8a;
}

.nav-link.is-active {
    color: #1f2a1f;
    background: #eef4ea;
    border-bottom-color: #008c36;
}

/* Main */

.site-main {
    width: 100%;
    padding: 44px 0 64px 0;
}

.home-intro {
    display: table;
    width: 100%;
    margin-bottom: 32px;
}

.home-intro-text,
.home-intro-box {
    display: table-cell;
    vertical-align: top;
}

.home-intro-text {
    width: 64%;
    padding-right: 34px;
}

.home-intro-text h2 {
    margin: 0 0 16px 0;
    color: #008c36;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.home-intro-text p {
    max-width: 760px;
}

.section-kicker {
    margin: 0 0 9px 0;
    color: #6ca719;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.home-intro-box {
    width: 36%;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #d9e4d2;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

.home-intro-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #008c36;
    font-size: 24px;
    line-height: 1.2;
}

.home-intro-box ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.content-card,
.card {
    width: 100%;
    margin: 30px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #d9e4d2;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.content-card h2,
.card h2,
.card h3 {
    margin-top: 0;
    color: #008c36;
    line-height: 1.2;
}

.content-card h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.card hr,
.content-card hr {
    border: 0;
    border-top: 1px solid #d9e4d2;
    margin: 26px 0;
}

code {
    display: inline-block;
    max-width: 100%;
    padding: 2px 7px;
    background: #eef2ec;
    border: 1px solid #d9e4d2;
    border-radius: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-size: 0.92em;
}

.status-ok {
    padding: 13px 15px;
    color: #145c2d;
    background: #e4f5e8;
    border: 1px solid #a9d8b5;
    border-radius: 10px;
    font-weight: 800;
}

.status-error {
    padding: 13px 15px;
    color: #7a1515;
    background: #fde7e7;
    border: 1px solid #e2a5a5;
    border-radius: 10px;
    font-weight: 800;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 0 0;
    background: #ffffff;
}

.report-table th,
.report-table td {
    padding: 11px 13px;
    border: 1px solid #d9e4d2;
    text-align: left;
    vertical-align: top;
}

.report-table th {
    background: #eef2ec;
    color: #1f2a1f;
    font-weight: 900;
}

.report-table tr:nth-child(even) td {
    background: #f8faf7;
}

/* Rich content */

.page-content {
    max-width: 960px;
}

.rich-content {
    font-size: 18px;
}

.rich-content p {
    margin: 0 0 17px 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    color: #008c36;
    line-height: 1.2;
}

.rich-content h1 {
    font-size: 34px;
}

.rich-content h2 {
    font-size: 30px;
}

.rich-content h3 {
    font-size: 25px;
}

.rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.rich-content td,
.rich-content th {
    padding: 9px;
    border: 1px solid #d9e4d2;
    vertical-align: top;
}

.rich-content th {
    background: #eef2ec;
}

.rich-content ul,
.rich-content ol {
    padding-left: 25px;
    margin-top: 0;
}

.rich-content li {
    margin-bottom: 6px;
}

.contacts-content .rich-content {
    font-size: 19px;
}

/* Elections / Communiqués / Agenda */

.elections-list {
    width: 100%;
}

.election-card {
    width: 100%;
    margin: 0 0 24px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #d9e4d2;
    border-left: 6px solid #008c36;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.election-date {
    margin: 0 0 9px 0;
    color: #667060;
    font-size: 15px;
    font-weight: 900;
}

.election-card h3 {
    margin: 0 0 18px 0;
    color: #008c36;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.election-card h3 a {
    color: #008c36;
}

.election-card h3 a:hover {
    color: #6ca719;
    text-decoration: none;
}

.election-content {
    margin-top: 12px;
}

/* News */

.news-list {
    width: 100%;
}

.news-card {
    display: table;
    width: 100%;
    margin: 0 0 26px 0;
    background: #ffffff;
    border: 1px solid #d9e4d2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.news-card-image {
    display: table-cell;
    width: 34%;
    vertical-align: top;
    background: #eef2ec;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: auto;
}

.news-card-body {
    display: table-cell;
    width: 66%;
    padding: 28px;
    vertical-align: top;
}

.news-date {
    margin: 0 0 9px 0;
    color: #667060;
    font-size: 15px;
    font-weight: 900;
}

.news-card h3 {
    margin: 0 0 13px 0;
    color: #008c36;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.news-card h3 a {
    color: #008c36;
}

.news-card h3 a:hover {
    color: #6ca719;
    text-decoration: none;
}

.news-chapo {
    margin: 0 0 18px 0;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 800;
    color: #253425;
}

.news-more {
    margin: 0;
}

.news-more a,
.back-link a {
    display: inline-block;
    padding: 10px 16px;
    background: #008c36;
    color: #ffffff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 140, 54, 0.20);
}

.news-more a:hover,
.back-link a:hover {
    background: #6ca719;
    color: #ffffff;
    text-decoration: none;
}

/* News detail */

.news-detail {
    max-width: 960px;
}

.news-detail h2 {
    font-size: 40px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.news-detail-image {
    margin: 24px 0;
    background: #eef2ec;
    border-radius: 16px;
    overflow: hidden;
}

.news-detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

.news-detail-chapo {
    margin: 22px 0;
    padding: 20px 22px;
    background: #eef4ea;
    border-left: 6px solid #008c36;
    border-radius: 0 12px 12px 0;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 800;
    color: #253425;
}

.news-detail-content {
    margin-top: 26px;
    font-size: 18px;
}

.news-detail-content p {
    margin: 0 0 17px 0;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    color: #008c36;
    line-height: 1.2;
}

.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 12px;
}

.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.news-detail-content td,
.news-detail-content th {
    padding: 9px;
    border: 1px solid #d9e4d2;
    vertical-align: top;
}

.news-detail-content th {
    background: #eef2ec;
}

.back-link {
    margin-top: 30px;
}

/* Footer */

.site-footer {
    width: 100%;
    padding: 40px 0 20px 0;
    background: #1f2a1f;
    color: #ffffff;
}

.site-footer-inner {
    display: table;
    width: 100%;
}

.footer-column {
    display: table-cell;
    width: 33.333%;
    vertical-align: top;
    padding-right: 28px;
}

.footer-column h2 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.2;
}

.footer-column p {
    margin: 0;
}

.footer-column a {
    color: #ffffff;
}

.footer-column a:hover {
    color: #b9df8a;
}

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

.footer-links li {
    margin-bottom: 7px;
}

.site-footer-bottom {
    margin-top: 30px;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.site-footer-bottom p {
    margin: 0;
}

/* Tablet */

@media screen and (max-width: 980px) {
    .container {
        max-width: 920px;
    }

    .nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 13px;
    }

    .site-panorama h1 {
        font-size: 46px;
    }

    .home-intro-text h2 {
        font-size: 36px;
    }

    .content-card h2 {
        font-size: 30px;
    }
}

/* Mobile */

@media screen and (max-width: 760px) {
    html,
    body {
        overflow-x: hidden;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
        background: #f2f5ef;
    }

    .container {
        max-width: none;
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-header-inner {
        display: block;
        min-height: 0;
        padding: 14px 0 16px 0;
        text-align: center;
    }

    .brand,
    .header-actions {
        display: block;
        width: 100%;
        text-align: center;
    }

    .brand-logo {
        margin-left: auto;
        margin-right: auto;
        max-width: 230px;
        max-height: 82px;
    }

    .brand-name {
        font-size: 39px;
    }

    .brand-region {
        font-size: 19px;
    }

    .header-actions {
        margin-top: 12px;
    }

    .facebook-link {
        padding: 9px 15px;
        font-size: 14px;
    }

    .site-panorama {
        min-height: 155px;
        background-position: center center;
    }

    .site-panorama-overlay {
        min-height: 155px;
        padding: 34px 0;
    }

    .site-panorama-kicker {
        font-size: 12px;
        letter-spacing: 0.14em;
    }

    .site-panorama h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .site-nav {
        position: relative;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-toggle {
        display: block;
        width: 100%;
        min-height: 52px;
        padding: 14px 0;
        border: 0;
        background: #ffffff;
        color: #008c36;
        font-size: 17px;
        font-weight: 900;
        text-align: left;
        cursor: pointer;
    }

    .nav-toggle:focus {
        outline: 3px solid rgba(0, 140, 54, 0.25);
        outline-offset: 2px;
    }

    .nav-toggle-icon {
        display: inline-block;
        width: 23px;
        height: 15px;
        margin-right: 9px;
        border-top: 3px solid #008c36;
        border-bottom: 3px solid #008c36;
        position: relative;
        vertical-align: middle;
    }

    .nav-toggle-icon:before {
        content: "";
        position: absolute;
        left: 0;
        top: 4px;
        width: 23px;
        border-top: 3px solid #008c36;
    }

    .nav-toggle-label {
        vertical-align: middle;
    }

    .nav-list {
        display: none;
        padding: 0 0 12px 0;
        text-align: left;
        max-height: 72vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid #d9e4d2;
    }

    .site-nav.is-open .nav-list {
        display: block;
    }

    .nav-item {
        display: block;
        border-top: 1px solid #d9e4d2;
    }

    .nav-item:first-child {
        border-top: 0;
    }

    .nav-link {
        padding: 14px 6px;
        font-size: 15px;
        line-height: 1.25;
        border-bottom: 0;
    }

    .nav-link.is-active {
        border-left: 5px solid #008c36;
        padding-left: 12px;
    }

    .site-main {
        padding: 24px 0 38px 0;
    }

    .home-intro {
        display: block;
        margin-bottom: 20px;
    }

    .home-intro-text,
    .home-intro-box {
        display: block;
        width: 100%;
    }

    .home-intro-text {
        padding-right: 0;
    }

    .home-intro-text h2 {
        font-size: 29px;
        line-height: 1.15;
    }

    .home-intro-text p {
        max-width: none;
    }

    .home-intro-box {
        margin-top: 20px;
        padding: 19px;
        border-radius: 14px;
    }

    .home-intro-box h3 {
        font-size: 21px;
    }

    .content-card,
    .card,
    .election-card {
        margin: 20px auto;
        padding: 19px;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    }

    .content-card h2 {
        font-size: 27px;
        line-height: 1.18;
    }

    .section-kicker {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    code {
        display: inline;
        padding: 2px 5px;
        word-break: break-word;
    }

    .rich-content,
    .contacts-content .rich-content,
    .news-detail-content {
        font-size: 16px;
    }

    .rich-content h1,
    .news-detail-content h1 {
        font-size: 27px;
    }

    .rich-content h2,
    .news-detail-content h2 {
        font-size: 24px;
    }

    .rich-content h3,
    .news-detail-content h3 {
        font-size: 21px;
    }

    .rich-content img,
    .news-detail-content img {
        margin: 16px auto;
        border-radius: 10px;
    }

    .rich-content table,
    .news-detail-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
    }

    .rich-content tbody,
    .news-detail-content tbody {
        display: table;
        width: 100%;
    }

    .election-card {
        border-left-width: 5px;
    }

    .election-date,
    .news-date {
        font-size: 14px;
    }

    .election-card h3 {
        font-size: 22px;
        line-height: 1.22;
        margin-bottom: 14px;
    }

    .news-card {
        display: block;
        border-radius: 14px;
        margin-bottom: 22px;
    }

    .news-card-image,
    .news-card-body {
        display: block;
        width: 100%;
    }

    .news-card-body {
        padding: 19px;
    }

    .news-card h3 {
        font-size: 22px;
        line-height: 1.22;
    }

    .news-chapo {
        font-size: 17px;
        line-height: 1.45;
    }

    .news-more a,
    .back-link a {
        padding: 10px 14px;
        font-size: 14px;
    }

    .news-detail h2 {
        font-size: 28px;
        line-height: 1.15;
    }

    .news-detail-image {
        margin: 18px 0;
        border-radius: 12px;
    }

    .news-detail-chapo {
        font-size: 18px;
        padding: 15px;
        border-left-width: 5px;
    }

    .site-footer {
        padding: 30px 0 18px 0;
    }

    .site-footer-inner {
        display: block;
    }

    .footer-column {
        display: block;
        width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .footer-column h2 {
        font-size: 18px;
    }

    .site-footer-bottom {
        margin-top: 20px;
        font-size: 13px;
    }

    .report-table,
    .report-table thead,
    .report-table tbody,
    .report-table th,
    .report-table td,
    .report-table tr {
        display: block;
        width: 100%;
    }

    .report-table thead {
        display: none;
    }

    .report-table tr {
        margin-bottom: 12px;
        border: 1px solid #d9e4d2;
        border-radius: 10px;
        overflow: hidden;
    }

    .report-table th,
    .report-table td {
        border: 0;
        border-bottom: 1px solid #d9e4d2;
    }

    .report-table td:last-child,
    .report-table th:last-child {
        border-bottom: 0;
    }
}

/* Petit mobile */

@media screen and (max-width: 420px) {
    body {
        font-size: 15px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo {
        max-width: 205px;
    }

    .brand-name {
        font-size: 34px;
    }

    .brand-region {
        font-size: 17px;
    }

    .site-panorama {
        min-height: 135px;
    }

    .site-panorama-overlay {
        min-height: 135px;
        padding: 28px 0;
    }

    .site-panorama h1 {
        font-size: 28px;
    }

    .nav-toggle {
        min-height: 50px;
        font-size: 16px;
    }

    .nav-link {
        font-size: 14px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .site-main {
        padding-top: 20px;
    }

    .content-card,
    .card,
    .election-card,
    .home-intro-box {
        padding: 17px;
    }

    .content-card h2,
    .home-intro-text h2 {
        font-size: 25px;
    }

    .election-card h3,
    .news-card h3 {
        font-size: 20px;
    }

    .news-detail h2 {
        font-size: 25px;
    }

    .news-detail-chapo {
        font-size: 17px;
    }
}

/* Images insérées dans les contenus */

.content-image {
    display: block;
    max-width: 760px;
    margin: 26px auto;
    padding: 0;
    text-align: center;
}

.content-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
}

.content-image figcaption {
    margin-top: 8px;
    color: #667060;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

@media screen and (max-width: 760px) {
    .content-image {
        max-width: 100%;
        margin: 20px auto;
    }

    .content-image img {
        border-radius: 10px;
    }
}

/* =========================================================
   Logo bannière UDC Jura Bernois
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 140, 54, 0.16);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header__logo-link {
    display: block;
    width: 100%;
    max-width: 860px;
    line-height: 0;
}

.site-header__logo-banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .site-header__inner {
        width: min(100%, calc(100% - 24px));
        padding: 14px 0 12px;
    }

    .site-header__logo-link {
        max-width: 720px;
    }
}

@media (max-width: 600px) {
    .site-header__inner {
        padding: 10px 0;
    }

    .site-header__logo-link {
        max-width: 100%;
    }

    .site-header__logo-banner {
        max-height: 160px;
    }
}
