:root {
    --tc-accent: #a9a9aa;
    --tc-accent-dark: #777779;
    --tc-dark: #242122;
    --tc-text: #333333;
    --tc-muted: #737373;
    --tc-line: #dddddd;
    --tc-soft: #f8f8f8;
}

.tc-dynamic-page { background: #fff; color: var(--tc-text); }
.tc-dynamic-page *, .tc-dynamic-page *::before, .tc-dynamic-page *::after { box-sizing: border-box; }
.tc-dynamic-page header { min-height: 154px; }
.tc-site-heading { padding: 18px 0 16px; color: #fff; }
.tc-site-heading .eco_logo { float: none; display: inline-block; }
.tc-site-heading #logo_menu { max-height: 82px; width: auto; margin: 0 auto 8px; }
.tc-contact-line { color: #fff; font-size: 14px; }
.tc-contact-line a { color: #fff; }
.tc-contact-line a:hover { color: var(--tc-accent); }
.tc-dynamic-page .eco_header { position: relative; z-index: 50; }
.tc-dynamic-page .navbar { margin-bottom: 0; }
.tc-dynamic-page .eco_header #main-nav > .my_menu { width: 100%; }
.tc-dynamic-page .eco_bread { margin-bottom: 0; }
.tc-dynamic-page .eco_page_title h4 { margin: 0; color: #444; }
.tc-preloader-hidden { opacity: 0; pointer-events: none; transition: opacity .25s ease; }

.tc-main { float: left; width: 100%; padding: 48px 0 78px; background: #fff; }
.tc-container { width: min(1170px, calc(100% - 30px)); margin: 0 auto; }
.tc-lead { margin: 0 0 28px; color: var(--tc-muted); font-size: 16px; }
.tc-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px; margin: 0 0 28px; border: 1px solid var(--tc-line); background: var(--tc-soft); }
.tc-input, .tc-select {
    width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cfcfcf;
    border-radius: 0; background: #fff; color: var(--tc-text); font: inherit;
}
.tc-toolbar .tc-input { flex: 1 1 320px; max-width: 520px; }
.tc-input:focus, .tc-select:focus { border-color: var(--tc-accent-dark); outline: none; box-shadow: 0 0 0 2px rgba(169,169,170,.2); }
.tc-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
    border: 1px solid var(--tc-dark); border-radius: 0; background: var(--tc-dark); color: #fff;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-transform: uppercase; letter-spacing: .02em;
}
.tc-button:hover, .tc-button:focus { background: var(--tc-accent); border-color: var(--tc-accent); color: #fff; }
.tc-button-light { border-color: #c8c8c8; background: #fff; color: #444; }
.tc-button-light:hover { background: #ececec; border-color: #bcbcbc; color: #333; }

.tc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tc-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tc-line); }
.tc-card-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.tc-card-image::after { content: ''; position: absolute; inset: 0; background: rgba(36,33,34,0); transition: background .2s ease; }
.tc-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.tc-card:hover .tc-card-image img { transform: scale(1.025); }
.tc-card:hover .tc-card-image::after { background: rgba(36,33,34,.08); }
.tc-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.tc-card h2, .tc-card h3 { margin: 0 0 11px; font-size: 19px; line-height: 1.3; text-transform: uppercase; }
.tc-card h2 a, .tc-card h3 a { color: #343434; }
.tc-card h2 a:hover, .tc-card h3 a:hover { color: var(--tc-accent-dark); }
.tc-meta { min-height: 20px; margin-bottom: 9px; color: var(--tc-muted); font-size: 13px; }
.tc-card p { margin: 0 0 18px; color: #5b5b5b; line-height: 1.65; }
.tc-link { margin-top: auto; color: var(--tc-accent-dark); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.tc-link:hover { color: var(--tc-dark); }
.tc-empty { padding: 44px 24px; border: 1px solid var(--tc-line); background: var(--tc-soft); color: var(--tc-muted); text-align: center; }

.tc-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; }
.tc-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--tc-line); background: #fff; color: #444; }
.tc-pagination a:hover, .tc-pagination a.active { background: var(--tc-dark); border-color: var(--tc-dark); color: #fff; }

.tc-breadcrumb { margin: 0 0 20px; color: var(--tc-muted); font-size: 13px; }
.tc-breadcrumb a { color: var(--tc-accent-dark); }
.tc-article { padding: clamp(22px, 4vw, 42px); border: 1px solid var(--tc-line); background: #fff; }
.tc-article h1 { margin: 0 0 18px; color: #333; font-size: clamp(25px, 4vw, 38px); line-height: 1.2; text-transform: uppercase; }
.tc-article-content { font-size: 16px; line-height: 1.75; }
.tc-article-content p { margin: 0 0 18px; }
.tc-article-content h2, .tc-article-content h3, .tc-article-content h4 { margin-top: 1.5em; color: #3a3a3a; }
.tc-article-content a { color: var(--tc-accent-dark); text-decoration: underline; }

.tc-photo-grid { display: grid; gap: 14px; margin-top: 28px; }
.tc-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tc-photo-row { display: grid; grid-template-columns: repeat(var(--tc-photo-columns, 1), minmax(0, 1fr)); gap: 14px; width: 100%; }
.tc-photo { position: relative; display: block; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ececec; border: 1px solid #e1e1e1; cursor: zoom-in; }
.tc-photo::after { content: 'Agrandir'; position: absolute; inset: auto 0 0; padding: 8px 10px; background: rgba(36,33,34,.78); color: #fff; text-align: center; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; opacity: 0; transform: translateY(100%); transition: .2s ease; }
.tc-photo:hover::after, .tc-photo:focus::after { opacity: 1; transform: translateY(0); }
.tc-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.tc-photo:hover img { transform: scale(1.025); }
.tc-photo:focus-visible { outline: 3px solid var(--tc-dark); outline-offset: 4px; }
.tc-gallery-total { flex-shrink: 0; margin-top: 4px; padding: 8px 14px; border: 1px solid var(--tc-line); color: #555; font-size: 13px; }
.tc-category-card .tc-card-body { min-height: 144px; }
.tc-category-cover { position: relative; }
.tc-category-count { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 5px 9px; background: rgba(36,33,34,.85); color: #fff; font-size: 12px; }
.tc-gallery-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.tc-gallery-heading h1 { margin: 0 0 7px; font-size: 28px; text-transform: uppercase; }
.tc-gallery-heading p { margin: 0; color: var(--tc-muted); }
.tc-subcategories { margin-bottom: 38px; }
.tc-section-title { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--tc-line); color: #3d3d3d; font-size: 22px; text-transform: uppercase; }

/* Actualités de la page d’accueil */
.tc-home-news-layout { display: grid; gap: 24px; margin-bottom: 36px; text-align: left; }
.tc-home-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #dddddd;
    background: #ffffff;
}
.tc-home-news-featured-no-image { grid-template-columns: 1fr; min-height: 0; }
.tc-home-news-featured-image { display: block; min-height: 390px; overflow: hidden; background: #eeeeee; }
.tc-home-news-featured-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.tc-home-news-featured:hover .tc-home-news-featured-image img { transform: scale(1.018); }
.tc-home-news-featured-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 48px); }
.tc-home-news-featured h3 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; text-transform: uppercase; }
.tc-home-news-featured h3 a, .tc-home-news-card h4 a { color: #2f2f2f; }
.tc-home-news-featured h3 a:hover, .tc-home-news-card h4 a:hover { color: #777779; }
.tc-home-news-featured p { margin: 0 0 23px; color: #5f5f5f; font-size: 15px; line-height: 1.7; }
.tc-home-news-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tc-home-news-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dddddd; background: #ffffff; }
.tc-home-news-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eeeeee; }
.tc-home-news-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.tc-home-news-card:hover .tc-home-news-card-image img { transform: scale(1.022); }
.tc-home-news-card-content { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.tc-home-news-card h4 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; text-transform: uppercase; }
.tc-home-news-card p { margin: 0 0 18px; color: #666666; line-height: 1.6; }
.tc-home-news-date { margin-bottom: 9px; color: #7a7a7a; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tc-home-news-link { margin-top: auto; color: #444444; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tc-home-news-link:hover { color: #000000; }
.tc-home-news-empty { padding: 28px; border: 1px solid #dddddd; background: #ffffff; color: #777777; text-align: center; }

body.tc-lightbox-open { overflow: hidden; }
.tc-lightbox { position: fixed; inset: 0; z-index: 20000; display: flex; align-items: center; justify-content: center; padding: 72px 84px 30px; background: rgba(15,14,14,.96); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .24s ease, visibility 0s linear .24s; }
.tc-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.tc-lightbox-figure { width: 100%; margin: 0; text-align: center; transform: translateY(12px) scale(.98); transition: transform .3s ease; }
.tc-lightbox.open .tc-lightbox-figure { transform: none; }
.tc-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; height: calc(100vh - 156px); height: calc(100dvh - 156px); min-height: 100px; }
.tc-lightbox .tc-lightbox-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 14px 50px rgba(0,0,0,.3); opacity: 1; transform: none; transition: opacity .2s ease, transform .25s ease; touch-action: pan-y pinch-zoom; }
.tc-lightbox.is-loading .tc-lightbox-image, .tc-lightbox.has-error .tc-lightbox-image { opacity: 0; transform: scale(.985); }
.tc-lightbox-status { position: absolute; left: 15px; right: 15px; top: 50%; transform: translateY(-50%); color: #ddd; font-size: 14px; pointer-events: none; }
.tc-lightbox-caption { min-height: 24px; margin-top: 16px; color: #eee; font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-lightbox-counter { position: absolute; top: 27px; left: 28px; color: #ddd; font-size: 14px; letter-spacing: .08em; }
.tc-lightbox-close, .tc-lightbox-nav { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.06); color: #fff; cursor: pointer; line-height: 1; transition: background .2s ease, border-color .2s ease; }
.tc-lightbox-close:hover, .tc-lightbox-nav:hover { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); }
.tc-lightbox-close:focus-visible, .tc-lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.tc-lightbox-close { top: 14px; right: 22px; font-size: 32px; }
.tc-lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 40px; }
.tc-lightbox-nav[hidden] { display: none; }
.tc-lightbox-prev { left: 18px; }
.tc-lightbox-next { right: 18px; }

@media (max-width: 991px) {
    .tc-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-home-news-featured { grid-template-columns: 1.15fr .85fr; }
    .tc-home-news-secondary { gap: 18px; }
    .tc-dynamic-page header { min-height: 138px; }
}

@media (max-width: 767px) {
    .tc-dynamic-page header { min-height: auto; }
    .tc-home-news-featured { grid-template-columns: 1fr; min-height: 0; }
    .tc-home-news-featured-image { min-height: 0; aspect-ratio: 16 / 10; }
    .tc-home-news-secondary { grid-template-columns: 1fr; }
    .tc-home-news-card { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); }
    .tc-home-news-card-image { height: 100%; aspect-ratio: auto; }
    .tc-site-heading { padding: 13px 0; }
    .tc-site-heading #logo_menu { max-height: 66px; }
    .tc-contact-line { font-size: 12px; }
    .tc-contact-line span { display: block; height: 2px; font-size: 0; }
    .tc-dynamic-page .eco_header #main-nav > .my_menu { display: block !important; }
    .tc-dynamic-page .eco_header #main-nav > .my_menu > li { width: 100%; }
    .tc-main { padding: 32px 0 55px; }
    .tc-toolbar { display: grid; }
    .tc-toolbar .tc-input { max-width: none; }
    .tc-grid { grid-template-columns: 1fr; gap: 20px; }
    .tc-photo-grid, .tc-photo-row { gap: 9px; }
    .tc-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-gallery-heading { display: block; }
    .tc-gallery-total { display: inline-block; margin-top: 16px; }
    .tc-lightbox { padding: 70px 12px 80px; }
    .tc-lightbox-stage { height: calc(100vh - 196px); height: calc(100dvh - 196px); }
    .tc-lightbox-counter { top: 29px; left: 18px; }
    .tc-lightbox-nav { top: auto; bottom: 16px; transform: none; }
    .tc-lightbox-prev { left: calc(50% - 60px); }
    .tc-lightbox-next { right: calc(50% - 60px); }
    .tc-lightbox-close { right: 12px; }
}

@media (max-width: 480px) {
    .tc-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .tc-container { width: min(100% - 22px, 1170px); }
    .tc-home-news-card { display: flex; }
    .tc-home-news-card-image { aspect-ratio: 16 / 10; }
    .tc-home-news-featured-content, .tc-home-news-card-content { padding: 20px 17px; }
    .tc-photo-row { grid-template-columns: 1fr; }
    .tc-article { padding: 19px 16px; }
    .tc-button { width: 100%; }
    .tc-pagination a { flex: 1 0 38px; }
}

@media (hover: none) {
    .tc-photo::after { inset: auto 10px 10px auto; padding: 5px 9px; opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-lightbox, .tc-lightbox-figure, .tc-lightbox .tc-lightbox-image,
    .tc-lightbox-close, .tc-lightbox-nav, .tc-photo img, .tc-photo::after,
    .tc-card-image img, .tc-card-image::after { transition: none; }
    .tc-photo:hover img, .tc-card:hover .tc-card-image img { transform: none; }
}

/* R4.4 — Le bloc actualités de l’accueil ne doit jamais être piloté par l’ancien plugin MixItUp. */
.tc-home-news-title { margin: 0; padding: 0 0 24px; }
.tc-home-news-shell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    clear: both;
}
.tc-home-news-shell::after { content: ""; display: table; clear: both; }
.tc-home-news-shell .tc-home-news-layout,
.tc-home-news-shell .tc-home-news-featured,
.tc-home-news-shell .tc-home-news-secondary,
.tc-home-news-shell .tc-home-news-card {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    transform: none !important;
    opacity: 1 !important;
}
.tc-home-news-shell .tc-home-news-layout { width: 100%; height: auto !important; }
.tc-home-news-more { clear: both; padding-top: 2px; }
.tc-home-news-more .btn { margin: 0; }

@media (max-width: 767px) {
    .tc-home-news-title { padding-bottom: 18px; }
    .tc-home-news-more { padding-top: 0; }
}
