/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


@media (max-width: 768px) {
    /* CSS in here for mobile only */
}
@media (min-width: 769px) and (max-width: 1024px) {
    /* CSS in here for tablet only */
}
@media (min-width: 1025px) {
    /* CSS in here for desktop only */
}



@media (min-width: 1024px) and (max-width: 1440px) {}


@media (min-width: 1441px) {}


/* --------------- IMPORT FONTS --------------- */


@font-face {
  font-family: 'Franklin Gothic';
  font-style: normal;
  font-weight: 400;
  src: url('...//wp-content/themes/generatepress_child/fonts/FranklinGothic-Book.woff2'); /* IE9 Compat Modes */
  src: local(''),
       url('https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/fonts/FranklinGothic-Book.woff2') format('woff2'); /* Legacy iOS */;
}

@font-face {
  font-family: 'Franklin Gothic';
  font-style: normal;
  font-weight: 600;
  src: url('...//wp-content/themes/generatepress_child/fonts/FranklinGothic-Demi.woff2'); /* IE9 Compat Modes */
  src: local(''),
       url('https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/fonts/FranklinGothic-Demi.woff2') format('woff2'); /* Legacy iOS */;
}

@font-face {
  font-family: 'Franklin Gothic';
  font-style: normal;
  font-weight: 800;
  src: url('...//wp-content/themes/generatepress_child/fonts/FranklinGothic-Heavy.woff2'); /* IE9 Compat Modes */
  src: local(''),
       url('https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/fonts/FranklinGothic-Heavy.woff2') format('woff2'); /* Legacy iOS */;
}



/* ---------------FONTS STYLES --------------- */

h1, h2, h3{
	font-family: "Franklin Gothic";
	font-weight: 800;
}

p{
	font-family: "Franklin Gothic";
	font-weight: 400;	
}



.hl{
	font-size: 60px;
}

.sub, .subl, .subs{
	font-style: normal;
	font-weight: 800;
	line-height: normal;
	letter-spacing: 0.75px;
	text-transform: uppercase;
}

.sub{
	font-size: 25px;
}

.subl{
	font-size: 35px;
}

.subs{
	font-size: 18px;
}

.ps{
	font-size: 16px;
}

.pl{
	font-size: 20px;	
}

@media (max-width: 768px) {
	.hl{
		font-size: 35px;
	}
	.sub{
		font-size: 18px;
	}
}


.hxs {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green) !important;
}


/* --------------- BUTTONS --------------- */


.btn-l {
	padding: 12px 30px !important;
	border-radius: 100px !important;
	font-family: "Franklin Gothic";
	font-weight: 800;
	letter-spacing: 0.75px;
	text-transform: uppercase;
	font-size: 16px;
}

.btn-s {
	padding: 8px 22px !important;
	border-radius: 100px !important;
	font-family: "Franklin Gothic";
	font-weight: 800;
	text-transform: uppercase;
	font-size: 14px;
}


.btn-dark {
	background-color: var(--contrast-2) !important;
	color: white;
}


.btn-light {
	background-color: white !important;
	color: var(--contrast) !important;
	border: 2px solid var(--contrast);
}

.btn-inline{
	font-family: "Franklin Gothic";
	font-weight: 800;
	letter-spacing: 0.25px;
	text-transform: uppercase;
	padding: 0px !important;
	font-size: 15px;
	color: var(--contrast-2);
}

/* --------------- NAVIGATION --------------- */

.site-logo{
  z-index: 1001;
}

header#masthead{
  z-index: 10;
  margin-bottom: -1px;
}


.site-header{
  background-color: var(--bleu-clair) !important;
}

.main-navigation a {
    font-family: "Franklin Gothic";
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 20px;
}

/* desktop */

@media(min-width: 1025px) {
    .inside-header>.site-branding,
    .inside-header>.navigation-branding,
    .inside-header>.site-logo,
    .site-branding-container,
    #site-navigation .navigation-branding .site-logo,
    #sticky-navigation .navigation-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }


    .main-navigation ul ul{
      width: 280px !important;
      box-shadow: 1px 1px 0 rgba(0,0,0,0) !important;
      margin-left: 0px !important;

    }

    .inside-header {
    padding: 30px 20px 0px 20px !important;}

    #site-navigation {
        margin-left: unset !important;
        display: flex;
    }

    .site-header .main-navigation:not(#sticky-navigation) .inside-navigation {
        margin: unset;
    }

    #site-navigation,
    #primary-menu,
    .main-navigation .inside-navigation {
        flex: 1;
    }

    /* Change nth-child(#) to first item to right */
    .main-navigation ul li:nth-child(4) {
        margin-left: auto;
    }
  .site-header .header-image {
      width: 200px !important;
      max-width: 200px;
  }
  
  header#masthead {
    height: 110px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {


  .site-header .header-image {
     width: 170px;}

  nav#mobile-menu-control-wrapper {
    margin-top: 0px !important;}

    .icon-menu-bars svg {
      height: 1.8em;
      width: 1.8em;}

  .icon-search svg {
      height: 1.4em;
      width: 1.4em;}
}


@media (max-width: 768px) {
	.inside-header .site-logo{
    	margin-top: 0px !important;
	}

  .site-header .header-image {
       width: 35vw;}

   .mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus, .has-inline-mobile-toggle #site-navigation.toggled{
   		background-color: transparent !important;
   }

  .icon-menu-bars svg {
      height: 1.8em;
      width: 1.8em;}

  .icon-search svg {
      height: 1.4em;
      width: 1.4em;}

  .inside-header.grid-container{
  	  margin-bottom: -80px !important;
  }
	.inside-header {
	   padding: 20px 20px 0px 20px !important;
	}

}


.site-header{
  background-color: var(--base-2) !important;
}

.site-header:after{
	content: "";
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/nav_rounded.svg");
	background-position: bottom;
	background-size: cover;
	background-repeat: no-repeat;
	
	width: 100%;
	position: absolute;
	left: 0px;
	right: 0px;
}


@media (max-width: 768px) {
  .site-header:after{
    height: 100px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .site-header:after{
    height: 100px;
  }
}

@media (min-width: 1024px) and (max-width: 1550px) {
  .site-header:after{
    height: 110px;
  }

  .inside-header {
        padding: 40px 20px 0px 20px !important;
  }

  .inside-header.grid-container{
    margin-bottom: -45px !important;
  }
}


@media (min-width: 1551px) {
  .site-header:after{
    height: 150px;
  }

  .inside-header {
        padding: 60px 20px 0px 20px !important;
  }
}

.inside-header.grid-container {
    margin-top: 0px;
    margin-bottom: -40px;
}

.inside-header {
  padding: 10px 20px 0px 20px;
}



/* --------------- LAYOUTS --------------- */

body {
    background-color: var(--base);
}

.chiffres-cles p.gb-text strong {
    font-size: 28px;
    color: var(--yellow);
}

@media (max-width: 768px) {
	.masonry {
	  columns: 1 !important;
	}
}

.masonry {
  columns: 2;              /* ou columns: 300px; pour responsive automatique */
  column-gap: 1rem;
}

.masonry > .card {
  break-inside: avoid;     /* évite les coupures */
  margin-bottom: 1rem;     /* espace vertical */
  display: inline-block;   /* nécessaire pour columns */
  width: 100%;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}


/* --------- Steps --------- */

.steps > div {
  background-position: left center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-radius: 10px;
  color: white;
  padding: 10px 10px 10px 35px;
  display: inline-flex;
  flex-wrap: wrap;
  align-content: center;
  min-height: 120px;
}


.steps .done:last-child {
  display: none;
}

.ongoing {
    background: var(--yellow) !important;
}

.steps p{
  margin-bottom: 0px;
}

.steps > .done p:before {
    content: "";
    background-image: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/check.svg");
}

.steps > .done{
	background: var(--contrast);
}

.steps > :not(.done){
	background-color: #FFF;
	border: dotted var(--contrast) 1px;
}

.steps > :not(.done) p:before {
    content: "";
    background-image: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/tick.svg");
}

.steps > :not(.done) p{
	color: var(--contrast);
}

.steps p{
	position: relative;
}

.steps p:before{
	height: 15px;
    width: 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    left: -20px;
    top: 5px;
}


/* --------- Shapes --------- */

.bottom-yellow:before{
	content: "";
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/yellow_rounded.svg");
	background-position: bottom;
	background-size: cover;
	background-repeat: no-repeat;
	height: 160px;
	width: 100%;
	position: absolute;
	bottom: -60px;
	left: 0px; right: 0px;
}

.bottom-green:before{
	content: "";
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/green_bottom_rounded.svg");
	background-position: bottom;
	background-size: cover;
	background-repeat: no-repeat;
	height: 160px;
	width: 100%;
	position: absolute;
	bottom: -60px;
	left: 0px; right: 0px;
}

.bottom-cream:before{
	content: "";
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/cream_bottom.svg");
	background-position: bottom;
	background-size: cover;
	background-repeat: no-repeat;
	height: 160px;
	width: 100%;
	position: absolute;
	bottom: -60px;
	left: 0px; right: 0px;
	z-index: 10;    	
}

.top-green:before{
	content: "";
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/green_top_rounded.svg");
	background-position: top;
	background-size: cover;
	background-repeat: no-repeat;
	height: 150px;
	width: 100%;
	position: absolute;
	top: -90px;
	left: 0px; right: 0px;
}

.top-green, .bottom-yellow, .bottom-green, .bottom-cream{
	position: relative;
}

/* --------- Events --------- */

/* Preview */

.events-preview p {
    margin-bottom: 0px;
    font-size: 15px !important;
}

.events-preview a{
	text-decoration: none;
	color: white !important;
}

.events-preview h3{
	font-size: 18px !important;
}

.events-preview h3:after {
	content: "";
	display: inline-flex;
    margin-right: 8px;
	color: white;
	background: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/green_dot.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	height: 10px; width: 10px;
	    position: absolute;
    left: 0px;
    top: 5px;
}

.events-preview h3 {
    position: relative;
    padding-left: 20px;
}

/* --------- Posts --------- */

/* Preview */

.posts-preview a{
	text-decoration: none;
}

.posts-preview h3{
	font-size: 19px !important;
	text-transform: uppercase;
}

.posts-preview p {
    margin-bottom: 10px;
    font-size: 15px !important;
}



/* --------------- FOOTER --------------- */

.site-footer a {
    text-decoration: none;
}

.site-footer a {
    text-decoration: none !important;
}


/* --------------- BLOG --------------- */



.blog .site {
    padding: 100px 4%;
}

.blog {
    background: #FFF59D;
}

.sidebar .generate-columns.grid-50, .sidebar .grid-sizer.grid-50 {
    width: 100%;
    padding-left: 0px !important;
}


@media (min-width: 1024px) {
  div#right-sidebar {
      margin-left: 30px;
  }
}


@media (max-width: 768px) {}

@media (max-width: 1023px) {

  .site-content {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
  }

  div#right-sidebar {
    order: -1;
  }

  .site-content .content-area, .is-right-sidebar{
    width: 100% !important;
  }

}

.blog .inside-article {
    background: #FFF;
    border-radius: 30px;
}

.blog .generate-columns-container{
	margin-left: -50px;
}

.blog .generate-columns{
	padding-left: 50px;
}

.blog .entry-title {
    text-transform: uppercase;
    font-size: 22px;
    line-height: 1.2em;
}


/* --------------- POST --------------- */

.single-post .inside-article {
    max-width: 800px;
    margin: auto;
}

.single-post .inside-article{
	font-size: 20px;
}

.comments-area, .cat-links {
    display: none;
}



/* --------------- LINKED CONTAINER --------------- */

.linked-container, .blog .inside-article {
    position: relative;
}

.linked-container .link a:before, .linked-container .link:before, .blog .inside-article .entry-title a:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.linked-container .link a, .blog .inside-article .entry-title a {
  text-decoration: none;
}


.link {
    text-decoration: none !important;
}

.ressource{
	position: relative;
}

.ressource:after {
	content: "";
	background-image: url("https://ailesdelagrosne.fr/wp-content/themes/generatepress_child/assets/arrow_top_right.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain; 
	height:20px; width: 20px;
	position: absolute;
	top: 20px; right: 20px;
}


/* SLIDES */

/* CAROUSEL */

.carousel-container, .second-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0px 39px;
  z-index: 10;
}

.slides, .allavis, .second-carousel {
    display: flex;
      transition: transform 0.4s ease; /* Transition améliorée */
  will-change: transform; /* Optimisation des performances */
}

.slides h4{
    font-weight: 600;
}

.second-slide, .avis {
  width: calc(33.33% - 10px) !important; /* Afficher 3,5 diapositives par écran */
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 20px;
  box-sizing: border-box;
  background-color: #ddd;
  display: inline-flex;
  flex-direction: column;
}

.slide{
    min-height: 500px;
    padding: 40px 30px 10px 30px;
    justify-content: space-between;
}

.avis, .second-slide{
    padding: 20px;
    justify-content: flex-start;
}

.second-slide .hxs {
    color: var(--contrast) !important;
    font-size: 22px !important;
}

.inner-slide p:not(.hxs) {
    font-size: 20px;
}

.second-slide h3, .avis h3 {
    color: var(--bleu-fonce) !important;
    font-size: 20px;
    font-family: "Source Serif";
}

.avis img {
    border-radius: 15px;
}

.avis .inner-slide {
    border: 2px solid #F9E8DE;
    border-radius: 5px;
    padding: 3em;
    background-color: #FFF;
    height: 100%;
}

.second-slide{
  background-color: #FFF;
} 

.second-slide .inner-slide {
    border: 2px solid var(--corail);
    border-radius: 5px;
    padding: 2em;
    background-color: #FFF !important;
    height: 100%;
}


.inner-slide .hxs{
  margin-bottom: 10px !important;
}



.arrows {
    text-align: right;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}



.arrows .arrow {
    padding: 10px;
    line-height: 15px;
    width: 50px;
    position: absolute;
    top: 100px;
    background: transparent !important;
}

button.arrow.right, button.arrow.second-right {
    margin-left: auto;
    right: 0px;
}

button.arrow.left, button.arrow.second-left {
    margin-left: auto;
    left: 0px;
}




.arrows .arrow:hover{
    background: #FFF;
}

.arrows .arrow svg {
    height: 30px !important;
    width: 30px !important;
}




@media (max-width: 1024px) {
  .second-slide, .avis {
    width: 100% !important;
    flex: 0 0 100%; /* 1 slide sur mobile */
    margin-right: 0;
    padding: 0px !important;
  }
  .slides, .allavis, .second-carousel{
    gap: 20px;
  }
  .carousel-container, .second-carousel-wrapper{
    padding: 0px !important;
    padding-bottom: 30px !important;
  }
  .arrows .arrow {
    bottom: -20px !important;
    top: auto !important;
  }
}


.error404 div#content {
    padding: 150px 6%;
}



/* FAQ */

strong.schema-faq-question:hover {
    cursor: pointer;
}

.schema-faq-question{
  font-size: 18px;
  font-style: normal;
  display: block;
  padding: 20px 40px 20px 20px !important;
  position: relative;
  font-family: "Franklin Gothic";
	    font-weight: 600;
}

.schema-faq-question strong{
  font-weight: 400 !important;
}

.faq-corail .schema-faq-question{
font-size: 22px;
    font-weight: 400;
  }

.schema-faq-section{
  margin-bottom: 0px;
}

@media (max-width: 768px){
  .schema-faq-question{
    font-size: 16px !important;
  }
}

strong.schema-faq-question:after {
    content: "+";
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /*height: 20px;
    width: 20px;*/
    right: 30px;
    top: 15px;
    padding-top: 3px;
    transform: rotate(0deg);
    position: absolute;
}



.schema-faq-question.active:after {
    content: "+";
    transform: rotate(45deg);
}

strong.schema-faq-question.active {
    border-bottom: 1px solid var(--contrast) !important;
}

strong.schema-faq-question {
    border-bottom: 1px solid var(--contrast);
}

.schema-faq-answer {
    display: none;
    padding: 25px !important;
    margin-bottom: 0px;
}

@media (min-width: 769px){
.schema-faq-answer {
  padding: 0px 35px 30px 20px;
  }
}

@media (max-width: 768px){
  .schema-faq-answer {
        padding: 30px !important;
        font-size: 16px;
    }
  .schema-faq-question{
    padding: 20px 40px 20px 20px !important;
  }
  .schema-faq-question strong{
    font-size: 18px !important;  
  }
  strong.schema-faq-question:after{
    top: 20px;
    right: 10px;
  }
}
