/*
Theme Name: Divi Child
Description: Thème enfant de Divi
Author: Nicolas REYNAUD
Author URI: https://reynaudinformatique.fr
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --couleur-fond : #313131; /* gris */
    --couleur-secondaire : #00afc2; /* bleu */
    --couleur-secondaire-rgba : rgba(0, 175, 194, 0.65);
}

h1, h2, h3, h4, h5, h6 { 
    padding : 0px;
    font-family: 'Neutraface Condenses Bold',Helvetica,Arial,Lucida,sans-serif;
}

.home h1 {
    text-transform: uppercase;
    color: white;
}

h2 {
    text-transform : uppercase;
}

h3 {
    text-transform : uppercase;
    color: black !important;
}

.c2, .c2 h2 {
    color : var(--couleur-secondaire) !important;
    font-size: 23px !important;
}

.c3, .c3 h3 {
    font-size: 32px !important;
}

.c3alt {
    background-color: var(--couleur-secondaire);
    padding: 15px 0;
    margin: 20px 0 !important;
}

.c3alt h3, .c3alt p {
    text-align: left;
    padding: 0 20px;
    color: white !important;
}

.c3alt.surimage {
    background-color: var(--couleur-secondaire-rgba);
    font-size: 2.5em;
    line-height: 1.1;
}

.fondfoncee {
    background-color: var(--couleur-fond) !important;
}

.fondfoncee p {
    color: white;
}

.fondtache::before { /* a positionner sur la colonne  */
    content: '';
    position: absolute;
    top: 20px;
    left: -80px;
    right: -80px;
    height: 115%;
    background-image: url("https://la-placette.org/wp-content/uploads/2025/06/img-tache.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    z-index: -1;
}

@media (max-width:980px) {
    .fondtache::before {
        display: none;
    }
}

.citation p {
    font-family: 'Neutraface Condensed Light',Helvetica,Arial,Lucida,sans-serif;
    font-size: 45px;
    text-align: center;
}

.et_pb_section {
    padding: 60px 0 !important;
}

.et_pb_post { 
    margin-bottom: 30px;
}

.entry-title {
    text-transform: uppercase;
}



/* FOOTER */

#footer {
    font-family: 'Neutraface Condenses Bold',Helvetica,Arial,Lucida,sans-serif;
    padding: 0;
}

#footer, #footer .et_pb_module.et_pb_text_align_left {
    text-align: center;
}

#footer .et_pb_row {
    display: flex;
    justify-content: center;
    align-items: center;
}

#social .et_pb_social_network_link a.icon,
#social .et_pb_social_network_link a.icon {
    background-color: var(--couleur-secondaire) !important;
    border-radius: 50% !important;
}

/* positionner le footer en bas sur les pages courtes */
#et-boc {
    min-height: 100vh;
}

#et-boc, #et-main-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#et-main-area, #et-main-area > div {
    flex: 1;
}

#footer img {
    width: 75px;
    height: 75px;
}

#footer .et_pb_image {
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Menu principal */

.et_pb_menu__logo img {
    width: 75px !important;
    height: 75px !important;
}

#sectionmenu, #footer {
    padding: 5px 0 !important;
}

#sectionmenu > div > .et_pb_column {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sectionmenu > div > .et_pb_column > div {
    flex: 1;
}

#sectionmenu > div > .et_pb_column > ul {
    margin-right: 15px;
}

.et_pb_menu_inner_container {
    padding: 0 20px;
}

.et_pb_menu_inner_container {
    display: flex;
    align-items: center;
}

.et_pb_menu__wrap .et_pb_menu__menu, .et_pb_menu__wrap nav, .et_pb_menu__wrap ul {
    width: 100%;
}

.et_pb_menu__wrap ul {
    justify-content: space-evenly !important;
}

.et_pb_menu__wrap ul li a {
    text-transform: uppercase;
    color: white !important;
    font-size: 1.5em;
    padding: 20px !important;
}

.et_pb_menu__wrap ul.nav > li:last-child, .et_pb_menu__wrap ul.nav > li:first-child {
    background-color: var(--couleur-secondaire) !important;
}

.et_pb_menu_0_tb_header .mobile_nav .mobile_menu_bar::before {
    color: var(--couleur-secondaire) !important;
}

@media (max-width:1070px) {
    .et_pb_section_0_tb_header, .et_pb_row_0_tb_header {
        padding: 0;
    }
    #sectionmenu .et_pb_menu_0_tb_header.et_pb_menu .nav li ul, #sectionmenu .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu, #sectionmenu .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu ul {
        background-color: var(--couleur-secondaire) !important;
    }
}

#sectionmenu .sub-menu {
    background-color: var(--couleur-fond) !important;
}


/* Slideshow*/

.logo {
    position : absolute;
    top : 20px;
    left : 20px;
    z-index: 999;
}

.logo img {
    border-radius : 50%;
}

.slideshow {
    width: 100vw;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

.slideshow .et_pb_row {
    padding: 0;
}
  
.slideshow .et_pb_ajax_pagination_container {
    position: relative;
    width: 100%;
    height: 100vh; /* Hauteur forcée */
}
  
  /* Article (chaque slide) */
.slideshow .et_pb_ajax_pagination_container article {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}
  
.slideshow .et_pb_ajax_pagination_container article.active {
    opacity: 1;
    z-index: 1;
}
  
  /* Image dans chaque slide */
.slideshow .et_pb_ajax_pagination_container article a.entry-featured-image-url,
.slideshow .et_pb_ajax_pagination_container article img {
    display: block;
    width: 100%;
    height: 100%;
}
  
.slideshow .et_pb_ajax_pagination_container article img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
  
  /* Titre par-dessus l’image */
.slideshow .et_pb_ajax_pagination_container article h2 {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--couleur-secondaire-rgba);
    color: white;
    padding: 1rem 4rem;
    font-size: 3rem;
    max-width: 50%;
    z-index: 2;
}
  
.slideshow .et_pb_ajax_pagination_container article h2 a {
    color: white;
    text-decoration: none;
}
  
/* Cacher le texte de l’article */
.slideshow .post-content {
    display: none;
}
  
  /* Responsive : centrer le titre sur mobile */
@media (max-width: 1070px) {
    .logo {
        display: none;
    }

    .slideshow .et_pb_ajax_pagination_container article h2 {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 90%;
        font-size: 2rem;
        text-align: center;
    }
}
  

  



/* Articles actualités */
.actus > div {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width : 1070px) {
    .actus > div {
        grid-template-columns: 1fr;
    }
}

.actus > div > article {
    height: 450px;
    /* overflow: hidden; */
    margin: 0;
}

.actus > div > article:first-child {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: 20px auto 1fr 15px 44px 15px;
    align-items: stretch; /* image prend toute la hauteur */
}

.actus > div > article:first-child::before { /*Couleur de fond 2e colonne, 1er article */
    content: "";
    grid-column: 2;
    grid-row: 1 / span 6;
    background-color: var(--couleur-secondaire);
    z-index: 0;
}
  
.actus > div > article:first-child h2, .actus > div > article:first-child > div {
    position: relative;
    z-index: 1;
    background: none;
    padding: 0 20px;
}

.actus > div > article:first-child div p {
    color: white !important;
}

.actus > div > article:first-child a {
    grid-column: 1;
    grid-row: 1 / span 6;
    margin: 0 !important;
}

.actus > div > article a img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.actus > div > article h2 {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: black;
    font-size: 24px;
} 

.actus > div > article > div.post-content {
    grid-column: 2;
    grid-row: 3;
    height: 100%;
    overflow: hidden;
}

.actus > div > article > div.cfa {
    grid-column: 2;
    grid-row: 5;
} 

.actus > div > article:first-child > div.cfa a {
    background-color: white;
    color: var(--couleur-fond);
}

@media (max-width: 420px) {
    .actus > div > article:first-child {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        grid-template-rows: 180px 40px 1fr 15px 44px 15px;
        justify-items: stretch; /* image prend toute la largeur */
    }

    .actus > div > article:first-child .entry-featured-image-url {
        margin-bottom: 0 !important;
    }

    .actus > div > article:first-child h2, .actus > div > article:first-child > div {
        padding: 0;
    }

    .actus > div > article:first-child div p {
        color: #666 !important;
    }
    
    .actus > div > article:first-child a {
        grid-row: 1;
        grid-column: 1;
    }
      
    .actus > div > article:first-child h2 {
        grid-row: 2;
        grid-column: 1;
    }
      
    .actus > div > article:first-child .post-content {
        grid-row: 3;
        grid-column: 1;
    }
      
    .actus > div > article:first-child .cfa {
        grid-row: 5;
        grid-column: 1;
    }

    .actus > div > article:first-child > div.cfa a {
        color: white;
        background-color: var(--couleur-secondaire);
    }
}

.actus > div > article:nth-child(2), .actus > div > article:nth-child(3) {
    display: grid;
    grid-template-columns: 1fr;
    gap : 10px;
    grid-template-rows: 180px 40px 1fr 15px 44px 15px;
    justify-items: stretch; /* image prend toute la largeur */
}

.actus > div > article:nth-child(2) .entry-featured-image-url, .actus > div > article:nth-child(3) .entry-featured-image-url {
    margin-bottom: 0 !important;
}

.actus > div > article:nth-child(2) a, .actus > div > article:nth-child(3) a {
    grid-row: 1;
    grid-column: 1;
}
  
.actus > div > article:nth-child(2) h2, .actus > div > article:nth-child(3) h2 {
    grid-row: 2;
    grid-column: 1;
}
  
.actus > div > article:nth-child(2) .post-content, .actus > div > article:nth-child(3) .post-content {
    grid-row: 3;
    grid-column: 1;
}
  
.actus > div > article:nth-child(2) .cfa, .actus > div > article:nth-child(3) .cfa {
    grid-row: 5;
    grid-column: 1;
}

@media (min-width : 1070px) {
    .actus > div > article:nth-child(3) {
        grid-column: 1 / span 2;
        height: 750px;
        display: grid;
        grid-template-rows: 400px 40px 1fr 15px 44px 15px;
    }

    /* .actus > div > article:nth-child(3) > a > img {
        display: none;
    } */

    /* .actus > div > article:nth-child(3) p {
        column-count: 3;
        column-gap: 1.5em;
    } */
}


/* Evenements */
.evenements {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.evenements article {
    background-color: white;
    padding: 20px;
    width: 320px;
}

.evenements p {
    margin: 5px;
    padding: 0;
    line-height: 1;
}

.evenements h4 {
    color: black;
    text-transform: uppercase;
}

.evenements .event-date, .evenements .event-text, .evenements p {
    color: var(--couleur-fond);
}

.evenements .event-date {
    display: flex;
    align-items: center;
}

.evenements .event-date svg {
    width: 20px;
    height: 20px;
    fill: var(--couleur-fond);
}

.evenements .event-text {
    max-height: 20px;
    overflow: hidden;
}

.evenements .event-cat {
    display: inline-block;
    background-color: var(--couleur-secondaire);
    padding: 5px 20px !important;
    color: white;
}


/* Icones cartes */
.iconscard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.iconscard > a > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width : 270px;
}

.iconscard svg {
    width: 75px;
    height: 75px;
}

.iconscard p {
    line-height: 1;
    color: var(--couleur-fond);
}


/* Articles blog */
.blog {
    margin-top: 20px;
}

.blog > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    align-items: stretch;
    min-height: 450px;
}

@media (max-width: 1070px) {
    .blog > div {
      grid-template-columns: 1fr;
    }
  }
  

.blog article {
    height: 550px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 175px auto 1fr 44px;
    gap: 20px;
}

.blog article > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog h2 {
    color: white;
    font-size: 25px;
}

.blog .post-content {
    overflow: hidden;
    max-height: 100%;
}

.blog p {
    color: white !important;
}

/* Liens */
.cfa, #mauticform_autoinscription_submit {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 35px;
    overflow: hidden;
}

.cfa a, #mauticform_input_autoinscription_submit {
    display: inline-block;
    padding: 5px 30px;
    background-color: var(--couleur-secondaire);
    color: white;
    border: none;
}


/* Contact */

.contactdiv {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: stretch;
}

.contactdiv .et_pb_column:last-child .et_pb_module, .contactdiv .et_pb_column:last-child .et_pb_code_inner {
    height: 100%;
} 

.contact {
    background-color: var(--couleur-secondaire);
    color: white !important;
    box-sizing: border-box;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact > *:first-child {
    margin: 0 0 30px 0;
    font-size: 1.5em;
    font-weight: bolder;
}

.contact p {
    margin: 15px 0;
    padding: 0;
    line-height: 1;
}

.contact svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.contact p a, .contact p a:visited {
    color: white;
}

.col2 {
    column-count: 2;
    column-gap: 2em;
}

#map {
    min-height: 300px;
}


/* Copains copines partenaires */
.listelogos {
    width: 90vw;
    box-sizing: border-box;
    max-width: 1920px;
    margin-bottom: 30px;
}
.listelogos .et_pb_column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.listelogos .et_pb_column .et_pb_module {
    margin: 0 0 0 0 !important;
}


/* Articles non Divi */
article h1, article h2, article h3, article h4, article h5, article h6 {
    color: var(--couleur-secondaire);
}


/* Plugin calendrier */
:root {
    --tec-color-icon-focus: var(--couleur-secondaire) !important;
    --tec-color-event-icon-hover: var(--couleur-secondaire) !important;
    --tec-color-accent-primary: var(--couleur-secondaire) !important;
    --tec-color-accent-primary-hover: var(--couleur-secondaire) !important;
    --tec-color-accent-primary-active: var(--couleur-secondaire) !important;
}