/*
Theme Name: WPCNRS
Theme URI: https://td-plugins.com
Author: Thomas Dufranne
Author URI: https://td-plugins.com
Description: Thème WordPress de base supportant Gutenberg et les templates classiques
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpcnrs
Tags: block-patterns, custom-menu, editor-style, full-site-editing, template-editing
*/

:root {
  --wp--preset--font-size--small: 14px;
  --wp--preset--font-size--medium: 16px;
  --wp--preset--font-size--large: 20px;
  --wp--preset--font-size--x-large: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding: 20px 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.content-area {
  width: 100%;
}



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

.site-header {
  background: #23282d;
  color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.site-branding {
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 24px;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}

.site-title a:hover {
  color: #00a0d2;
}

.site-description {
  margin: 5px 0 0;
  font-size: 14px;
  color: #ccc;
}

.custom-logo-link {
  display: inline-block;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.main-navigation a {
  color: #fff;
  padding: 5px 10px;
  display: block;
}

.main-navigation a:hover {
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

.article-wrapper {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.entry-header {
  margin-bottom: 20px;
}

.entry-title {
  margin: 0 0 10px;
  font-size: 26px;
}

.entry-title a {
  color: #23282d;
}

.entry-title a:hover {
  color: #0073aa;
}

.entry-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.entry-meta span {
  margin-right: 15px;
}

.entry-content {
  margin-bottom: 20px;
}

.entry-footer {
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #666;
}

.post-thumbnail {
  margin-bottom: 20px;
}

.post-thumbnail img {
  width: 100%;
  border-radius: 5px;
}

.posts-navigation,
.post-navigation {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.widget-area {
  margin-top: 30px;
}

.widget {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.widget-title {
  margin: 0 0 15px;
  font-size: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0073aa;
}

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

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.widget li:last-child {
  border-bottom: none;
}

.site-footer {
  background: #23282d;
  color: #fff;
  padding: 30px 0 20px;
  margin-top: auto;
}

.footer-widgets {
  margin-bottom: 20px;
}

.site-footer .widget {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.site-footer .widget-title {
  color: #fff;
  border-bottom-color: #0073aa;
}

.site-footer a {
  color: #00a0d2;
}

.footer-navigation ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer-navigation a {
  color: #ccc;
  padding: 5px 10px;
}

.site-info {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: #ccc;
}

.site-info p {
  margin: 0;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

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

.alignwide,
.alignfull {
  max-width: 100%;
}

@media (min-width: 1000px) {
  .site-main {
    padding: 40px 0;
  }

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-branding {
    text-align: left;
  }

  .site-title {
    font-size: 32px;
  }

  .main-navigation ul {
    justify-content: flex-end;
  }

  .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }

  .content-area {
    min-width: 0;
  }

  .widget-area {
    margin-top: 0;
  }

  .article-wrapper {
    padding: 30px;
  }



  .entry-title {
    font-size: 36px;
  }

  .footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}
/* CUSTOM */

@media (min-width: 1000px) {
.header__nav .wp-block-navigation-item{
  width: 48%;
}
}

/* FONTS */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

.barlow-thin {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.barlow-extralight {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.barlow-light {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.barlow-regular {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.barlow-medium {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.barlow-semibold {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.barlow-bold {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.barlow-extrabold {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.barlow-black {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.barlow-thin-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.barlow-extralight-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.barlow-light-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.barlow-regular-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.barlow-medium-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.barlow-semibold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.barlow-bold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.barlow-extrabold-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.barlow-black-italic {
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  font-style: italic;
}

body{ font-family: "Barlow", sans-serif; }


.dernieres_rencontres .wp-block-post.type-rencontre:nth-of-type(1) .wp-block-group.icon_calendrier{
  background-color: #FFE3C2!important;
}
.dernieres_rencontres .wp-block-post.type-rencontre:nth-of-type(2) .wp-block-group.icon_calendrier{
  background-color: #DEEFDD!important;
}
.dernieres_rencontres .wp-block-post.type-rencontre:nth-of-type(3) .wp-block-group.icon_calendrier{
  background-color: #FFC9BD!important;
}

.wp-block-post.type-rencontre .wp-block-group.icon_calendrier {
  background-repeat: no-repeat;
  background-position: 10% 10%;
}

/*
.wp-block-post.type-rencontre:nth-of-type(1) .wp-block-group.icon_calendrier {
  background-image: url('images/icon_calendrier.png') !important;
}
.wp-block-post.type-rencontre:nth-of-type(2) .wp-block-group.icon_calendrier {
  background-image: url('images/icon_calendrier_2.png') !important;
}
.wp-block-post.type-rencontre:nth-of-type(3) .wp-block-group.icon_calendrier {
  background-image: url('images/icon_calendrier_3.png') !important;
}
*/
.wp-block-post.type-rencontre .wp-block-group.icon_calendrier {
  background-image: url('images/icon_calendrier_gris.png') !important;
}

/*
  .wp-block-cover__background{
    background-image: url('images/bg_1.png') !important;
    background-repeat: no-repeat;
  }
*/
.dernieres_rencontres .wp-block-post.type-rencontre:nth-of-type(1) a.bouton.wp-block-read-more{ 
  border-color: #FD49AC!important 
}

.wp-block-post.type-rencontre:nth-of-type(2) a.bouton.wp-block-read-more,
.wp-block-post.type-rencontre:nth-of-type(2) .wp-block-group.icon_calendrier .wp-block-button .wp-block-button__link { border-color: #2FE3F4!important }

.wp-block-post.type-rencontre:nth-of-type(3) a.bouton.wp-block-read-more,
.wp-block-post.type-rencontre:nth-of-type(3) .wp-block-group.icon_calendrier .wp-block-button .wp-block-button__link { border-color: #64FF03!important }


/* BANDEAU INFO */
  body.inscriptions-ouvertes #inscriptions_fermees.wp-block-group,
  .wp-block-post.categorie_rencontre-a-venir.categorie_rencontre-inscriptions-ouvertes #inscriptions_fermees.wp-block-group
  {
    display: none;
  } 

  
  body.inscriptions-fermees #inscriptions_ouvertes.wp-block-group,
  .wp-block-post.categorie_rencontre-a-venir.categorie_rencontre-inscriptions-fermees #inscriptions_ouvertes.wp-block-group
  {
    display: none;
  } 

  body.rencontre-a-venir{}
  body.rencontre-passee{}


:root {
  --main-color: #ffc239;
}

/* ONGLETS */

  @media all and (min-width:1000px){
    .wp-block-buttons.onglets{
      border-bottom: 2px var(--main-color) solid;
    }
  }
  .wp-block-buttons.onglets .wp-block-button .wp-block-button__link{
    transform: translateY(2px);
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
    border-color:var(--main-color);
    color: #afafaf;
    border-bottom-color: transparent;
  text-decoration: none;
    border-bottom-color:var(--main-color);
  }

  .wp-block-buttons.onglets .wp-block-button a.wp-block-button__link:hover{
    background-color: #fff;
    background: linear-gradient(to bottom, #fff 80%, transparent);

  }
  .wp-block-buttons.onglets .wp-block-button a.wp-block-button__link:hover,
  .wp-block-buttons.onglets .wp-block-button .wp-block-button__link.current-page{
    
    border-color:var(--main-color);
    color: var(--main-color);
    border-bottom-color: #f0f0f0;
  }


/* Pagination WordPress */
.wp-block-query-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.wp-block-query-pagination .page-numbers.current {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
    cursor: default;
}

.wp-block-query-pagination-next-arrow,
.wp-block-query-pagination-previous-arrow {
    margin-left: 0.25rem;
}

.wp-block-query-pagination-previous-arrow {
    margin-left: 0;
    margin-right: 0.25rem;
}

@media (min-width: 1000px) {
    .wp-block-query-pagination {
        gap: 0.75rem;
    }
    
    .wp-block-query-pagination-numbers {
        gap: 0.75rem;
    }
    
    .wp-block-query-pagination .page-numbers,
    .wp-block-query-pagination-next,
    .wp-block-query-pagination-previous {
        min-width: 2.75rem;
        height: 2.75rem;
        padding: 0.625rem 1rem;
    }
}

a.bouton.wp-block-read-more
{
    background: transparent none;
    border-color: currentColor;
    border-width: 2px;
    border-style: solid;
    color: currentColor;
    padding-top: 0.667em;
    padding-right: 1.33em;
    padding-bottom: 0.667em;
    padding-left: 1.33em;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}

.wp-block-button__link_sciencesconf{
  border-width: 2px;
    border-style: solid;
  background: transparent;
    border-color: #008015;
    border-radius: 2px;
    color: #008015;
    font-style: normal;
    font-weight: 700;
}

.overflow-hidden{
  overflow: hidden;
}


header .wp-block-navigation-item.current-menu-item a{ color:#fff !important }

.wp-block-button_sciencesconf{
  text-align: center;
}

a.wp-block-query-pagination-previous,
a.wp-block-query-pagination-next{
  font-size: 15px;
}


.wp-block-button__link.external-link::after {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23008015" viewBox="0 0 24 24"><path d="M14 3h7v7h-2V6.41l-9.29 9.3-1.42-1.42L17.59 5H14V3z"/><path d="M5 5h5V3H3v7h2V5z"/><path d="M19 19H5V9H3v12h16v-2z"/></svg>');
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-left: 0.3em;
  opacity: 0.7;
  position: relative;
  bottom: 0.2em;
}


    .td-lab-slide img {
max-height:100px;
}