/*
Theme Name: CNP
Theme URI: http: //example.com/
Description: Thème enfant CNP 
Author: Max
Author URI: http: //example.com/about/
Template: CNP
Version: 1.0
*/

/* ============
Import variable 
=============*/
@import "var.css";

.container {
  max-width: 1660px;
}

/* ===============
    PRIMARY
   =============== */

body {
  font-family: var(--font-default);
  color: var(--grey);
}

body.blog {
  background-color: var(--lightgrey);
}
a {
  text-decoration: none;
  color: var(--main_secondary);
}

@media screen and (min-width: 990px) {
  body {
    font-size: 16px;
  }
}

.font-cond {
  font-family: var(--font-cond);
}
.font-title {
  font-family: var(--font-title);
}

.m-auto {
  margin: auto;
}

.main-tetiere {
  color: var(--main_tetiere);
}

.main-primary-medium {
  color: var(--main_primary_medium);
}
.main-primary {
  color: var(--main_primary);
}
.main-primary-dark {
  color: var(--main_primary_dark);
}

/* ==| Lists |== */

.list-arrow li {
  margin-bottom: 1em;
}
.list-arrow li:before {
  width: 15px;
  height: 15px;
  background-image: url(../images/icons/chevron-right-orange.svg);
  background-position: bottom center;
}

.list-arrow-2 {
  list-style-type: none;
  padding-left: 0px;
}
.list-arrow-2 li {
  margin-bottom: 0.5em;
}
.list-arrow-2 li:before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 10px;
  background-image: url(../images/icons/arrow-right.svg);
  background-size: 10px;
  background-repeat: no-repeat;
  margin-right: 7px;
  margin-top: 4px;
  vertical-align: middle;
  transition: all 0.1s ease-in-out;
}
.list-arrow-2 li {
  display: flex;
  align-items: flex-start;
}
.list-arrow-2 li:hover:before {
  transform: translateX(3px);
}

/* ==| Buttons_like |== */

.btn {
  line-height: 1.5;
  border-radius: var(--radius-small);
}
.btn-primary {
  color: var(--white);
  background-color: var(--main_secondary);
  border-color: var(--main_secondary);
}
.btn-primary:hover {
  color: var(--main_secondary);
  background-color: var(--white);
  border-color: var(--main_secondary);
}

.btn-secondary {
  color: var(--main_primary);
  background-color: var(--main_primary_light);
  border-color: var(--main_primary_light);
}
.btn-secondary:hover {
  color: var(--main_primary_light);
  background-color: var(--main_primary);
  border-color: var(--main_primary);
}

.hero-cta,
.cta-section .btn {
  font-size: 1.1em;
}
.hero-cta a.btn,
.cta-section .btn {
}
.hero-cta a.btn:before,
.cta-section .btn:before {
}
.cta-big {
  background-color: rgb(255 255 255 / 70%);
  padding: 4em 7em;
  border-radius: var(--radius-big);
  max-width: 812px;
  width: auto;
}
.cta-big .cta-subtitle {
  color: var(--main_primary_medium);
  font-weight: bold;
  font-family: var(--font-title);
}
.readmorelink {
  display: inline-block;
  font-size: 0.9em;
  padding: 0.75em 2.22em;
  border-radius: var(--radius-big);
  color: var(--main_primary);
  background-color: var(--main_primary_light);
  border-color: var(--main_primary_light);
}
.readmorelink:hover {
  color: var(--main_primary_light);
  background-color: var(--main_primary);
  border-color: var(--main_primary);
}

.readmorelink:after {
  display: none;
}
.readmorelink:hover:after {
  margin-left: 0;
}

/* ==| Forms |== */

form:not(.tribe-events-c-search)
  input:not([type="submit"]):not([type="button"]):not([type="reset"]),
textarea {
  border: 1px solid var(--darkgrey);
  background-color: var(--main_primary_lighter);
  color: var(--main_primary);
}

form .block-text-and-icon {
  position: relative;
}
form:not(.tribe-events-c-search) .form-name::after {
  content: "";
  display: inline-block;
  background: url(../images/icons/icon-user.svg);
  position: absolute;
  top: 36%;
  right: 16px;
  width: 24px;
  height: 24px;
  background-position: center center;
  background-repeat: no-repeat;
}
form:not(.tribe-events-c-search) .form-email::after {
  content: "";
  display: inline-block;
  position: absolute;
  background: url(../images/icons/icon-email.svg);
  top: 36%;
  right: 16px;
  width: 24px;
  height: 20px;
  background-position: center center;
  background-repeat: no-repeat;
}
form:not(.tribe-events-c-search) .form-objet::after {
  content: "";
  display: inline-block;
  background: url(../images/icons/icon-subject.svg);
  position: absolute;
  top: 36%;
  right: 16px;
  width: 24px;
  height: 20px;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ==| Section |== */

.section-title {
  font-size: 2.25em;
  font-weight: 500;
  color: var(--main_primary);
}

.tetiere {
  color: var(--main_primary);
  font-size: 1.125rem;
}

/* ===============
   HEADER
   =============== */
.mast-head  {
background:#fff;
}
.mast-head .logo {
  max-width: 240px;
  margin: 1em 0;
}
.mast-head .logo img {
}
.mast-head .main-nav ul ul li {
  padding: 0.5em 0;
}

.mast-head .main-nav > ul > li a {
  margin: 0;
}
.mast-head .main-nav > ul > li > a {
  margin: 0 1em;
}
.home .mast-head .main-nav > ul > li > a {
  color: var(--grey);
}
.home .mast-head .main-nav > ul > li.current_page_item > a {
  color: var(--main_primary);
}
.mast-head .main-nav > ul > li.current_page_item > a {
  padding-bottom: 15px;
  border-bottom: 3px solid var(--main_secondary);
}
.mast-head .main-nav ul ul {
  margin-left: -2em;
  top: 100%;
  list-style-type: none;
  padding: 2em 1em;
  display: none;
}
.quick-links .item-title {
  font-size: 1.75em;
  font-weight: 500;
  color: var(--main_primary);
  font-family: var(--font-title);
}
@media screen and (min-width: 768px) {
  .home .quick-links .item {
    margin-bottom: 60px;
  }
  .home .quick-links .item:nth-child(odd) {
    flex-direction: row-reverse;
  }
}

@media screen and (min-width: 992px) {
  .mast-head .main-nav {
    align-items: center;
  }
  .mast-head .main-nav > ul li.menu-item-has-children > a:after {
    display: none;
  }
}

.home .mast-head {
  position: fixed;
  z-index: 3;
  width: 100%;
  background: #fff;
  left: 0;
  padding: 15px;
}

/* ===============
   FOOTER
   =============== */

.mast-foot {
  font-size: 0.9em;
  background: #1f4497;
  color: var(--white);
  line-height: 1.5em;
}
.mast-foot-branding address {
font-size:.9em;
}

.mast-foot-branding img {
  max-width: 200px;
}
.mast-foot li a {
  font-size: 0.875em;
  color: var(--mediumgrey);
  font-family: var(--font-cond);
}
.mast-foot h3 {
  font-size: 1em;
  color: var(--white);
}
.mast-foot .footer-bottom {
  font-size: 0.81em;
}
.mast-foot .bottom-navigation a {
  color: var(--medium_grey);
}
.mast-foot nav ul.menu > li > a {
  font-weight: bold;
  color: var(--white);
  opacity: 1;
  font-size: 1em;
}

@media screen and (min-width: 992px) {
  .mast-foot-columns > .mast-foot-branding {
    flex: 2;
  }
}

/* ===============
    GLOBAL
   =============== */

.page-content h2 {
  color: var(--red);
  font-family: var(--font-title);
  font-size: 1.3em;
}

.page-subtitle {
  color: var(--main_primary);
}

section.content-list {
  padding: 2em 1em;
}
.page-content a {
  color: var(--main_secondary);
}

.next-page {
  margin-top: 3em;
}
.content-link {
  padding: 1em;
}

/* ==============
   COMPONENTS
   =============== */

/* ==| Hero |== */

.hero:after {
  content: "";
  display: none;
  width: 45vw;
  max-width: 1000px;
  height: 100%;
  position: absolute;
  border-bottom-left-radius: 250px;
  top: 0;
  background-repeat: no-repeat;
  background-position: top left;

  right: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  position: relative;
  background-color: #fff;
  padding-top: 100px;
}
.hero.overlay:before {
  content: "";
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  opacity: 0.7;
  color: var(--grey);
  font-size: 1.2em;
}
.hero-jumbo .hero-title {
  font-size: 1.8em;
  font-weight: 500;
  margin: 0.44em 0;
  color: var(--main_primary);
  font-family: var(--font-title);
}
.hero-jumbo .hero-text {
  margin: 1em 1em 1.2em 0;
}
.hero-image {
  width: 80%;
}

.hero.overlay .hero-title,
.hero.overlay .hero-text {
  color: #fff;
}
.hero:after {
  content: "";
  display: block;
  width: 100vw;
  max-width: 800px;
  height: calc(100vh - 180px);
  position: absolute;
  border-bottom-left-radius: 250px;
  top: 0;
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size:cover;
  margin-top:100px;
  right: 0;
}
.hero-content {
  background-color:rgba(255,255,255,0.6);
  padding:2em;
  margin:2em;
}
@media screen and (min-width: 768px) {
  .hero-image img {
    width: 55%;
  }
  .hero:after {
    content: "";
    display: block;
    width: 50vw;
    max-width: 800px;
    height: calc(100vh - 180px);
    position: absolute;
    border-bottom-left-radius: 250px;
    top: 0;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size:cover;
    margin-top:100px;
    right: 0;
  }
}
@media screen and (min-width: 992px) {
  .hero {
    min-height: 50vh;
    padding: 250px 45px 250px;
    background-position: center center;
  }
  .hero-image {
    width: 40%;
  }

  .hero .container > .hero-image {
    flex: 1.25;
  }
}
@media screen and (min-width: 990px) {
  .hero-jumbo .hero-title {
    font-size: 3.5em;
  }
}
@media screen and (min-width: 1600px) {
  .hero-jumbo .hero-title {
    font-size: 4.1em;
    font-weight: bold;
  }
}
/* ==| Block_Image_and_Text |== */

.block-icon-and-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media screen and (min-width: 992px) {
  .block-image-and-text {
    margin: 1em 0;
  }
}

/* Mission Grid */

.mission-grid .item-title {
  font-weight: 700;
  font-size: 1.3em;
  color: var(--main_primary);
}
.mission-grid .item-icon {
  margin-bottom: 1em;
  max-width: 130px;
  max-height: 130px;
}
@media screen and (min-width: 991px) {
  .mission-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==| Evenement |== */

.annonce-block {
  align-items: center;
  padding: 2% 4%;
  border-radius: 15px;
  font-weight: 500;
  height: 100%;
  background-color: var(--white);
}
.annonce-block h2,
.annomnce-block h3 {
  font-weight: 500;
}

@media screen and (min-width: 991px) {
  .annonce-block {
    padding: 0;
  }
  .item-image {
    display: block;
  }
}

/* ==| Breadcrumbs |== */
.breadcrumbs-wrapper {
  background-color: var(--main_secondary);
}
.breadcrumbs {
  padding: 1.5em;
  font-size: 0.8em;
}
.breadcrumbs li {
  color: var(--main_secondary_light);
}
/* ==| Cards |== */

.mission-grid .card-news .news-image {
  object-fit: cover;
  width: 100%;
}
.mission-grid .card-news .news-texte {
  padding: 5%;
}

/* ==| news Cards |== */
.card-news.card-width-picture {
  padding: 0;
  border-radius: 15px;
  background-color: var(--white);
}

.news-slider .card {
  padding: 0;
  border-radius: 15px;
  background-color: var(--white);
}
.news-slider .card.card-links {
  padding: 1.5em 1em;
  border-radius: 7.5px;
  background-color: var(--main_primary_light);
  margin: 1em 0;
}

.news-slider .card.card-links .item-title {
  color: var(--main_primary);
  font-weight: bold;
}
.news-slider .card.card-links .item-title i {
  margin-right: 0.3em;
}

.news-slider .card.card-links a {
  color: var(--main_primary);
}
.news-slider .card-news {
  flex-direction: column;
}
.news-slider .card-news .item-title {
  font-size: 1em;
}
.news-slider .card-news .item-title a {
  color: var(--main_primary_dark);
  font-size: 1em;
}
.news-slider .card-news img {
  border-radius: 7px 7px 0 0;
}
.news-slider .card-news .item-content {
  padding: 1em;
}

.news-slider .item-meta {
  font-size: 0.7em;
}
@media screen and (min-width: 768px) {
  .news-slider .card-news .item-title a {
    font-size: 1.25em;
  }
  .item-complement {
    font-weight: 600;
    font-size: 0.875em;
  }
}

/* Card more links */

.card.card-links,
.card.card-choice {
  padding: 1.5em 1em;
  border-radius: 7.5px;
  background-color: var(--lightgrey);
  margin: 1em 0;
}
/* ==| CTA section|== */

.cta-section {
  background-color: var(--mediumgrey);
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
  padding: 75px 0;
  text-align: center;
}

.cta-image-fixed {
  background-attachment: fixed;
}
.cta-section .cta-title {
  font-weight: bold;
  font-size: 2.25em;
}
.cta-section .cta-text {
  margin: 1.57em 0;
}

@media screen and (min-width: 991px) {
  .cta-section {
    padding: 60px 0;
  }
  .cta-section .container {
    text-align: left;
  }
}

/* ==| section espace |== */

.block_grid {
  column-gap: 2em;
}

.block_grid_card {
  border-radius: 15px;
  margin-bottom: 2em;
  background-color: var(--white);
  gap:15px;
  flex-direction:column;
}

.block_grid_card .item-content {
  padding: 1em;
}

.block_grid_card .item-image {
  height: 100%;
  object-fit:cover;
  max-height:250px;
  border-radius:15px 15px 0 0;
}

.block_grid .block_grid_card .item-content .item-title {
  font-size: 1.75em;
  font-weight: normal;
  color: var(--main_primary);
}

.block_grid .block_grid_card .item-content .item-text {
  margin: 0.68em 0 2em;
}

.item-content-login .orange {
  font-weight: 700;
}

@media screen and (min-width: 991px) {
  .login-block {
    margin-bottom: 0;
  }
  .item-content-login {
    padding: 0 1em 0 0;
  }
  .block_grid_card {
  flex-direction:row;
  }

  .block_grid_card .item-image {
    height: 100%;
    object-fit:cover;
    max-width:250px;
    max-height:none;
    border-radius:15px 0 0 15px;
  }
}

/* ==| Agenda_ticker |== */

.agenda-ticker-wrapper {
  background-color: var(--lightgrey);
}
.agenda-slider {
  padding: 1em;
}

.agenda-slider-item {
  padding: 1em;
  border-radius: 15px;
  background-color: var(--white);
}
.agenda-slider-item > * {
  margin: 0 1em;
}
.agenda-slider-item .item-date > * {
  display: block;
}
.agenda-slider-item-wrapper {
  padding: 1em;
}

.agenda-slider-item .item-title {
  font-weight: 600;
  font-size: 1.25em;
  color: var(--main_primary);
}

.item-date-day {
  font-weight: 300;
  font-size: 3.75em;
}
.item-date-month {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.375em;
  letter-spacing: 3px;
}
.item-date-year {
  font-weight: 500;
  font-size: 1.125em;
  letter-spacing: 4px;
}

.agenda-slider-item .item-info {
  width: min-content;
  text-align: center;
}

/* ==| Layout |== */

.layout .card:not(.card-links):not(.card-choice) {
  padding: 0;
  border-radius: 15px;
  background-color: var(--white);
}

/* ==| Sidebar_Nav |== */

.sidebar-nav > ul > li > a {
  background-color: var(--main_secondary);
  border-radius: 30px;
  padding: 0.5em 1em;
}
.sidebar-nav > ul > li.active ul {
  display: block;
}
.sidebar-nav > ul li {
  background-color: var(--white);
}

.sidebar-nav > ul > li ul li a {
  color: var(--main_primary);
}
.sidebar-nav > ul > li {
  background-color: var(--white);
  padding: 1em;
  box-shadow: 0 0 19px rgba(132, 132, 132, 0.16);
  border-radius: var(--radius-small);
}

/* ==| Sidebar_Picture |== */

.sidebar-picture {
  margin: 0;
}
@media screen and (min-width: 992px) {
  .sidebar-picture {
    margin-top: 60px;

  }  
  .sidebar-picture img{
    border-radius:35px;
  }}
/* ==| Sidebar_Block |== */

.sidebar-block:not(.widget_media_image) {
  padding: 2em;
  box-shadow: 0 0 19px rgba(132, 132, 132, 0.16);
  border-radius: var(--radius-small);
}
.sidebar .block-title {
  color: var(--main_primary);
  text-transform: uppercase;
  font-size: 0.85em;
  font-weight: bold;
}
.sidebar-block .sidebar-content {
  padding: 1em 2em;
}

.card-news.card-width-picture.item img {
  border-radius: var(--radius-small);
}

.sidebar .card-news {
  box-shadow: 0 0 19px rgba(132, 132, 132, 0.16);
  border-radius: var(--radius-small);
}

.sidebar .wp-block-heading {
  font-size: 1em;
  margin: 0;
  color: var(--main_primary);
  font-weight: normal;
}

.sidebar-nav > ul > ul {
  display: none;
}

.post-feed > .block-title {
  font-family: var(--font-title);
  font-size: 1.2em;
  text-transform: none;
  font-weight: 500;
}
@media screen and (min-width: 991px) {
  .sidebar-content {
    padding: 1em;
  }
}
.page-title {
  font-weight: 500;
  color: var(--main_primary);
}

.page-content h2,
.page-content h3 {
  font-weight: normal;
  color: var(--main_primary);
}
* + h2 {
  padding-top: 1em;
}

@media screen and (min-width: 992px) {
  .page-title {
    font-size: 3em;
  }
}

/* ACCORDION */

.sp-easy-accordion .sp-ea-single .ea-header a {
  font-weight: 500;
  font-size: 1em;
}

#missions {
  padding-top: 3em !important;
}

.layout-3-col, .layout-2-col {
   min-height:500px;
}