/* ==========================================================================
   AIPES — Zola Theme (faithful clone of aipes.fr / Universal Preschool)
   ========================================================================== */

:root {
    --color-primary: #50c344;
    --color-blue: #4894B6;
    --color-red: #f4131d;
    --color-yellow: #F1C50E;
    --color-tec: #00d084;
    --color-tec-hover: rgba(0, 208, 132, 0.85);
    --color-tec-soft: rgba(0, 208, 132, 0.12);
    --color-text: #666;
    --color-heading: #282828;
    --color-light-bg: #f6f6f6;
}

/* --------------------------------------------------------------------------
   Base & Typography
   -------------------------------------------------------------------------- */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
    flex-shrink: 0;
}
.icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

body {
    margin: 0;
    background: #fff;
    color: var(--color-text);
    font-family: 'Lora', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
    word-wrap: break-word;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    clear: both;
    color: var(--color-heading);
    margin: 16px 0;
    line-height: 1.3;
    font-weight: 400;
    font-family: 'Amatic SC', cursive;
}

h1 { font-size: 52px; }
h2 { font-size: 42px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; }

p {
    margin: 0 0 1em;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: underline;
}
a:hover,
a:focus,
a:active {
    color: #000;
}
a:focus {
    outline: thin dotted;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}
ul { list-style: disc; }
ol { list-style: decimal; }
li > ul, li > ol {
    margin-bottom: 0;
    margin-left: 0.5em;
}

img {
    border: 0;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

figure {
    margin: 0 0 1em;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin: 1.5em 0;
}

blockquote {
    font-size: 18px;
    line-height: 32px;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--color-primary);
    background-color: var(--color-light-bg);
}

embed, iframe, object {
    max-width: 100%;
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 1.5em;
}
.table-wrapper table {
    margin-bottom: 0;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0 0 1.5em;
    width: 100%;
}
tr {
    border: 1px solid #ddd;
}
td, th {
    padding: 12px 18px;
    text-align: left;
    border: 1px solid #ddd;
}
th {
    font-weight: 700;
}

/* Accessibility */
.screen-reader-text,
.site-description {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Clearings & Layout */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after,
.wrapper:before,
.wrapper:after {
    content: "";
    display: table;
    table-layout: fixed;
}
.clear:after,
.entry-content:after,
.site-header:after,
.site-content:after,
.site-footer:after,
.wrapper:after {
    clear: both;
}

#content {
    position: relative;
}

section {
    position: relative;
}

.wrapper {
    width: 95%;
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section-gap {
    padding: 80px 0;
}

.bg-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.overlay {
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 1;
}

.btn {
    color: #fff;
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 48px;
    position: relative;
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 0;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 1;
    transition: all 0.3s ease-in-out;
}
.btn:hover,
.btn:focus {
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}
.section-title {
    font-size: 32px;
    margin: 0;
    color: #000;
    font-weight: 600;
}
.entry-title {
    font-size: 22px;
    margin: 0 0 15px;
    font-weight: 600;
    word-wrap: break-word;
}
.entry-title a {
    color: #000;
    text-decoration: none;
}
.entry-title a:hover,
.entry-title a:focus {
    color: var(--color-primary);
}

.post-thumbnail-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
#masthead {
    position: relative;
    z-index: 3000;
    background-color: #fff;
}
#masthead a {
    text-decoration: none;
}

.site-branding {
    padding: 10px 0;
    float: left;
    display: flex;
    align-items: center;
    min-height: 81px;
}
.site-logo a {
    display: block;
    margin-right: 15px;
}
.site-logo img {
    max-height: 80px;
    width: auto;
}

.main-navigation {
    display: block;
    position: relative;
    width: 100%;
}
.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.main-navigation ul.is-open {
    display: block;
}
.main-navigation li {
    position: relative;
}
.main-navigation a {
    display: block;
    font-weight: bold;
    color: #212121;
    font-size: 16px;
}
.main-navigation ul.nav-menu > li > a {
    color: #555555;
}
.main-navigation ul.nav-menu > li:nth-child(5n+1):hover > a,
.main-navigation ul.nav-menu > li:nth-child(5n+1).current-menu-item > a {
    color: #5750A0;
}
.main-navigation ul.nav-menu > li:nth-child(5n+2):hover > a,
.main-navigation ul.nav-menu > li:nth-child(5n+2).current-menu-item > a {
    color: #fcb54d;
}
.main-navigation ul.nav-menu > li:nth-child(5n+3):hover > a,
.main-navigation ul.nav-menu > li:nth-child(5n+3).current-menu-item > a {
    color: #fc5b4e;
}
.main-navigation ul.nav-menu > li:nth-child(5n+4):hover > a,
.main-navigation ul.nav-menu > li:nth-child(5n+4).current-menu-item > a {
    color: #adca69;
}
.main-navigation ul.nav-menu > li:nth-child(5n+5):hover > a,
.main-navigation ul.nav-menu > li:nth-child(5n+5).current-menu-item > a {
    color: #84bed6;
}

.main-navigation ul ul {
    background-color: #fff;
    text-align: left;
    padding: 0;
}
.main-navigation ul ul li a {
    padding: 15px 20px;
}
.main-navigation ul ul a {
    width: 225px;
}

.menu-toggle {
    font-size: 16px;
    margin: auto;
    display: block;
    height: 81px;
    position: relative;
    background-color: transparent;
    min-width: 64px;
    border: none;
    float: right;
    cursor: pointer;
    padding: 0 17px;
    transition: background-color 0.25s ease;
}
.menu-toggle:hover,
.menu-toggle:focus {
    background-color: var(--color-primary);
}
.menu-toggle span {
    width: 30px;
    height: 2px;
    display: block;
    background-color: #000;
    margin: 7px 0;
}
.menu-toggle:hover span,
.menu-toggle:focus span {
    background-color: #fff;
}

.main-navigation .nav-caret {
    display: none;
}

button.dropdown-toggle {
    padding: 0;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    background-color: transparent;
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}
button.dropdown-toggle:hover,
button.dropdown-toggle:focus {
    background-color: transparent;
    color: var(--color-primary);
}
button.dropdown-toggle .icon {
    transition: transform 0.2s ease;
}
button.dropdown-toggle.active .icon {
    transform: rotate(-180deg);
}

/* --------------------------------------------------------------------------
   Homepage: Hero Slider
   -------------------------------------------------------------------------- */
#featured-slider {
    position: relative;
    overflow: hidden;
    background-color: #222;
}
.hero-slider {
    position: relative;
}
.hero-slides {
    position: relative;
}
.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 100px 0 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 0;
}
.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
#featured-slider .entry-container {
    width: 80%;
    max-width: 700px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    text-align: center;
}
#featured-slider .entry-header {
    margin-bottom: 25px;
}
#featured-slider .entry-title {
    margin-bottom: 0;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
}
#featured-slider .entry-content {
    margin-bottom: 30px;
    color: #fff;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
#featured-slider:hover .slider-arrow,
#featured-slider:focus-within .slider-arrow {
    opacity: 1;
    visibility: visible;
}
.slider-arrow:hover,
.slider-arrow:focus {
    background-color: #333;
}

.slider-dots {
    position: absolute;
    bottom: 150px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}
.slider-dots li {
    margin: 0;
    padding: 0;
}
.slider-dots button {
    display: block;
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease;
}
.slider-dots li.is-active button,
.slider-dots button:hover {
    background-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Homepage: Featured Services (4 overlapping colored cards)
   -------------------------------------------------------------------------- */
#featured-slider + #featured-services {
    padding-top: 0;
    margin-top: -100px;
    z-index: 10;
}
#featured-services .wrapper {
    max-width: 1170px;
}
#featured-services .section-content {
    margin: 0;
    align-items: stretch;
}
#featured-services article {
    padding: 0;
    margin: 0;
    display: flex;
}
#featured-services .featured-service-item {
    position: relative;
    text-align: center;
    background-color: #f6f6f6;
    padding: 30px;
    width: 100%;
}
#featured-services article:nth-child(4n+1) .featured-service-item {
    background-color: var(--color-blue);
}
#featured-services article:nth-child(4n+2) .featured-service-item {
    background-color: var(--color-primary);
}
#featured-services article:nth-child(4n+3) .featured-service-item {
    background-color: var(--color-red);
}
#featured-services article:nth-child(4n+4) .featured-service-item {
    background-color: var(--color-yellow);
}
#featured-services .icon-container a {
    background-color: #fff;
    color: #000;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    font-size: 36px;
    transition: transform 0.25s ease;
}
#featured-services .icon-container a:hover {
    transform: scale(1.06);
}
#featured-services .entry-title {
    font-size: 32px;
    margin: 0 0 10px;
}
#featured-services .entry-title a {
    color: #fff;
}
#featured-services .entry-title a:hover,
#featured-services .entry-title a:focus {
    opacity: 0.85;
}
#featured-services .entry-content {
    margin-bottom: 10px;
    color: #fff;
}
#featured-services a {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Blog Posts Grid (Homepage + /actus/ + Taxonomies)
   -------------------------------------------------------------------------- */
.col-1 article,
.col-2 article,
.col-3 article,
.col-4 article {
    margin-bottom: 30px;
    width: 100%;
}

.blog-posts-wrapper .section-content {
    align-items: flex-start;
    justify-content: flex-start;
}
.blog-posts-wrapper .post-item {
    position: relative;
}
.blog-posts-wrapper .featured-image {
    position: relative;
    overflow: hidden;
    background-color: #eee;
    padding: 150px 0;
    margin-bottom: 20px;
}
.blog-posts-wrapper .entry-title {
    font-size: 32px;
    margin: 0 0 10px;
}
.blog-posts-wrapper .post-item .entry-content {
    margin-bottom: 20px;
}
.blog-posts-wrapper a {
    text-decoration: none;
}
.blog-posts-wrapper .date a {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 5px 8px;
    z-index: 2;
}
.blog-posts-wrapper .date a:hover,
.blog-posts-wrapper .date a:focus {
    background-color: #000;
    color: #fff;
}

.entry-meta .cat-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0;
}
.entry-meta .cat-links a {
    font-size: 12px;
    text-transform: uppercase;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.entry-meta .cat-links a:hover,
.entry-meta .cat-links a:focus {
    background-color: #000;
    color: #fff;
}

/* Pagination */
nav.navigation.pagination {
    margin-top: 50px;
    clear: both;
    display: block;
    width: 100%;
    text-align: center;
}
.pagination .page-numbers {
    text-align: center;
    line-height: 35px;
    width: 35px;
    height: 35px;
    display: inline-block;
    margin-right: 5px;
    color: var(--color-primary);
    background-color: #ffe2cf;
    text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    color: #fff;
    background-color: var(--color-primary);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    height: auto;
    padding: 0 10px;
    background-color: transparent;
    color: var(--color-primary);
}
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    color: #111;
    background-color: transparent;
}

/* --------------------------------------------------------------------------
   Inner Page Header Banner
   -------------------------------------------------------------------------- */
#page-site-header {
    background-color: #333;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 220px 0;
}
#page-site-header .overlay {
    opacity: 0.4;
}
#page-site-header .page-header {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0 auto;
    transform: translateY(-50%);
    z-index: 2;
}
#page-site-header .page-title {
    color: #fff;
    font-size: 46px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Single Post, Tags, Post Navigation & Sidebar
   -------------------------------------------------------------------------- */
#primary #main > article .entry-content {
    margin-bottom: 25px;
}
.page .entry-content,
.single .entry-content {
    font-size: 19px;
    line-height: 1.75;
}
.page .entry-content h2,
.single .entry-content h2 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}
.page .entry-content h3,
.single .entry-content h3 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}
.page .entry-content p > img,
.single .entry-content p > img {
    display: block;
    margin: 1.5em auto;
}
.page .entry-content hr,
.single .entry-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2.2em auto;
}
.page .entry-content table tbody tr:nth-child(odd),
.single .entry-content table tbody tr:nth-child(odd) {
    background-color: #f6f6f6;
}

.tags-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tags-links a {
    border: 1px solid var(--color-primary);
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    line-height: 1;
    font-size: 14px;
    background-color: var(--color-primary);
    text-decoration: none;
}
.tags-links a:hover,
.tags-links a:focus {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.single .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}
.single .entry-meta .cat-links {
    margin-bottom: 0;
}
.single .entry-meta .icon {
    color: var(--color-primary);
}
.single .entry-meta .date a {
    text-decoration: none;
    color: var(--color-primary);
}
.single .entry-meta .date a .icon {
    margin-right: 6px;
}
.single .entry-meta .date a:hover {
    color: #000;
}

.navigation.post-navigation {
    padding: 20px 30px;
    margin-top: 35px;
    background-color: var(--color-light-bg);
}
.post-navigation .nav-previous {
    float: left;
    width: 48%;
    text-align: left;
}
.post-navigation .nav-next {
    float: right;
    width: 48%;
    text-align: right;
}
.post-navigation a {
    color: #212529;
    text-decoration: none;
    font-weight: 400;
    display: inline-block;
}
.post-navigation a:hover {
    color: var(--color-primary);
}
.post-navigation .nav-previous a .icon {
    margin-right: 8px;
}
.post-navigation .nav-next a .icon {
    margin-left: 8px;
}

/* Sidebar */
.no-sidebar #secondary {
    display: none;
}
#secondary .widget {
    background-color: var(--color-light-bg);
    padding: 30px;
}
#secondary .widget:not(:last-child) {
    margin-bottom: 35px;
}
#secondary .widget-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #212529;
    letter-spacing: 0.01em;
}
#secondary ul {
    margin: 0;
    padding-left: 1.2em;
}
#secondary li:not(:last-child) {
    margin-bottom: 10px;
}
#secondary a {
    color: #333;
    font-weight: 400;
    text-decoration: none;
}
#secondary a:hover,
#secondary a:focus {
    color: var(--color-primary);
}

.widget_upcoming_events .events-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-left: 3px solid var(--color-tec);
    padding: 12px 15px;
    font-size: 14px;
    color: #555;
}
.widget_upcoming_events .events-notice .icon {
    color: var(--color-tec);
    font-size: 18px;
}
.sidebar-event-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
}
.sidebar-event-item:last-child {
    border-bottom: none;
}
.sidebar-event-date {
    flex: 0 0 46px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--color-tec);
    padding: 4px 2px;
    line-height: 1.1;
}
.sidebar-event-date .m {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-tec);
    font-weight: 700;
}
.sidebar-event-date .d {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.sidebar-event-info a {
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}
.sidebar-event-info .t {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 2px;
}
.upcoming-events-all {
    margin-top: 15px;
    font-size: 14px;
}
.upcoming-events-all a {
    color: var(--color-tec) !important;
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Content Components (Buttons, Callouts, Galleries, PDF, Facebook CTA)
   -------------------------------------------------------------------------- */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85em;
    margin: 1.8em 0;
}
.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--color-tec);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    border: 2px solid var(--color-tec);
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: center;
}
.cta-btn:hover,
.cta-btn:focus {
    background-color: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

.callout {
    background-color: #f0f0f0;
    padding: 1.25em 1.8em;
    border-radius: 4px;
    margin: 1.5em 0;
}
.callout p:last-child,
.callout ul:last-child {
    margin-bottom: 0;
}

.facebook-cta {
    display: flex;
    justify-content: center;
    margin: 1.2em 0 1.8em;
}
.facebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 9999px;
    background-color: #0866ff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.15s ease, background-color 0.2s ease;
}
.facebook-btn:hover,
.facebook-btn:focus {
    transform: scale(1.05);
    background-color: #0552cc;
    color: #fff;
    text-decoration: none;
}
.facebook-btn .icon {
    font-size: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    margin: 2em 0;
}
.gallery-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.gallery-item figcaption {
    padding: 8px 10px;
    margin: 0;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    color: #444;
    background: #f6f6f6;
}

.pdf-embed {
    margin: 1.8em 0;
    padding: 16px 20px;
    background: var(--color-light-bg);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}
.pdf-embed object {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    background: #fff;
}
.pdf-embed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.pdf-embed-actions a {
    font-weight: 700;
    color: #222;
}
.pdf-embed-actions .pdf-download-btn {
    padding: 6px 16px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.pdf-embed-actions .pdf-download-btn:hover {
    background: #000;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Single Event Page (/evenements/<slug>/)
   -------------------------------------------------------------------------- */
.event-back-link {
    margin-bottom: 20px;
}
.event-back-link a {
    color: var(--color-tec);
    text-decoration: none;
    font-weight: 700;
}
.event-back-link a:hover {
    text-decoration: underline;
}
.event-past-notice {
    background: #f6f6f6;
    border-left: 4px solid #fcb900;
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: 15px;
}
.event-past-notice ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.event-single-title {
    color: var(--color-tec);
    font-size: 46px;
    font-weight: 700;
    margin: 0 0 10px;
}
.event-schedule {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.event-schedule .icon {
    color: var(--color-tec);
}
.event-export-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
}
.event-export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #fff;
    border: 1px solid var(--color-tec);
    color: var(--color-tec);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.event-export-btn:hover {
    background: var(--color-tec);
    color: #fff;
}
.event-details-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    padding: 25px;
    background: var(--color-light-bg);
    border-radius: 6px;
    margin: 30px 0;
}
.event-detail-col h3 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: #222;
}
.event-detail-col dl {
    margin: 0;
}
.event-detail-col dt {
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}
.event-detail-col dd {
    margin: 0 0 12px;
    color: #555;
}

/* Taxonomies list */
.taxonomy-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.taxonomy-term-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--color-light-bg);
    border-left: 4px solid var(--color-primary);
    text-decoration: none;
    color: #222;
    transition: all 0.2s ease;
}
.taxonomy-term-card:hover {
    background: var(--color-primary);
    color: #fff;
}
.taxonomy-term-card .term-name {
    font-family: 'Amatic SC', cursive;
    font-size: 30px;
    font-weight: 700;
}
.taxonomy-term-card .term-count {
    font-size: 14px;
    opacity: 0.85;
}

/* 404 */
.error-404.not-found {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.error-404.not-found .page-title {
    font-size: 42px;
}

/* --------------------------------------------------------------------------
   Footer, Floating Social Icons & Back to Top
   -------------------------------------------------------------------------- */
#colophon {
    position: relative;
    background-color: var(--color-blue);
    color: #fff;
}
#colophon,
#colophon a,
#colophon p,
#colophon li {
    color: #fff;
}
.footer-widgets-area {
    padding: 50px 0;
    text-align: center;
}
.social-icons {
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-icons li {
    display: inline-block;
    margin: 0 6px;
}
.social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-size: 18px;
}
.social-icons li a:hover {
    transform: scale(1.08);
}
.social-icons li a[href*="facebook.com"]:hover {
    background-color: #3c5798;
}
.social-icons li a[href^="mailto:"]:hover {
    background-color: var(--color-primary);
}
.social-icons li a[href$="rss.xml"]:hover {
    background-color: #fcb54d;
}

.site-info {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.site-info span {
    display: block;
    text-align: center;
    font-size: 15px;
}

/* Back to top */
.backtotop {
    background-color: var(--color-primary);
    z-index: 900;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: fixed;
    bottom: -100px;
    right: 25px;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    color: #fff;
}
.backtotop.is-visible {
    bottom: 25px;
}
.backtotop:hover {
    background-color: #000;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media screen and (min-width: 567px) {
    .col-2,
    .col-3,
    .col-4 {
        margin: 0 -15px;
        display: flex;
        flex-wrap: wrap;
    }
    .col-2 article,
    .col-3 article,
    .col-4 article {
        padding: 0 15px;
        width: 50%;
    }
    #featured-services .section-content {
        margin: 0;
    }
    #featured-services article {
        padding: 0;
    }
}

@media screen and (min-width: 767px) {
    .col-3 article {
        width: 33.3333%;
    }
    #featured-slider .entry-title {
        font-size: 48px;
    }
}

@media screen and (min-width: 992px) {
    .col-4 article {
        width: 25%;
    }
}

@media screen and (min-width: 1024px) {
    .site-branding {
        min-height: 100px;
    }
    .main-navigation {
        width: auto;
        float: right;
        text-align: right;
    }
    .menu-toggle,
    button.dropdown-toggle {
        display: none;
    }
    .main-navigation ul.nav-menu {
        display: block;
        margin-right: -25px;
    }
    .main-navigation ul.nav-menu > li {
        display: inline-block;
        text-align: center;
        padding: 36px 25px;
    }
    .main-navigation ul.nav-menu > li > a {
        color: #000;
    }
    .main-navigation .nav-caret {
        display: inline-flex;
        margin-left: 6px;
        font-size: 0.85em;
    }
    .main-navigation ul ul {
        display: block;
        position: absolute;
        top: 100%;
        left: -999em;
        z-index: 99999;
        box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.15);
    }
    .main-navigation ul li:hover > ul,
    .main-navigation ul li:focus-within > ul {
        left: 0;
        right: auto;
    }
    .main-navigation ul ul li {
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .main-navigation ul ul li:last-child {
        border-bottom: none;
    }
    .main-navigation ul ul li:hover > a,
    .main-navigation ul ul li.current-menu-item > a {
        background-color: var(--color-primary);
        color: #fff;
    }

    #featured-slider .entry-title {
        font-size: 72px;
    }
    .section-title {
        font-size: 72px;
    }

    .right-sidebar #primary {
        width: 70%;
        float: left;
        padding-right: 35px;
    }
    .right-sidebar #secondary {
        width: 30%;
        float: right;
    }
    .no-sidebar #primary {
        width: 100%;
        float: none;
        padding-right: 0;
    }
}

@media screen and (max-width: 1023px) {
    .main-navigation {
        position: static;
    }
    #masthead .main-navigation ul.nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        background-color: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    .main-navigation ul.nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: block;
        width: 100%;
    }
    .main-navigation ul.nav-menu li:last-child {
        border-bottom: none;
    }
    .main-navigation a {
        padding: 15px 50px 15px 20px;
        color: #555;
    }
    .main-navigation ul ul {
        position: relative;
        top: 0;
        left: 0;
        display: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .main-navigation ul ul.is-open {
        display: block;
    }
    .main-navigation ul ul a {
        width: 100%;
        padding-left: 38px;
    }
    #page-site-header {
        padding: 180px 0;
    }
}

@media screen and (max-width: 767px) {
    #page-site-header {
        padding: 140px 0;
    }
    #page-site-header .page-title {
        font-size: 36px;
    }
    .hero-slide {
        padding: 70px 0 200px;
    }
    #featured-slider .entry-container {
        width: 92%;
    }
    .slider-dots {
        bottom: 130px;
    }
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        float: none;
        width: 100%;
        text-align: left;
        margin: 8px 0;
    }
    #secondary {
        margin-top: 40px;
    }
}
