/**
 * Theme Name:     Vlog_Channel_Child
 * Author:         Optineris
 * Template:       vlog-channel
 * Text Domain:	   vlog_channel_child
 * Description:    ...
 */

/* ====== MENU – capitales + pas de soulignement (CONSERVER) ====== */
.main-navigation a,
#site-navigation a,
.main-navigation a *,
#site-navigation a * {
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* Supprime traits/bordures utilisés comme "soulignement" */
.main-navigation .menu > li > a,
#site-navigation .menu > li > a,
nav#site-navigation a {
  border: 0 !important;
  background-image: none !important;
}

/* Coupe les pseudo-soulignements */
.main-navigation .menu > li > a::before,
.main-navigation .menu > li > a::after,
#site-navigation .menu > li > a::before,
#site-navigation .menu > li > a::after,
nav#site-navigation a::before,
nav#site-navigation a::after {
  content: none !important;
}

/* États hover/focus/active */
.main-navigation a:hover,
.main-navigation a:focus,
#site-navigation a:hover,
#site-navigation a:focus {
  text-decoration: none !important;
}

/* Sous-menus */
.main-navigation .sub-menu a,
.main-navigation .sub-menu a *,
#site-navigation .sub-menu a,
#site-navigation .sub-menu a * {
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 0 !important;
}

/* Menu mobile (sidenav) s’il existe */
.sidenav #site-navigation a,
.sidenav #site-navigation a * {
  text-transform: uppercase !important;
  text-decoration: none !important;
  border: 0 !important;
}

/* Cas fréquents (thèmes avec navbar type Bootstrap) */
.navbar a,
.navbar-nav .nav-link {
  text-transform: uppercase !important;
  text-decoration: none !important;
}


/* === Mise en forme de la fiche offre d’emploi === */
.infos-offre {
  background: #f6f8fb;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  line-height: 1.6;
  border-left: 4px solid #229da4;
}
.infos-offre p { margin: 0.4rem 0; color: #333; }
.section-offre { margin-top: 1.2rem; }
.section-offre:first-of-type { margin-top: 0.8rem; }
.section-titre { font-size: 1.1rem; font-weight: 600; color: #229da4; margin-bottom: 0.3rem; }
.section-description { margin: 0; color: #444; }
.entry-author { display: none !important; }
.preview-offre {
  background: #f9fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 0.8rem;
  line-height: 1.5;
  transition: background 0.2s ease-in-out;
}
.preview-offre:hover { background: #f2f8f9; }
.preview-offre p { margin: 0.3rem 0; color: #333; }

/* === Boutons navigation / action offre === */
.offre-actions {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; margin-top: 2rem; gap: 1rem;
}
.btn-offre {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: 6px;
  font-weight: 600; text-decoration: none; transition: all 0.2s ease-in-out;
}
.btn-offre.retour { background-color: #e4e8ee; color: #333; }
.btn-offre.retour:hover { background-color: #d7dbe0; transform: translateY(-1px); }
.btn-offre.postuler { background-color: #229da4; color: #fff; }
.btn-offre.postuler:hover { background-color: #1e8c92; transform: translateY(-1px); }


/* 1) SLIDER PLUS BAS + RESPONSIVE (ratio 1400x550 ≈ 39.2857%) */
#top-slider .slider-image { position: relative; }
#top-slider .slider-image::before { content:""; display:block; padding-top:39.2857%; } /* ratio */
#top-slider .slider-image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }


/* 3) Slider = image seule (pas de flèches, pas de points, pas de contenu superposé) */
#top-slider .owl-nav,
#top-slider .owl-dots { display:none !important; }
#top-slider .slider-inner-box,
#top-slider .slide-btn,
#top-slider .slider-background { display:none !important; }

/* Slider #top-slider — hauteur réduite & responsive */
#top-slider { --slide-h: clamp(220px, 34vh, 420px); }
#top-slider .owl-stage-outer { height: var(--slide-h) !important; }
#top-slider .owl-stage,
#top-slider .owl-item,
#top-slider .slide-box,
#top-slider .slider-image { height: 100% !important; }
#top-slider .slider-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 768px) {
  #top-slider { --slide-h: clamp(180px, 28vh, 300px); }
}



/* ===== Contact – CF7 : mise en page & style (formulaire .login-box__form) ===== */

.wpcf7 form .login-box__form{
  display:grid;
  grid-template-columns:repeat(2,minmax(240px,1fr));
  gap:16px 20px;
  align-items:start;
  background:#fff;
  border:1px solid #e6edf3;
  border-radius:12px;
  padding:24px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}

.wpcf7 form .login-box__form .input,
.wpcf7 form .login-box__form .submit{ display:flex; flex-direction:column; }

.wpcf7 form .login-box__form .input--large{ grid-column:1 / -1; } /* le textarea prend toute la largeur */
.wpcf7 form .login-box__form .submit{ grid-column:1 / -1; margin-top:4px; }

.wpcf7 form .login-box__form label{
  font-weight:600; color:#333; margin-bottom:6px; font-size:.95rem;
}

/* Champs */
.wpcf7 form .login-box__form input[type="text"],
.wpcf7 form .login-box__form input[type="tel"],
.wpcf7 form .login-box__form select,
.wpcf7 form .login-box__form textarea{
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid #d1d5db;
  border-radius:8px;
  background:#fff;
  font-size:1rem;
  box-sizing:border-box;
  transition:border-color .2s ease, box-shadow .2s ease;
}

.wpcf7 form .login-box__form textarea{
  height:auto; min-height:140px; padding:12px; resize:vertical;
}

/* Focus */
.wpcf7 form .login-box__form input:focus,
.wpcf7 form .login-box__form select:focus,
.wpcf7 form .login-box__form textarea:focus{
  outline:0;
  border-color:#229da4;
  box-shadow:0 0 0 3px rgba(34,157,164,.15);
}

/* Select : flèche custom turquoise */
.wpcf7 form .login-box__form select{
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:14px auto;
  padding-right:2.2rem;
  background-image:url("data:image/svg+xml;utf8,<svg fill='%23229da4' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 011.08 1.04l-4.25 4.25a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/></svg>");
}

/* Bouton */
.wpcf7 form .login-box__form .submit button{
  align-self:flex-start;
  background:#229da4;
  color:#fff;
  border:0;
  padding:.8rem 1.4rem;
  border-radius:8px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.wpcf7 form .login-box__form .submit button:hover{
  background:#1e8c92;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(34,157,164,.18);
}
.wpcf7 form .login-box__form .submit button:disabled{ opacity:.6; cursor:not-allowed; }

/* États CF7 (erreurs & messages) */
.wpcf7 form .login-box__form .wpcf7-not-valid{
  border-color:#e63946 !important;
  box-shadow:0 0 0 3px rgba(230,57,70,.12) !important;
}
.wpcf7 form .login-box__form .wpcf7-not-valid-tip{
  margin-top:6px; font-size:.85rem; color:#e63946;
}
.wpcf7 form .wpcf7-response-output{
  margin-top:14px; border-radius:8px; padding:.8rem 1rem; border-width:1px;
}
.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok{ border-color:#38a169; background:#ecf9f1; color:#2f855a; }
.wpcf7 form .wpcf7-response-output.wpcf7-validation-errors,
.wpcf7 form .wpcf7-response-output.wpcf7-spam-blocked{ border-color:#e53e3e; background:#fdecec; color:#c53030; }

/* Spinner CF7 à côté du bouton */
.wpcf7 form .wpcf7-spinner{ margin-left:10px; }

/* Responsive */
@media (max-width:768px){
  .wpcf7 form .login-box__form{ grid-template-columns:1fr; padding:18px; gap:14px; }
  .wpcf7 form .login-box__form .submit button{ width:100%; }
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #000000;
  background: #FAFAFA;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222222;
  font-weight: normal;
  font-family: "Inter", sans-serif;
}

pre {
  font-size: 1em;
}

a {
  color: #229da4;
  background-color: transparent;
  text-decoration: none;
}

hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

button,
input,
optgroup,
select,
textarea {
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

img {
  border-style: none;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
.header_in button:focus {
  outline: -webkit-focus-ring-color auto 1px;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * Alignment CSS
 */
/*.alignwide {
  margin-left  : -80px;
  margin-right : -80px;
}
.alignfull {
  margin-left  : calc( -100vw / 2 + 100% / 2 );
  margin-right : calc( -100vw / 2 + 100% / 2 );
  max-width    : 100vw;
}
.alignfull img {
  width: 100vw;
}*/

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

.wish-btn a:hover,
.cart-text:hover,
.account-btn:hover,
.wish-btn i:hover,
.cart_no i:hover,
.user-btn i:hover {
  color: #222222;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
.custom-header *,
.featured-header-image * {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
img {
  height: auto;
  /* Make sure images are scaled correctly. */
  max-width: 100%;
  /* Adhere to container width. */
}

figure {
  margin: 1em 0;
  /* Extra wide images within figure tags don't overflow the content area. */
}

.entry-content a,
.textwidget a,
.comment-content a,
.woocommerce-product-details__short-description a,
#page-content p a, .sidebar p a, #colophon p a {
  text-decoration: none;
}

#masthead {
  margin-bottom: 4em;
}

.page-template-home-template #masthead {
  margin-bottom: 0;
}

.custom-logo-link img {
  display: inline-block;
  max-height: 80px;
  width: auto;
}

/*--------------------------------------------------------------
# Scroll Back
--------------------------------------------------------------*/
#button {
  display: inline-block;
  background-color: #229da4;
  width: 55px;
  height: 55px;
  text-align: center;
  position: fixed;
  bottom: 60px;
  right: 30px;
  transition: background-color .3s, opacity .5s, visibility .5s;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  padding: 18px 0;
  font-weight: bold;
}

a#button {
  color: #fff !important;
}

#button:hover,
#button:active {
  cursor: pointer;
  background-color: #222222;
}

#button.show {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------------------------------
# Form
--------------------------------------------------------------*/

.post-password-form input[type="password"] {
  margin-top: 0.4375em;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.page-template-home-template .main-header {
  border: 0;
}
.main-header {
  padding: 10px 0;
  border-bottom: 1px solid #000;
}
.toggle-btn {
  padding: 5px 7px 7px;
  background-color: #229da4;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: #000;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: left;
  width: 55px;
  height: max-content;
  margin: 4px 0;
  align-self: anchor-center;
}
.toggle-btn i {
  color: #000;
  background: #fff;
  padding: 5px;
  border-radius: 50%;
  font-size: 14px;
}
.toggle-btn.active i {
  background: #229da4;
  color: #fff;
}
.toggle-btn.active i:before {
  content: '\f186';
}
.toggle-btn.active {
  background-color: #fff;
  text-align: right;
}

/* new add for toggle */
body.dark-theme {
  background-color: #000 !important;
  color: #fff;
}
body.dark-theme .navbar-logo a, body.dark-theme .main-navigation .menu>li>a, body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5, body.dark-theme h6, body.dark-theme .meta-info-box span, body.dark-theme .meta-info-box a, body.dark-theme .article-box a, body.dark-theme .sidebar li, body.dark-theme .sidebar li a, body.dark-theme .sidebar .tagcloud a, body.dark-theme p.wp-block-tag-cloud a, body.dark-theme p.price, body.dark-theme .woocommerce ul.products li.product .price, body.dark-theme .woocommerce div.product p.price, body.dark-theme .woocommerce div.product span.price {
  color: #fff;
}
body.dark-theme .sidebar section, body.dark-theme .main-header{
  border-color: #fff;
  color: #fff;
}
.header-search-wrapper .search-form-main {
  background: #fff;
}

span.head-search {
  position: relative;
  margin-right: 20px;
}
.search-form {
  display: flex;
  justify-content: space-between;
}
span.search-main i {
  color: #200E32;
  font-size: 15px;
  padding: 10px 10px 10px 12px;
  border-radius: 6px;
  background: #229da4;
}
.header-search-wrapper .search-form-main {
  box-shadow: 0px 4px 4px 0px #229da414;
  width: 250px;
  border-radius: 5px;
}
.search-form-main.active-search label{
  display: block;
}
.header-search-wrapper .search-form-main .search-field {
  border-radius: 0;
  padding: 10px;
  width: 100%;
  border: 0;
  border-radius: 5px;
}
.header-search-wrapper .search-form-main:before {
  border-bottom-color: #272727;
}
.search-form-main button.search-submit {
  margin-top: 0px !important;
  border: 0px;
  color: #000000;
  background: transparent;
  box-shadow: none;
}
.search-form-main input.search-field.form-control {
  position: relative;
}


/*--------------------------------------------------------------
## Logo
--------------------------------------------------------------*/
.navbar-logo a {
  color: #292929;
  font-weight: 700;
  font-size: 20px;
  font-family: "Inter", sans-serif;
}

.navbar-logo p {
  color: #222222;
  font-size: 15px;
  margin-bottom: 0;
}

.navbar-dark .navbar-logo {
  color: #222222;
  display: block;
  padding: 15px;
}

.navbar-logo h1.site-title,
p.site-title {
  margin-bottom: 0;
  font-weight: bold;
  line-height: 1.2;
}

.navbar-logo a span.last_slide_head {
  color: #222222;
}


/*--------------------------------------------------------------
## Sticky
--------------------------------------------------------------*/

.stick_header {
  position: fixed;
  width: 100%;
  z-index: 999;
  top: 0;
  background: #ebebeb;
}

.admin-bar .navigation_header.stick_header {
  margin-top: 32px;
}

/*--------------------------------------------------------------
## Preloader
--------------------------------------------------------------*/
.dot {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: inline-block;
  margin: 6px;
  animation: loading 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.loading {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 99999;
}

@keyframes loading {

  0%,
  100% {
    transform: translatey(-2.5rem);
    background-color: #229da4;
  }

  50% {
    transform: translatey(2.5rem);
    background-color: #229da4;
  }
}


/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation .menu ul {
  margin-bottom: 0px;
  padding: 0px;
  display: inline-block;
}

.main-navigation .menu li {
  display: inline;
  position: relative;
  text-transform: uppercase;
  list-style: none;
}

#site-navigation .sub-menu ul li a {
  padding: 15px;
  color: #fff;
}

#site-navigation .sub-menu ul li a:hover, #site-navigation .sub-menu ul li a:focus {
  color: #229da4;
}

.navigation_header .nav,
.navbar-expand-xl {
  justify-content: flex-start;
}

nav#site-navigation {
  padding: 0;
}


.main-navigation ul.sub-menu>li>a:hover,
.main-navigation ul.sub-menu>li>a:focus {
  background: #9FD8CB;
}

.main-navigation .menu {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.main-navigation .menu>li {
  display: inline;
  position: relative;
}

.main-navigation .menu li a {
  padding: 16px 10px;
  display: inline-block;
  color: #229da4;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.main-navigation .current_page_item>a, .main-navigation .current-menu-item>a {
  color: #275b73 !important;
}

.main-navigation .menu>li>a:hover {
  color: #229da4;
}

.main-navigation .sub-menu {
  background-color: #229da4;
  list-style: none;
  padding-left: 0;
  position: absolute;
  opacity: 0;
  left: -9999px;
  z-index: 99999;
  width: 200px !important;
}

.main-navigation .sub-menu>li>a:hover,
.main-navigation .sub-menu>li>a:focus {
  background: #1A1819;
  color: #fff;
}

.main-navigation .sub-menu li ul.sub-menu {
  left: 200px !important;
  top: 0px;
}

.main-navigation .sub-menu>li {
  display: block;
  float: none;
  position: relative;
}

.main-navigation .sub-menu>li.menu-item-has-children .submenu-expand {
  display: inline-block;
  position: absolute;
  width: calc(24px + 1rem);
  right: 0;
  top: calc(.125 * 1rem);
  bottom: 0;
  color: white;
  line-height: 1;
  padding: calc(.5 * 1rem);
}

.main-navigation .sub-menu>li.menu-item-has-children .submenu-expand {
  margin-right: 0;
}

.main-navigation .sub-menu>li>a,
.main-navigation .sub-menu>li>.menu-item-link-return {
  color: #fff;
  display: block;
  padding: 15px;
  font-weight: 500;
}

.main-navigation .sub-menu>li>.menu-item-link-return {
  width: 100%;
  font-size: 22px;
  font-weight: normal;
  text-align: left;
}

.main-navigation .sub-menu>li>a:empty {
  display: none;
}

.main-navigation .sub-menu>li.mobile-parent-nav-menu-item {
  display: none;
  font-size: 0.88889em;
  font-weight: normal;
}

.main-navigation .menu .menu-item-has-children:not(.off-canvas):hover>.sub-menu,
.main-navigation .menu .menu-item-has-children:not(.off-canvas):focus>.sub-menu,
.main-navigation .menu .menu-item-has-children.is-focused:not(.off-canvas)>.sub-menu,
.main-navigation .menu .menu-item-has-children:not(.off-canvas)[focus-within]>.sub-menum,
.main-navigation .menu .menu-item-has-children:not(.off-canvas):focus-within>.sub-menu {
  display: block;
  left: 0;
  margin-top: 0;
  opacity: 1;
  width: auto;
  min-width: 100%;
}

/*--------------------------------------------------------------
## Next / Previous
--------------------------------------------------------------*/
/* Next/Previous navigation */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
  overflow: hidden;
  width: 100%;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  float: left;
  width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  float: right;
  text-align: right;
  width: 50%;
}

.comment-content.card-block {
  padding: 20px;
}

.navigation.post-navigation {
  padding-top: 1.875rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a,
.posts-navigation .nav-previous a,
.posts-navigation .nav-next a {
  border: 1px solid #ddd;
  -webkit-border-radius: 0.98rem;
  -moz-border-radius: 0.98rem;
  border-radius: 0.98rem;
  display: inline-block;
  padding: 0.313rem 0.875rem;
  overflow-wrap: anywhere;
  background: white;
  color: #000000;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover,
.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
  background: #229da4;
  color: #000000;
  border: 1px solid #229da4;
}

.post-navigation .nav-next a::after,
.posts-navigation .nav-next a::after {
  content: " \2192  ";
}

.post-navigation .nav-previous a::before,
.posts-navigation .nav-previous a::before {
  content: "\2190  ";
}

.navigation.pagination {
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
  border: 1px solid #ddd;
  -webkit-border-radius: 0.98rem;
  -moz-border-radius: 0.98rem;
  border-radius: 0.98rem;
  display: inline-block;
  padding: 0.13rem 0.875rem;
  background: white;
}

.navigation.pagination .nav-links a.current,
.navigation.pagination .nav-links a:hover,
.navigation.pagination .nav-links span.current,
.navigation.pagination .nav-links span:hover {
  background: #229da4;
  color: white;
  border: 1px solid #229da4;
}

@media screen and (max-width: 560px) {
  .navigation.post-navigation .nav-links {
    display: flex;
    flex-flow: column wrap;
  }

  .navigation.post-navigation .nav-links .nav-previous,
  .navigation.post-navigation .nav-links .nav-next {
    margin-bottom: 14px;
    width: 100%;
    float: none;
    text-align: start;
  }
}

/* Accessibility */
/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  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;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
  outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
/*.alignleft {
  display: inline;
  float: left;
  margin-right: 1.5em;
}
.alignright {
  display: inline;
  float: right;
  margin-left: 1.5em;
}
.aligncenter {
  clear: both;
  display: block;
  margin-right: auto;
  margin-left: auto;
}*/
a img .alignright {
  float: right;
  margin: 0.313rem 0 1.25rem 1.25rem;
}

a img .alignnone {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

a img .alignleft {
  float: left;
  margin: 0.313rem 1.25rem 1.25rem 0;
}

a img .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .alignnone {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

.wp-caption .alignleft {
  margin: 0.313rem 1.25rem 1.25rem 0;
}

.wp-caption .alignright {
  margin: 0.313rem 0 1.25rem 1.25rem;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

.module-border-wrap {
  -moz-border-image: -moz-linear-gradient(to bottom left, #19b094 0%, #229da4 100%);
  -webkit-border-image: -webkit-linear-gradient(to bottom left, #19b094 0%, #229da4 100%);
  border-image: linear-gradient(to bottom left, #19b094 0%, #229da4 100%) 1;
}


/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.error-404 input.search-field.form-control {
  width: 30%;
}

.btn-primary {
  background-color: #000;
  border-color: #000;
}

.error-404 input.search-submit.btn.btn-primary {
  width: 30%;
  margin-top: 5px;
}

.page-content form.search-from {
  display: flex;
  justify-content: center;
}
.theme-area-headlines h2 {
  font-size: 60px;
  font-weight: 900;
}
.not-found-pagetext input.search-submit.btn.btn-primary {
  background: #229da4;
}

.sticky .entry-title a {
  margin-left: 15px;
}

.sticky .entry-title::before {
  content: '\f08d';
  font-family: "Font Awesome\ 5 Free";
  font-size: 20px;
  font-weight: 900;
}

.single .byline,
.group-blog .byline {
  display: inline;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

.posted-on,
.byline,
.comments-link {
  color: #9a9a9a;
}

div#respond {
  border: 1px solid #bcbcbc;
  padding: 15px;
}

/*--------------------------------------------------------------
## Footer
--------------------------------------------------------------*/
#colophon {
  background: #229da4;
  color: #fff;
}

.widget #wp-calendar caption,
#colophon a,
#colophon h5 {
  color: #fff;
}

#colophon a:hover,
#colophon a:focus {
  color: #000;
}

#colophon ul {
  list-style: none;
  padding-left: 0;
}

#colophon h5 {
  font-weight: normal;
  font-size: 35px;
  letter-spacing: 1px;
}

#colophon a:hover,
#colophon a:focus {
  color: #000;
}

.footer-column .widget ul li:hover{
  color: #000;
}

#colophon .footer-menu ul {
  list-style: none;
  display: flex;
  padding-left: 0;
  margin-bottom: 0;
}
aside#pages ul li:hover{
  color: #000000;
}
#colophon .footer-menu li {
  margin-right: 10px;
}

.site-info {
  padding: 15px 0;
}

.footer-menu-left {
  text-align: right;
}

.footer-column {
  border-bottom: 1px solid #fff;
}

.footer-column .widget {
  padding: 30px 0;
}

.widget select {
  width: 100%;
  padding: 8px 4px;
  border-radius: 10px;
}

a.rsswidget {
  text-decoration-line: underline;
}

#colophon .tagcloud a {
  font-size: 15px !important;
  display: block;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/

.widget a:hover,
.widget a:focus {
  color: #229da4;
}

.widget ul li.recentcomments {
  display: block;
  padding: 5px 15px;
}

.widget .gallery-item,
.textwidget {
  padding: 10px;
}

.widget #wp-calendar caption {
  caption-side: top !important;
  padding-top: 0;
}

.widget #wp-calendar tbody tr td {
  padding: .5rem;
}

.widget #wp-calendar tfoot {
  text-align: center;
}

.half-rule {
  margin: 2.5rem 0;
  width: 6rem;
}

.sidebar section {
  border: solid 1px #000000;
  margin-bottom: 30px;
}

.sidebar h5, .sidebar h2.wp-block-heading {
  font-size: 30px;
  color: #fff;
  background: #229da4;
  padding:  10px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
}
.sidebar .wp-block-latest-comments article {
  margin-bottom: 0;
}
.sidebar h5 a{
  color: #ffffff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  color: #222222;
  padding: 15px 15px 0;
  font-size: 15px;
  font-weight: 500;
}

.sidebar ul li a:before {
  content: '\f30b';
  font-family: "Font Awesome\ 5 Free";
  font-size: 15px;
  margin-right: 10px;
  font-weight: 900;
}

.sidebar ul li a:hover {
  color: #229da4;
}

.sidebar ul li a {
  color: #222222;
}

.sidebar .textwidget img,
.sidebar .form-group {
  width: 100%;
  height: auto;
}

.sidebar select {
  padding: 10px;
  border: solid 1px #000000;
  background: transparent;
  font-size: 14px;
  width: 100%;
  color: #222222;
}

.sidebar .tagcloud a,
p.wp-block-tag-cloud a {
  border: 1px solid #e3e3e3;
  color: #222222;
  line-height: 20px;
  padding: 5px 10px;
  font-size: 12px !important;
  display: inline-block;
  margin-bottom: 5px;
}

.sidebar .tagcloud a:hover {
  background: #229da4;
  color: #ffffff;
}

p.wp-block-tag-cloud a:hover {
  background: #229da4;
  color: #fff;
}

.sidebar .tagcloud {
  margin-top: 15px;
}

.sidebar input[type="search"] {
  padding: 10px;
  width: 100%;
  border: solid 1px #e7ebf1;
  font-size: 15px;
}

.sidebar button[type="submit"] {
  padding: 8px;
  width: 100%;
  color: #fff;
}

.sidebar table#wp-calendar {
  border: solid 1px #e3e3e3;
  text-align: center;
  margin-top: 15px;
  width: 100%;
}

.sidebar th,
#theme-sidebar td {
  border-right: solid 1px #e3e3e3;
  padding: 10px 0;
}

.sidebar tr {
  border-bottom: solid 1px #e3e3e3;
}

/*--------------------------------------------------------------
# Infinite Scroll
--------------------------------------------------------------*/
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Audio
--------------------------------------------------------------*/
#footer label,
iframe,
.entry-audio audio,
.sidebar input[type="submit"],
span.woocommerce-input-wrapper,
.checkout label,
.woocommerce-page form .password-input {
  width: 100%;
}

iframe {
  height: auto;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/

.wp-caption {
  background-color: #fff;
  border: 1px solid #dee2e6;
  -webkit-border-radius: 0.25rem;
  -moz-border-radius: 0.25rem;
  border-radius: 0.25rem;
  height: auto;
  max-width: 100%;
  padding: 0.25rem;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  color: #686868;
  font-size: 13px;
  font-size: 0.8125rem;
  text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

.gallery-caption {
  display: block;
}

ul.comment-list .comment .media-body {
  overflow: auto;
}

.toggle-nav.mobile-menu,
a.closebtn.mobile-menu {
  display: none;
}

@media screen and (max-width: 575px) {
  .contact-box,
  #colophon h5,
  #colophon .tagcloud a {
    text-align: center;
  }

  section.featured .heading {
    text-align: center !important;
    margin-bottom: 40px !important;
  }
  .site-logo {
    margin-bottom: 20px;
  }
  .slider-inner-box p {
    display: none;
  }

}

@media screen and (max-width: 720px) {

  .toggle-nav,
  .footer-menu-left,
  #colophon ul,
  .slider-box {
    text-align: center;
  }

  .navbar-logo,
  .admin-bar .navigation_header.stick_header {
    margin: 0 auto;
    width: 100%;
  }
}

@media screen and (max-width: 1000px) {
  ul#menu-testing-menu li.current-menu-item.current_page_item a {
    border: none;
    color: #ffffff;
  }

  .admin-bar .sidenav .closebtn {
    top: 20px;
    padding: 7px;
  }

  .main-navigation ul.sub-menu li a {
    color: #ffffff !important;
  }

  .main-navigation ul.sub-menu>li>a:hover,
  .main-navigation ul.sub-menu>li>a:focus {
    background: transparent;
  }

  .main-navigation .menu>li>a:hover {
    color: #229da4;
  }

  .main-navigation .sub-menu>li {
    border: none;
  }

  .alignfull {
    max-width: 1000%;
    margin-right: ~"calc(50% - 50vw)";
    margin-left: ~"calc(50% - 50vw)";
    width: auto;
  }

  .alignwide {
    max-width: 1000%;
    margin-right: ~"calc(25% - 25vw)";
    margin-left: ~"calc(25% - 25vw)";
    width: auto;
  }

  .toggle-nav {
    display: none;
    cursor: pointer;
    z-index: 999999;
  }

  .toggle-nav i {
    font-size: 20px;
    color: #fff;
    padding: 8px;
    background: #229da4;
  }

  .toggle-nav button {
    border: none;
    background: transparent;
  }

  .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    overflow-x: hidden;
    transition: 0.5s;
    overflow-y: scroll;
    background: #000000;
    visibility: hidden;
  }

  .sidenav.show {
    visibility: visible;
    width: 300px;
  }

  .sidenav .closebtn {
    position: absolute;
    top: 20px;
    margin-left: 10px;
    display: block;
    font-size: 22px;
    background: #229da4;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    color: #000000;
    text-align: center;
    right: 14px;
    line-height: 1;
  }

  .sidenav #site-navigation {
    width: 100%;
  }
  .main-navigation .current_page_item>a, .main-navigation .current-menu-item>a {
    color: #fff !important;
  }
  .main-navigation .menu>li>a:before {
    display: none;
  }

  .toggle-nav,
  .toggle-nav.mobile-menu,
  a.closebtn.mobile-menu,
  .main-navigation ul ul li,
  .nav ul li a {
    display: block;
  }

  .nav ul li ul,
  .nav ul li ul ul {
    display: block !important;
  }

  .nav ul li ul li a:before {
    content: "\00BB \00a0";
  }

  .nav ul li ul li a {
    padding-left: 20px !important;
  }

  .nav ul li ul li ul li a {
    padding-left: 30px !important;
  }

  .nav ul li ul,
  .nav ul li ul ul {
    display: block !important;
    opacity: 1 !important;
  }

  .main-navigation ul ul {
    position: static;
    width: 100%;
  }

  .main-navigation li {
    padding: 0;
  }

  .main-navigation .sub-menu {
    position: static;
    background: transparent !important;
  }

  .main-navigation .menu>li>a,
  .main-navigation .sub-menu>li>a,
  .main-navigation .sub-menu>li>.menu-item-link-return {
    color: #fff;
    display: block;
    border: none;
    text-align: left;
  }

  #site-navigation .menu ul li a {
    color: #fff !important;
  }

  #site-navigation .menu ul li a:hover {
    color: #229da4;
  }

  .main-navigation .menu ul {
    text-align: left;
  }

  .navigation_header .nav,
  .navbar-expand-xl {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 991px) {
  .pro-button span {
    display: block;
    padding: 15px 0px;
    margin-right: 0px !important;
  }
}

@media screen and (min-width: 783px) and (max-width: 1000px) {
  .admin-bar .main-navigation .menu {
    padding-top: 32px;
  }
}

@media screen and (max-width: 1440px) {
  #event-section .event-outer{
    gap: 38px;
  }
}

@media screen and  (max-width: 1366px) {
  .main-navigation .menu>li>a, #site-navigation .menu ul li a {
    font-size: 12px;
    padding: 12px 8px;
  }
  .header-search-wrapper .search-form-main {
    width: 190px;
  }
  .header-search-wrapper .search-form-main, .header-search-wrapper .search-form-main input {
    font-size: 13px;
  }
  #event-section .event-outer {
    gap: 33px;
  }
  .toggle-btn i {
    font-size: 10px;
    padding: 5px 6px;
  }
  .toggle-btn {
    padding: 4px 6px 5px;
  }
}

@media screen and (max-width: 1024px) {
  .header-search-wrapper .search-form-main {
    width: 150px;
  }
  .toggle-btn i {
    font-size: 8px;
    padding: 4px 5px;
  }
  .toggle-btn {
    padding: 1px 5px 4px;
  }
  #top-slider .slider-inner-box {
    left: 25%;
    right: 25%;
  }
  #top-slider .slider-inner-box h3, #event-section h3 {
    font-size: 30px;
  }
  span.slide-video-btn a#openModalButton, #top-slider a.subscribe-btn, #event-section .event-head a, #event-section .event-content p {
    font-size: 13px;
  }
  #event-section .event-outer {
    gap: 28px;
  }
  #event-section .event-content h4 {
    font-size: 20px;
  }
  #event-section .event-content {
    padding: 25px;
  }
}

@media screen and (max-width:782px) {
  .admin-bar .main-navigation .menu {
    padding-top: 45px;
  }
  #top-slider .slider-image img {
    height: 500px;
  }
  #top-slider .slider-image {
    height: 550px;
  }
  #top-slider .slider-background {
    height: 530px;
  }
  #top-slider .slider-inner-box {
    left: 20%;
    right: 20%;
  }
  #event-section .event-outer {
    gap: 20px;
  }
  #event-section .event-content {
    padding: 15px;
  }
  #event-section p.event-date {
    font-size: 10px;
  }
}

@media screen and (max-width: 767px) {
  .page-template-home-template .navbar-dark .navbar-logo {
    margin-right: 0;
  }
  .header-search-wrapper .search-form-main {
    margin: 10px auto;
  }
  #top-slider .slider-image img {
    height: 300px;
  }
  #top-slider .slider-image {
    height: 350px;
  }
  #top-slider .slider-background {
    height: 330px;
  }
  #top-slider .slider-inner-box h3 {
    font-size: 22px;
  }
  #top-slider .slider-inner-box h4 {
    font-size: 14px;
  }
  #event-section .event-box {
    width: 100%;
  }
  #top-slider .slider-inner-box {
    left: 10%;
    right: 10%;
  }
}

@media screen and (max-width: 320px) {
  .woocommerce ul.products li {
    width: 100% !important;
  }
  #about-section .about-feature h5 {
    flex-basis: 35%;
  }
}

.button-header a {
  padding: 10px 15px;
}

@media screen and (min-width:1700px) and (max-width:1900px) {
  .container {
    max-width: 1520px;
  }
}

@media screen and (min-width:1920px) {
  .container {
    max-width: 1620px;
  }
}

/* ======== MENU MOBILE (sans fond) ======== */
@media screen and (max-width: 1000px) {
  .sidenav {
    background-color:  #229da4;
    box-shadow: none !important;
  }

  .sidenav #site-navigation,
  .sidenav #site-navigation a {
    background-color: transparent !important;
    color: #000 !important; /* texte en noir pour cohérence avec le thème */
  }

  .sidenav .menu li a:hover {
    color: #9fd8cb !important; /* turquoise au survol */
  }
}

/* === Footer widgetisé Optineris === */
.site-footer {
  background-color: #229da4;
  color: #fff;
  padding: 60px 20px 30px;
  font-size: 15px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-col ul li a:hover {
  color: #9fd8cb !important;
  text-decoration: none;
}

.footer-socials a {
  display: inline-block;
  color: #fff;
  margin-right: 12px;
  font-size: 18px;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
}

/* === FOOTER – Bloc réseaux sociaux === */
.footer-socials {
  text-align: left;
}

.footer-socials .footer-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  text-transform: none;
  line-height: 1.4;
}

.footer-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #9fd8cb;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}

.footer-icons a:hover {
  background-color: #229da4;
  transform: translateY(-1px);
}

/* === Bouton "Retour en haut" === */
#button {
  display: flex;               /* ✅ centre le texte automatiquement */
  align-items: center;         /* centre verticalement */
  justify-content: center;     /* centre horizontalement */
  background-color: #229da4;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;          /* léger ajustement pour le mot "haut" */
  border-radius: 4px;
  position: fixed;
  bottom: 25px;
  right: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 9999;
  min-width: 50px;             /* empêche les variations de largeur */
  height: 34px;                /* garde une belle forme régulière */
}

#button:hover {
  background-color: #9fd8cb;
  color: #000;
  transform: translateY(-3px);
}

/* === Champ de recherche header : suppression de l'ombre bleue === */
.search-form .search-field:focus {
  outline: none !important;
  border-color: #229da4 !important; /* Bordure turquoise */
  box-shadow: 0 0 0 2px rgba(34, 157, 164, 0.2) !important; /* Halo léger turquoise */
}

/* Normal (non focusé) — bordure douce et sans halo */
.search-form .search-field {
  border: 0.5px solid #ccc !important;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
}

/* Bloc de résultats vides */
.no-result-icon {
  text-align: center;
  color: #444;
  margin-top: 2rem;
  font-size: 1rem;
}

.no-result-icon i {
  font-size: 2.5rem;
  color: #229da4;
  margin-bottom: 0.5rem;
}

.no-results .search-form {
  margin-top: 1rem;
  text-align: center;
}


/* === FORMULAIRE DE RECHERCHE OPTINERIS === */
.search-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.search-form .search-field {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-size: 15px;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.search-form .search-field:focus {
  border-color: #229da4;
  box-shadow: 0 0 0 3px rgba(34, 157, 164, 0.15);
  outline: none;
}

/* Bouton */
.search-form .search-submit {
  background-color: #229da4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease-in-out;
}

.search-form .search-submit:hover {
  background-color: #1b868c;
}

.search-form .search-submit i {
  font-size: 0.9rem;
}

/* === PAGE DE RECHERCHE OPTINERIS === */
.page-header .page-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #229da4;
  margin-bottom: 1rem;
}

#main.site-main {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results .page-title {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 1rem;
}

/* === FILTRE DE RECHERCHE === */
.search-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
}

.search-filters label {
  margin-right: 0.5rem;
  color: #333;
  font-weight: 500;
}

.search-filters select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 14px;
  color: #333;
  transition: border-color 0.2s ease;
}

.search-filters select:focus {
  border-color: #229da4;
  outline: none;
}

/* =========================================================
   SECTION PARTENAIRES — Vue 5 logos + scroll + flèches
   (scopé sur #partners-section pour éviter tout conflit)
   ========================================================= */

#partners-section {
  --partner-size: 150px;     /* largeur/hauteur d’un logo */
  --partner-gap: 40px;       /* écart entre logos */
  --partner-visible: 5;      /* nb de logos visibles en desktop */
  padding: 60px 20px;
  background: transparent;   /* pas de fond par défaut */
}

/* Titre : on ne touche pas à la typo H2 globale, juste l’espacement */
#partners-section h2 {
  margin-bottom: 24px;
}

/* Conteneur flèches + viewport */
#partners-section .partners-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fenêtre : limite à 5 logos + 4 gaps (desktop) */
#partners-section .partners-viewport {
  overflow: hidden;
  max-width: calc(
    var(--partner-visible) * var(--partner-size)
    + (var(--partner-visible) - 1) * var(--partner-gap)
  );
  width: 100%;
  margin: 0 auto;
}

/* Bande défilante : enfants = items de largeur fixe */
#partners-section .partners-logos {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--partner-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge */
  padding: 10px;
}
#partners-section .partners-logos::-webkit-scrollbar { display: none; }

/* Chaque enfant direct du widget est traité comme un logo */
#partners-section .partners-logos > * {
  flex: 0 0 var(--partner-size);
}

/* Images */
#partners-section .partners-logos img {
  width: var(--partner-size);
  height: var(--partner-size);
  object-fit: contain;
  display: block;
  transition: transform .3s ease, opacity .3s ease, filter .3s ease;
}
#partners-section .partners-logos img:hover {
  transform: scale(1.05);
  filter: grayscale(100%);
  opacity: .85;
}

/* Flèches */
#partners-section .partners-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(34, 157, 164, 0.85); /* #229da4 avec alpha */
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 8px;         /* angle léger */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
  z-index: 2;
}
#partners-section .partners-arrow.left  { left: 10px; }
#partners-section .partners-arrow.right { right: 10px; }
#partners-section .partners-arrow:hover {
  background-color: #1b868c;
  transform: translateY(-50%) scale(1.08);
}
#partners-section .partners-arrow[disabled] {
  opacity: .35;
  cursor: default;
}

/* Icônes (Font Awesome) dans les flèches */
#partners-section .partners-arrow i {
  font-size: 16px;
  line-height: 1;
}

/* Responsive : on réduit la taille et on passe à 3 visibles */
@media (max-width: 768px) {
  #partners-section {
    --partner-size: 120px;
    --partner-gap: 24px;
    --partner-visible: 3;
  }
  #partners-section .partners-arrow {
    width: 34px;
    height: 34px;
  }
  #partners-section .partners-arrow i {
    font-size: 14px;
  }
}

/* Optionnel : si tu veux un léger fond bandeau
#partners-section {
  background: #f8f8f8;
}
*/

/* === DARK MODE — Lisibilité du contenu dans les containers clairs === */
/* Ne change PAS les fonds. On force uniquement la couleur du texte. */

body.dark-theme .site-main .container,
body.dark-theme .entry-content,
body.dark-theme .page .site-main .container,
body.dark-theme .single .site-main .container {
  color: #222222 !important; /* texte lisible sur fonds clairs */
}

/* Titres dans le contenu */
body.dark-theme .site-main .container h1,
body.dark-theme .site-main .container h2,
body.dark-theme .site-main .container h3,
body.dark-theme .site-main .container h4,
body.dark-theme .site-main .container h5,
body.dark-theme .site-main .container h6,
body.dark-theme .entry-content h1,
body.dark-theme .entry-content h2,
body.dark-theme .entry-content h3,
body.dark-theme .entry-content h4,
body.dark-theme .entry-content h5,
body.dark-theme .entry-content h6 {
  color: #000000 !important;
}

/* Paragraphes, listes, petits textes du contenu */
body.dark-theme .site-main .container p,
body.dark-theme .site-main .container li,
body.dark-theme .site-main .container span,
body.dark-theme .site-main .container td,
body.dark-theme .site-main .container th,
body.dark-theme .entry-content p,
body.dark-theme .entry-content li,
body.dark-theme .entry-content span {
  color: #222222 !important;
}

/* Liens dans le contenu (couleurs Optineris) */
body.dark-theme .site-main .container a,
body.dark-theme .entry-content a {
  color: #229da4 !important;
  text-decoration: none;
}
body.dark-theme .site-main .container a:hover,
body.dark-theme .entry-content a:hover {
  color: #1e8c92 !important;
  text-decoration: underline;
}

/* === DARK MODE — Correction des titres de page === */

/* Bloc de titre principal (haut de page) */
body.dark-theme .entry-header,
body.dark-theme .page-header {
  color: #000000 !important;
}

/* Titre de page ou d’article */
body.dark-theme .entry-header .entry-title,
body.dark-theme .page-header .page-title,
body.dark-theme .entry-title,
body.dark-theme .page-title {
  color: #000000 !important;
}

/* Petits sous-titres ou métadonnées (ex: date, auteur) */
body.dark-theme .entry-meta,
body.dark-theme .page-meta {
  color: #333333 !important;
}

/* Liens dans les titres ou métas */
body.dark-theme .entry-title a,
body.dark-theme .page-title a {
  color: #000000 !important;
  text-decoration: none;
}
body.dark-theme .entry-title a:hover,
body.dark-theme .page-title a:hover {
  color: #1e8c92 !important;
  text-decoration: underline;
}


/* ==== DARK THEME — Home > #event-section (cartes offres) ==== */
.dark-theme #event-section { 
  background: transparent;
  color: #e6e8eb;
}

.dark-theme #event-section .main-heading { 
  color: #ffffff;
}

.dark-theme #event-section .event-btn {
  background: #229da4;
  color: #fff;
  border: 0px solid #229da4;
}
.dark-theme #event-section .event-btn:hover { 
  background: #2a79ff;
}

/* Cartes */
.dark-theme #event-section .offre-item {
  background: #0f1116;
  border: 1px solid #1b2230;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.dark-theme #event-section .offre-content { 
  padding: 18px;
}

/* Titre carte */
.dark-theme #event-section .offre-title,
.dark-theme #event-section .offre-title a { 
  color: #ffffff;
}
.dark-theme #event-section .offre-title a:hover { 
  color: #9fd8cb;
}

/* Métadonnées (ville / contrat / salaire) */
.dark-theme #event-section .offre-meta { 
  color: #cdd3db;
}
.dark-theme #event-section .offre-meta .offre-ville,
.dark-theme #event-section .offre-meta .offre-contrat,
.dark-theme #event-section .offre-meta .salaire {
  background: rgba(255,255,255,0.06);
  border: 0px solid rgba(255,255,255,0.12);
  color: #e6e8eb;
}

/* CTA “Voir l’offre” */
.dark-theme #event-section .offre-cta {
  display: inline-block;
  background: #229da4;
  color: #fff;
  border: 0px solid #0a6ed1;
  padding: 10px 14px;
  border-radius: 6px;
}
.dark-theme #event-section .offre-cta:hover {
  background: #3690ff;
}

/* État vide */
.dark-theme #event-section .no-offres { 
  color: #cdd3db;
}

/* Accessibilité focus */
.dark-theme #event-section a:focus,
.dark-theme #event-section .offre-cta:focus,
.dark-theme #event-section .event-btn:focus {
  outline: 2px solid #9fd8cb;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Si le thème applique .article-box / .event-box sur ces cartes */
.dark-theme #event-section .article-box,
.dark-theme #event-section .event-box {
  background: #0f1116;
  border: 1px solid #1b2230;
}





/* === MOBILE NAV — Accordéon multi-niveaux + chevrons FA visibles === */
@media (max-width: 1000px) {
  /* Contexte & lisibilité mobile */
  #site-navigation {
    position: relative;
    z-index: 999;
  }

  /* Liens de 1er niveau (taille/espacement) */
  #site-navigation .menu > li > a {
    display: block;
    position: relative;
    font-size: 14px !important;
    line-height: 1.3 !important;
    padding: 12px 40px 12px 16px; /* réserve pour chevron à droite */
    font-weight: 600;
    color: #ffffff;               /* lisible sur fond sombre du mobile menu */
    text-transform: none !important; /* casse normale sur mobile */
    min-height: 42px;             /* touch target confortable */
  }

  /* Sous-menus cachés par défaut (animables) */
  #site-navigation li.menu-item-has-children { position: relative; }
  #site-navigation li.menu-item-has-children > ul.sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .2s ease, visibility .2s ease;
  }

  /* État ouvert */
  #site-navigation li.menu-item-has-children.open > ul.sub-menu {
    max-height: 800px; /* valeur haute pour laisser dérouler */
    opacity: 1;
    visibility: visible;
  }

  /* Liens des sous-menus (2e niveau +) */
  #site-navigation ul.sub-menu li > a {
    display: block;
    font-size: 13px !important;
    line-height: 1.35 !important;
    padding: 10px 20px 10px 28px; /* indentation */
    font-weight: 500;
    color: #ffffff;
    text-transform: none !important;
    min-height: 42px;
  }

  /* Indentation visuelle & séparation des niveaux */
  #site-navigation ul.sub-menu {
    margin-left: 10px;
    border-left: 0px solid rgba(255,255,255,0.2);
  }
  #site-navigation ul.sub-menu ul.sub-menu li > a {
    padding-left: 38px; /* sous-sous-menu */
    font-size: 13.5px;
  }

  /* Séparateurs légers entre items */
  #site-navigation li {
    border-bottom: 0px solid rgba(255,255,255,0.15);
  }

  /* Interaction au survol/focus */
  #site-navigation a:hover,
  #site-navigation a:focus {
    background-color: rgba(255,255,255,0.08);
    color: #9fd8cb;
  }

  /* Bouton chevron injecté via JS (tap target séparée) */
  #site-navigation .submenu-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* au-dessus du lien */
  }

  /* Icône Font Awesome (FA5/FA6 OK) */
  #site-navigation .submenu-toggle i {
    font-size: 12px;   /* discret */
    line-height: 1;
    transition: transform .25s ease;
    opacity: .85;
    pointer-events: none; /* clic = bouton, pas l'icône */
  }
  #site-navigation li.menu-item-has-children.open > .submenu-toggle i {
    transform: rotate(90deg); /* chevron tourne à l'ouverture */
  }

  /* Réserve côté droit du lien parent pour éviter chevauchement du chevron */
  #site-navigation li.menu-item-has-children > a {
    padding-right: 44px;
  }

  /* Désactive les MAJ sur mobile (prend le dessus sur les règles globales) */
  #site-navigation a,
  #site-navigation a * {
    text-transform: none !important;
  }

  /* Si d'autres sélecteurs globaux forcent les MAJ, on neutralise aussi ici */
  .sidenav #site-navigation a,
  .sidenav #site-navigation a *,
  .navbar a,
  .navbar-nav .nav-link {
    text-transform: none !important;
  }
}

/* Desktop : on masque le bouton (menu normal) */
@media (min-width: 1001px) {
  #site-navigation .submenu-toggle { display: none !important; }
}

/* === FIX visibilité sous-sous-menus (mobile) === */
@media (max-width: 1000px) {
  /* Laisse respirer les sous-menus ouverts (plus de coupe) */
  #site-navigation li.menu-item-has-children.open > ul.sub-menu {
    overflow: visible;
    max-height: none;   /* pas de limite -> tout le N3 est visible */
    opacity: 1;
    visibility: visible;
  }

  /* Pour les sous-menus imbriqués, même logique */
  #site-navigation ul.sub-menu li.menu-item-has-children.open > ul.sub-menu {
    overflow: visible;
    max-height: none;
    opacity: 1;
    visibility: visible;
  }
}

/* === FIX chevauchement chevrons / libellés (mobile) === */
@media (max-width: 1000px) {
  /* Chaque parent possède un contexte de positionnement propre */
  #site-navigation li.menu-item-has-children { position: relative; }

  /* Réserve clairement la place du chevron à droite (N1) */
  #site-navigation li.menu-item-has-children > a {
    display: block;
    position: relative;
    z-index: 1;
    padding-right: 56px !important; /* ← + d'espace pour le bouton */
    line-height: 1.3 !important;
    min-height: 44px;               /* touche confortable */
    white-space: normal;            /* autorise le retour à la ligne si besoin */
    word-break: break-word;
  }

  /* Même réserve pour les items enfants avec sous-menu (N2/N3 qui ont des enfants) */
  #site-navigation ul.sub-menu li.menu-item-has-children > a {
    padding-right: 48px !important;
    min-height: 42px;
  }

  /* Bouton chevron : au-dessus, mais sans mordre sur le texte */
  #site-navigation .submenu-toggle {
    position: absolute;
    right: 12px;            /* un peu plus d'air */
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;             /* au-dessus du lien, mais dans le <li> */
  }
  #site-navigation .submenu-toggle i {
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
  }

  /* Sous-menus visibles quand .open (évite les coupes) */
  #site-navigation li.menu-item-has-children.open > ul.sub-menu,
  #site-navigation ul.sub-menu li.menu-item-has-children.open > ul.sub-menu {
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
  }

  /* Un peu d’air visuel entre les items */
  #site-navigation li {
    border-bottom: 0px solid rgba(255,255,255,0.12);
  }
}

/* === MOBILE NAV — Accordéon multi-niveaux + chevrons FA visibles === */
@media (max-width: 1000px) {

  /* Conteneur mobile */
  #site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block !important;
  }

  #site-navigation li {
    position: relative;
    display: block;
    overflow: visible;
  }

  /* Sous-menus cachés par défaut */
  #site-navigation ul.sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    position: static !important;
    transition: all 0.3s ease;
    padding-left: 15px;
    border-left: 0px solid rgba(255, 255, 255, 0.15);
  }

  /* Sous-menus ouverts */
  #site-navigation li.open > ul.sub-menu {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  /* Liens */
  #site-navigation a {
    display: block;
    padding: 10px 14px;
    font-size: 14px !important;
    text-transform: none !important;
    color: #fff;
  }

  #site-navigation ul.sub-menu a {
    font-size: 13px !important;
    padding: 10px 14px 10px 25px;
  }

  /* Chevron bouton */
  #site-navigation .submenu-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  #site-navigation .submenu-toggle i {
    font-size: 13px;
    color: #fff;
    transition: transform 0.25s ease;
    pointer-events: none;
  }

  #site-navigation li.open > .submenu-toggle i {
    transform: rotate(90deg);
  }

}

/* Desktop : on cache le bouton */
@media (min-width: 1001px) {
  #site-navigation .submenu-toggle {
    display: none !important;
  }
}

/* === Fix bouton close du menu mobile (clic + superposition) === */
@media (max-width: 1000px) {
  .sidenav {
    position: fixed;           /* assure la superposition globale */
    z-index: 99999999;         /* au-dessus du contenu */
  }

  .sidenav .closebtn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    z-index: 100000000;
    cursor: pointer;
    display: inline-block;
    pointer-events: auto;
  }

  .sidenav::before,
  .sidenav::after {
    pointer-events: none;
  }
}

.sidenav .closebtn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;               /* zone de clic confortable */
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 6px;
  background: transparent;   /* pas de fond intrusif */
  color: #ffffff;            /* icône visible */
  z-index: 100000000;        /* AU-DESSUS de tout dans la sidenav */
  cursor: pointer;
  display: inline-block;
  pointer-events: auto;      /* force le clic si un style parent le bloque */
}

.sidenav .closebtn i {
  pointer-events: none;      /* laisse l'ancre recevoir le clic */
}

/* En cas d’overlay involontaire : neutralise tout masque cliquable */
.sidenav::before,
.sidenav::after {
  pointer-events: none;
}

/* === NAV MOBILE : chevrons alignés + sous-menus qui poussent (version FLEX) === */
@media (max-width: 1000px) {
  /* Le <li> parent devient un conteneur flex qui WRAP :
     - Ligne 1 : [Lien (flex:1)] [Chevron (34px)]
     - Ligne 2 : [Sous-menu (100%)] */
  #site-navigation li.menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    position: relative;
  }

  /* Lien parent : occupe tout l’espace dispo à gauche */
  #site-navigation li.menu-item-has-children > a {
    flex: 1 1 auto !important;
    order: 0;
    padding-right: 10px !important;   /* pas besoin d’énorme padding */
    white-space: normal;
    word-break: break-word;
  }

  /* Bouton chevron : à droite, taille fixe, dans le flux (plus d'absolu) */
  #site-navigation li.menu-item-has-children > .submenu-toggle {
    flex: 0 0 34px !important;
    order: 1;
    position: static !important;
    width: 34px;
    height: 34px;
    margin: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1;
  }
  #site-navigation li.menu-item-has-children > .submenu-toggle i {
    font-size: 14px;
    line-height: 0;
    transition: transform .25s ease;
    opacity: .9;
    pointer-events: none;
  }
  #site-navigation li.menu-item-has-children.open > .submenu-toggle i {
    transform: rotate(90deg);
  }

  /* Sous-menu : prend 100% en 2e ligne, animé sans chevauchement */
  #site-navigation li.menu-item-has-children > ul.sub-menu {
    flex: 1 1 100% !important;
    order: 2;
    position: static !important;
    margin: 6px 0 8px 0;
    padding-left: 12px;
    border-left: 0px solid rgba(255,255,255,0.2);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s ease;
    will-change: max-height;
  }
  #site-navigation li.menu-item-has-children.open > ul.sub-menu {
    max-height: 1200px;   /* assez grand pour accueillir les N3 */
    opacity: 1;
    visibility: visible;
    overflow: visible;
  }

  /* Lisibilité des niveaux */
  #site-navigation .menu > li > a {
    min-height: 42px;
    font-size: 14px !important;
    line-height: 1.3 !important;
    padding: 12px 14px !important;
    font-weight: 600;
  }
  #site-navigation ul.sub-menu li > a {
    min-height: 42px;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    padding: 10px 12px !important;
    font-weight: 500;
  }
}

/* Desktop : bouton chevron masqué (menu normal) */
@media (min-width: 1001px) {
  #site-navigation .submenu-toggle { display: none !important; }
}

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