/*!
Theme Name: Standish
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Standish
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */


:root{
        /* Couleurs */
    --color1: var(--global-palette1);
    --color2: var(--global-palette2);
    --color3: var(--global-palette3);
    --color4: var(--global-palette4);
    --color5: var(--global-palette5);
    --color6: var(--global-palette6);
    --color7: var(--global-palette7);
    --color8: var(--global-palette8);
    --color9: var(--global-palette9);
    --vert: #6D9963;
    --jaune: #F6AB2A;
    --mauve: #6361A1;
}



/****
 * ACF FORMATIONS
 ****/

 .wp-block-kadence-postgrid.formations .entry-title a {
    display: flex !important;
    justify-content: space-between;
    align-items: center !important;
}

.wp-block-kadence-postgrid.formations .entry-title a:after {
    content: "";
        display: inline-block;
        width: 16px;
        height: 16px;
        background-image: url("/wp-content/themes/standish/assets/images/fleche.webp");
        background-size: contain;
        background-repeat: no-repeat;
}

.wp-block-kadence-postgrid .type-formation-formation-manuelle .kadence-post-image{
    background-color: var(--vert);
}

.wp-block-kadence-postgrid .type-formation-formation-en-administration-et-technologies .kadence-post-image {
    background-color: var(--jaune);
}

.wp-block-kadence-postgrid .type-formation-formation-en-equipement-motorise .kadence-post-image {
    background-color: var(--mauve);
}

.wp-block-kadence-postgrid.formations .kadence-post-image-inner-intrisic,
.wp-block-kadence-postgrid.formations .kadence-post-image {
    border-radius:20px;
}

.wp-block-kadence-postgrid.formations .kadence-post-image-inner-intrisic a {
    overflow: hidden;
}

.wp-block-kadence-postgrid.formations .kadence-post-image-inner-intrisic a img {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    transform: rotate(6deg);
}

 body.single-formation #main{
    background: var(--color1);
    color: white;
    margin-bottom: 0;
 }

 body.single-formation .formation.entry-content.single-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    padding:5rem 1.5rem 4rem;
}

body.single-formation .formation.entry-content.single-content .boutons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

body.single-formation button.splide__arrow.splide__arrow--next.slick-next {
    opacity: 1;
    right: -6rem;
}

body.single-formation button.splide__arrow.splide__arrow--prev.slick-prev{
    opacity: 1;
    left: -6rem;
}

body.single-formation .kb-splide .splide__arrow svg {
    display: none;
}

body.single-formation .kb-splide .splide__arrow{
    background: transparent;
}

body.single-formation button.ff-btn.ff-btn-submit {
    background: var(--color2) !important;
    color: var(--global-palette-btn);
    border-radius: 100px;
    padding: 1rem 1.8rem 1rem 1.8rem;
    font-size: 18px;
}

body.single-formation button.ff-btn.ff-btn-submit:hover {
    background: var(--color1) !important;
    opacity: 1;
}

body.single-formation button.splide__arrow.splide__arrow--next.slick-next:after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/wp-content/themes/standish/assets/images/fleche.webp);
    background-size: contain;
    background-repeat: no-repeat;
}

body.single-formation button.splide__arrow.splide__arrow--prev.slick-prev:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url(/wp-content/themes/standish/assets/images/fleche.webp);
    transform: rotate(180deg);
    background-size: contain;
    background-repeat: no-repeat;
}

 body.single-formation .formation.entry-content .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.single-formation .single-content h1{
    margin: 0em 0 .5em;
    color: white;
    text-transform: uppercase;
    line-height: 1.2em;
}

body.single-formation span.taxonomy-type-formation {
    margin-bottom:3rem;
    text-transform: uppercase;
    font-size: 1rem;
}

body.single-formation .tax-items-wrapper {
    display: flex;
    flex-direction: column;
}

body.single-formation span.taxonomy-type-formation .tax-item {
    padding: 0.65rem 1rem;
    border-radius: 6px;
}

body.single-formation span.taxonomy-type-formation .tax-item.term-formation-manuelle {
    background-color:var(--vert);
}

body.single-formation span.taxonomy-type-formation .tax-item.term-formation-en-administration-et-technologies {
    background-color: var(--jaune);
}

body.single-formation span.taxonomy-type-formation .tax-item.term-formation-en-equipement-motorise {
    background-color: var(--mauve);
}

body.single-formation .formation.entry-content.single-content .image{
      aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
}

body.single-formation span.element, 
body.single-formation span.formation-meta {
    padding: 0.5rem 0;
    border-top: solid 1px #ffffff33;
    display: flex;
    align-items: center;
}
button.ff_modal_btn:hover,
button.ff_modal_btn:active {
    background: var(--color6);
}
body.single-formation span.formation-meta.last {
    border-bottom: solid 1px #ffffff33;
    margin-bottom: 1.5rem;
}

body.single-formation .formation.entry-content.single-content a.wp-block-button__link.wp-element-button {
    width: fit-content;
    background: var(--color6);
}

body.single-formation .formation.entry-content.single-content a.wp-block-button__link.wp-element-button:hover {
    background: var(--color2);
}

body.single-formation span.element:before, 
span.villes.element.formation-meta.acf-checkbox-group:before,
body.single-formation span.formation-meta:before{
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 1rem;
}

.wp-block-kadence-postgrid .formation img.wp-post-image,
.wp-block-kadence-postgrid .formation header{
    border-radius:20px !important;
}

body.single-formation span.type:before{
    background-image: url("/wp-content/themes/standish/assets/images/code.webp");
}
body.single-formation span.duree:before {
    background-image: url("/wp-content/themes/standish/assets/images/duree.webp");
}
body.single-formation span.villes:before {
    background-image: url("/wp-content/themes/standish/assets/images/ville.webp");
}
body.single-formation span.modalite:before {
    background-image: url("/wp-content/themes/standish/assets/images/modalitee.webp");
}

@media (max-width:768px){
    body.single-formation .formation.entry-content.single-content{
        display: flex;
        flex-direction: column;
        gap:1rem;
    }
    body.single-formation .formation.entry-content image {
        order:1 !important;
    }
    body.single-formation .formation.entry-content .content {
        order: 2 !important;
    }
    body.single-formation .formation.entry-content.single-content {
        padding: 3rem 1.5rem;
    }
}


/****
 * AJUSMENT BOUTON APRES MAJ 30-06-2025
 ****/
.wp-block-button__link {
    height: auto;
    width: auto;
}


/****
 * HOME
 ****/

body.home .wp-block-media-text.hero .wp-block-media-text__content{
    padding-left: clamp(2.5rem, -36.2504rem + 48.438vw, 21.875rem);
}
body.home .entry-content-wrap {
    padding: 0;
}


/****
 * HEADER
 ****/

#secondary-menu li.office a,
#secondary-menu li.mozaik a {
    display: flex;
    align-items: center;
}
#secondary-menu li.office a:before {
    content: '\e91b';
    font-family: icomoon;
    font-size: 20px;
    margin-right: 8px;
}
#secondary-menu li.mozaik a:before {
    content: '\e91c';
    font-family: icomoon;
    font-size: 20px;
    margin-right: 8px;
}

body.home .wp-block-media-text.hero{
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    min-height: 550px;
}
body.home .wp-block-button.custom-icon {
    width: 100% !important;
    min-height: 175px !important;
}
body.home .wp-block-button.custom-icon a {
    height: 175px !important;
    justify-content: center !important;
    font-size: 1.2em !important;
    border-radius: 0px !important;
}
body.home .wp-block-button.custom-icon a:hover {
    background:var(--global-palette3) !important;
    box-shadow:none !important;
/*    color: var(--global-palette2) !important;*/
}
body.home .wp-block-button.custom-icon a:before {
    font-size: 2em !important;
}

@media only screen and (max-width:767px){
    body.home p.tag-secondaire{
        margin-top: 25px !important;
    }
    body.home .wp-block-media-text.hero .wp-block-buttons{
        margin-bottom: 25px !important;
    }
    body.home .wp-block-button.custom-icon {
        min-height: 75px !important;
    }
    body.home .wp-block-button.custom-icon a {
        height: 75px !important;
    }
    body.home .wp-block-button.custom-icon a {
        font-size: 1.2em !important;
        display: block !important;
        border-bottom: 1px solid !important;
        text-align: left !important;
    }
    body.home .wp-block-button.custom-icon a:before {
        font-size: 1.4em !important;
    }
    body.home .wp-block-columns.ext-buttons{
        gap:0 !important;
    }
    .css-article-blogue {
        padding: 0 1.5rem !important;
    }
    .site-footer-row-container-inner .site-footer-row.site-footer-row-mobile-column-layout-row {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}


/*body.home .single-content .wp-block-columns {
    max-width: var(--global-calc-content-width);
    margin: auto;
}*/

.wp-block-kadence-column.clickable-column {
    cursor: pointer;
}
/* Buttons */
span.kt-btn-inner-text {
    text-align: left;
}
.wp-block-kadence-advancedbtn.contact a.adresse {
    align-items: start;
}
.wp-block-kadence-advancedbtn.contact a.adresse > .kb-svg-icon-wrap{
    margin-top: 3px;
}



/****
 * MODULE STANDISH ICONS IN BOUTONS
 ****/

.wp-block-button.custom-icon a:before {
    font-size: 1em !important;
}


/****
 * MODULE D'ARTICLES DU CSSDS VERS LES SITES-ÉCOLES
 ****/

.css-articles-blogue .css-articles-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.css-articles-blogue .css-articles-header h3 span{
    font-size: 20px !important;
    display: block !important;
}
.css-articles-blogue .css-articles-header h3{
    font-size: 24px;
    display: block !important;
    margin:0 !important;
}
.css-articles-blogue-post{
    background-color: white;
}
.css-articles-blogue-post .css-image{
    padding-bottom: 66.67%;
    height: 0;
    position: relative;
}
.css-articles-blogue-post .css-image > a > img{
    position: absolute;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    padding-bottom: 20px;
}
.css-articles-blogue-post .titre{
    padding:0 20px;
}
.css-articles-blogue-post a.css-title{
    font-size: 21px;
    text-decoration: none;
    line-height: 1.1em;
    margin-bottom: 7px;
}
.css-articles-blogue-post .css-date{
    font-size: 14px;
    padding:0 20px;
    line-height: 1em;
    margin-top: 12px;
    margin-bottom: 16px;
}
.css-articles-blogue-post .css-content{
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Display 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding:0 20px;
}
.css-articles-blogue-post a.css-link{
  margin:0 20px 20px 20px;
}
.css-articles-blogue-posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

@media only screen and (max-width:768px){
    .css-articles-blogue-posts {
        grid-template-columns: 1fr!important;
        gap: 0px !important;
    }
    .css-articles-blogue .css-articles-header {
        display: block !important;
    }
    .css-articles-blogue .css-articles-header h3 {
        margin: 0 0 15px !important;
    }
}

.standish_alert.standish_alert_normal a {
    background-color: #272a44 !important;
}

/****
  Post
****/

.nouvelles-ecole ul.wp-block-latest-posts{
    max-width: var(--global-calc-content-width);
    margin-left: auto;
    margin-right: auto;
}
.wp-block-latest-posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.wp-block-latest-posts__list li {
    margin-top: 0;
    background: var(--global-palette9);
}
.wp-block-latest-posts__featured-image {
    display: block;
    height: 0;
    padding-bottom: 66.67%;
    overflow: hidden;
    position: relative;
}
.wp-block-latest-posts__featured-image img {
    flex: 1;
    -o-object-fit: cover;
    object-fit: cover;
    height: 266px;
    min-width: 394px;
    width: 100%;
    max-width: 100%;
    padding-bottom: 20px;
}
a.wp-block-latest-posts__post-title {
    font-size: 21px;
    text-decoration: none;
    line-height: 1.1em;
    margin-bottom: 7px;
    text-decoration: none;
    padding: 0 20px;
    display: flex;
}
time.wp-block-latest-posts__post-date {
    font-size: 14px;
    padding: 0 20px;
    line-height: 1em;
    margin-top: 12px;
    margin-bottom: 16px;
    color: var(--global-palette2);
}
.wp-block-latest-posts__post-excerpt {
    margin-bottom: 1em;
    margin-top: .5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 20px;
}


/****
  TABLES
****/

    .wp-block-table thead {
        border-bottom: 0px !important;
        background: var(--global-palette1);
        color: white;
    }
    .wp-block-table th{
        padding: 1.5em !important;
        border: 0px !important;
        border-bottom: 1px solid var(--global-palette1) !important;
        text-align: left;
        font-weight: 600;
    }
    .wp-block-table td{
        padding: 1.5em !important;
        border: 0px !important;
        border-bottom: 0px solid var(--global-palette1) !important;
    }

@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px)  {

    .wp-block-table table {
      width: 100%;
      border-collapse: collapse;
    }
    .wp-block-table table th {
      background: #333;
      color: white;
      font-weight: bold;
    }
    .wp-block-table table td, .wp-block-table table th {
      padding: 1em !important;
      text-align: left;
      min-height: 40px;
    }
    /* Force table to not be like tables anymore */
    .wp-block-table table, .wp-block-table table thead, .wp-block-table table tbody, .wp-block-table table th, .wp-block-table table td, .wp-block-table table tr {
        display: block;
    }
    /* Hide table headers (but not display: none;, for accessibility) */
    .wp-block-table table thead {
        display: none;
    }
    .wp-block-table table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .wp-block-table table tr { 
        border: 1px solid var(--global-palette2); 
        border-bottom: 0px;
    }
    .wp-block-table table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid var(--global-palette2) !important;
        position: relative;
        padding-left: 50% !important;
        display: block;
        align-items: center;
    }
    .wp-block-table table td:before {
        /* Now like a table header */
        position: absolute;
        /* Top/left values mimic padding */
        top: 1em;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        color: white;
    }
    
    /*
    CSS alternatif
    */
    /*
    .wp-block-table table tr:nth-of-type(odd) {
      background: #eee;
    }
    */

    .wp-block-table table tbody tr {
        position: relative;
        margin-bottom: 20px;
    }
    .wp-block-table table tbody tr td {
        padding: 0;
        margin: 0;
    }
    .wp-block-table table tbody tr:before {
        background-color: var(--global-palette1);
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        width: 47%;
        padding-right: 10px;
        white-space: nowrap;
        height: 100%;
    }
}


/****
  FLUENT FORM 
****/

input[type="radio"]{
    accent-color: var(--global-palette1) !important;
}



/****
FOOTER
****/

.site-middle-footer-inner-wrap{
    align-items: start;
}
.site-bottom-footer-inner-wrap {
    align-items: center;
}
.site-footer-row-container-inner .site-container {
    padding: 0px;
}
.standish-logo{
  margin-top: -7px;
}
.standish-logo img{
  width: 100px;
}
@media only screen and (max-width: 768px){
    .site-bottom-footer-inner-wrap .footer-widget-area-inner{
        justify-content: center;
    }
}

/****
ICONS SETTINGS 
****/

/* Icons dans un bouton plus grand que le texte */
a.kt-button.taclass{
	display: flex;
    align-items: center;
}
a.kt-button.taclass svg {
    font-size: 21px;
    width: 25px;
    height: auto;
}

.newsletter-form .kb-form .kadence-blocks-form-field{
  margin-bottom: 0px;
}


/****
    STANDISH MASTER CLASS
****/

.trunc p{
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Display 5 lines by default */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .trunc p {
    -webkit-line-clamp: 2; /* Display 2 lines on screens narrower than 767px */
  }
}


/* CARDS */

body.page-template-page-parents-php #primary {
    display: none;
}

/*.entry-content.single-content {
    max-width: var(--global-content-width) !important;
    margin: 0 auto !important;
    padding: 0 var(--global-content-edge-padding) !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}*/
.container.cards{
    padding: 3rem;
    background: white;
}
div.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  padding-top: 20px;
  padding-bottom: 20px;
}

div.cards > div.card {
  width: calc(33% - 25px);
  margin: 8px;
  cursor: pointer;
}

@media screen and (max-width: 800px) { div.cards > div.card { width: calc(33% - 16px); } }
@media screen and (max-width: 600px) { div.cards > div.card { width: calc(50% - 16px); } }
@media screen and (max-width: 420px) { div.cards > div.card { width: calc(100% - 16px); } }

div.cards > div.card > div.card-container {
  display: flex;
  flex-direction: column;
  height: 300px;
  box-shadow: 12px 15px 20px 0 rgba(46,61,73,.15) !important;
  transition: box-shadow 0.5s;
  /* box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12); */
}
div.cards > div.card > div.card-container:hover {
box-shadow: 0 1px 3px rgba(0,0,0,.08)!important;
    transition: box-shadow 0.5s;
}

div.cards > div.card > div.card-container > div.images {
  flex-grow: 1;
  position: relative;
  background-size: cover;
  background-image: url(/wp-content/themes/standish/assets/images/sous-page.jpg);
}

div.cards > div.card > div.card-container > div.images:before {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    opacity: 0.6;
    filter: alpha(opacity=60);
}

div.cards > div.card > div.card-container > div.content {
  min-height: 94px;
}

div.cards > div.card > div.card-container > div.content > h3 {
  margin: 15px;
  font-size: 24px;
  font-weight: normal
}