/*
 Theme Name:   Respect Grandeur Nature
 Description:  Thème pour le site Respect Grandeur Nature
 Author:       SiteOrigin / Alexis Domjan
 Template:     siteorigin-corp
 Version:      1.0.0
 Text Domain:  respectgrandeurnature
*/

/* Brown font families

  font-family: "BrownLLWeb-Bold";
  font-family: "BrownLLWeb-Bold";
  font-family: "BrownLLWeb-Regular";
  font-family: "BrownLLWeb-Regular";
  font-family: "BrownLLWeb-Light";
  font-family: "BrownLLWeb-Light";
  font-family: "BrownLLSub-Bold";
  font-family: "BrownLLSub-Bold";
  font-family: "BrownLLSub-Regular";
  font-family: "BrownLLSub-Regular";
  font-family: "BrownLLSub-Light";
  font-family: "BrownLLSub-Light";

*/

@import url("fonts/brownfont.css");

body {
   font-family: "BrownLLWeb-Regular", sans-serif !important;
}

/*wide content*/
body.layout-full.responsive #page-wrapper .full-container {
    max-width: 1600px;
}

h1,h2,h3,h4,h5,h6 {
   font-family: "BrownLLWeb-Bold", sans-serif !important;
   font-weight: 800;
   text-transform: uppercase;
}

.textwidget h1, .textwidget h2, .textwidget h3, .textwidget h4 {
   color: #006c54 !important;
}

.rgn-page-title h1 {
   display: inline-block;
   border: 1px solid white;
   padding: 10px;
   text-transform: uppercase;
   color: white;
}


.main-navigation ul li a {
   font-family: "BrownLLWeb-Regular", sans-serif !important;
   font-size: 1.4em;
}

/* Navigation full width on desktop */
@media (min-width: 1531px) {
   .site-header .corp-container {
      max-width: none;
   }

   .site-header .corp-container #site-navigation {
      margin-right: 150px;
   }

   .site-header .corp-container .site-branding {
      margin-left: 40px;
   }
}




.main-navigation .sub-menu li a:hover {
  /* background-color: #8fc03f !important; */
}

.sub-menu li a {
   background-color: #8fc03f !important;
   border-left: 1px solid white !important; 
   border-right: 1px solid white !important; 
   color: white !important;
   transition: all 0.3s ease;
}

.sub-menu li a:hover {
   background-color: white !important;
   color: #8fc03f !important;
}

.sub-menu li:first-of-type {
   margin-top: 5px !important;
   /*border-top: 1px solid red !important; */
}

.sub-menu li a {
   border-bottom: 1px solid white !important;
}

.sub-menu li:not(:last-child) a {
  /* border-bottom: 1px solid red !important;  */
}

#mobile-menu-button svg {
   height: 36px !important;
   width: 36px !important;
}

/*.link-underline.main-navigation div > ul:not(.cart_list) > li > a {
   border-bottom: 5px solid transparent !important;
}

.link-underline.main-navigation div > ul:not(.cart_list) > li > a:hover {
   border-bottom: 5px solid #115740 !important;
}*/

.rgn-bottom-icons {
   position: absolute;
   width: 100%;
   left: 0;
   bottom: -30px;
   padding-top: 10.41667%;
   background: url(/wp-content/themes/siteorigin-corp-child/personnages-bgnd-white-1920x200.svg) no-repeat center top;
   background-size: 100% auto;
}

.rgn-bottom-icons > .content {
}

.rgn-num {
   font-size: 2em;
   font-family: "BrownLLWeb-Bold", sans-serif;
}

.sow-slider-image-wrapper {
/*  padding: 200px 0 20px 0 !important; */
}

.textwidget p, .textwidget li {
   font-size: 1.3em;
}

/*.corp-container {
	max-width: 1300px;
}*/


/* Header */
.site-header {
   border-bottom: none !important;
}


/* Footer */
.site-footer .textwidget a {
   color: white;
   border-bottom: 1px solid white;
   transition: all 0.4s ease;
}

.site-footer .textwidget a:hover  {
   color: #ccc !important;
   border-bottom: 1px solid #ccc !important;
}

.rgn-tuiles-container .panel-grid-cell .panel-cell-style {
   border-radius: 15px !important;
   transition: all 0.5s ease !important;
}

.rgn-tuiles-container .panel-grid-cell {
   margin-bottom: 20px !important;
}

.rgn-tuile {
   display: block;
   text-align: center;
   color: #444;
   padding: 2rem;
}

.rgn-tuiles-container .panel-cell-style {
   background-color: #e4e4e4;
}

.rgn-tuiles-container .panel-cell-style:hover {
   background-color: #8fc03f !important;
}

.panel-cell-style:hover a {
   color: #222;
}

.rgn-tuiles-container a:visited {
   color: #222 !important;
}

.rgn-home-title1 h1 {
   display: inline-block !important;
   padding: 10px 20px 10px 20px;
   background-color: white;
   color: #333 !important;
   margin-bottom: 0 !important;
   margin-top: 4rem !important;
}

.rgn-home-title1 h3 {
   display: inline-block !important;
   padding: 10px 20px 10px 20px;
   margin-top: 0 !important;
   background-color: #8fc03f !important;
   color: #333 !important;
   font-size: 1.4em !important;
   max-width: 60%;
   font-family: "BrownLLWeb-Regular", sans-serif !important;
   font-weight: 400 !important;
}

@media only screen and (max-width: 1200px) {
   .rgn-home-title1 p {
      max-width: 90%;
   }
}


/* Primary Menu */
/*
#mobile-navigation ul li {
   font-family: "BrownLLWeb-Bold", sans-serif !important;
   font-weight: 700;
   text-align: center;
   font-size: 30px !important;
}

#mobile-navigation .dropdown-toggle i {
   font-size: 30px !important;
}

*/

/* Règles */
/* ====== */

.rgn-container {
    display: grid;
    gap: 35px;
    padding: 30px;
    transition: all 0.5s ease-in-out;
}

.rgn-item {
    position: relative;
    text-align: center;
    border-radius: 5px;
}

/* Numéro de la règle, affiché au-dessus de l'image */
.rgn-numero {
    font-family: "BrownLLSub-Bold", sans-serif;
    font-size: 50px;
    font-weight: 900;
    color: #006c54;
    margin-bottom: 5px;
    text-align: left;
    display: inline;
    float: left;
    transform: rotate(-30deg);

}



/* Wrapper de l'image (corrigé pour éviter overflow: hidden) */
.rgn-image-wrapper {
    display: block;
    clear: both;
    position: relative;
    border-radius: 50%;
    overflow: visible; /* Permet à l'image zoomée de ne pas être coupée */
}

/* Style des images */
.rgn-image-wrapper img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1; /* Place l’image au-dessus par défaut */
}

/* Overlay pour le texte (correction du problème de superposition) */
.rgn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 50%;
    z-index: 2; /* Place l’overlay au-dessus de l’image */
}

/* Texte de la règle (placé au-dessus de l’image) */
.rgn-text {
    color: white;
    font-size: 20px;
    font-weight: 900;
    max-width: 150%;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
    text-align: center;
    background-color: #006c54;
    padding: 8px;
    border-radius: 8px;
    z-index: 3; /* Place le texte au-dessus de tout */
}

/* Effet au survol seulement sur l’image */
.rgn-image-wrapper:hover .rgn-overlay {
    opacity: 1;
}

/* Animation fluide pour le texte */
.rgn-image-wrapper:hover .rgn-text {
    transform: scale(1);
}

/* Effet zoom uniquement sur l’image */
.rgn-image-wrapper:hover img {
    transform: scale(1.05);
    z-index: 1; /* Assure que l’image reste sous l’overlay */
}

/* Responsive */
@media (min-width: 1024px) {
    .rgn-container {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
	max-width: 1800px;
	margin: 0 auto;
    }
}

@media (min-width: 600px) and (max-width: 1023px) {
    .rgn-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, auto);
    }
}

@media (max-width: 599px) {
    .rgn-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, auto);
    }
}


/* Navigation règles */

.rgn-nav-container {
    display: flex;
    justify-content: center;
    gap: 0px; /* Espacement horizontal entre les icônes */
    padding: 15px 0;
    flex-wrap: wrap; /* Permet l'adaptation sur petits écrans */
}

.rgn-nav-item {
    position: relative;
    width: 150px; /* Augmenter la zone de hover */
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rgn-nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px; /* Étend la zone de hover */
    border-radius: 12px; /* Pour arrondir légèrement la zone de hover */
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
}

/* Ajouter un léger effet de fond au hover */
.rgn-nav-item a:hover {
    /* background: rgba(0, 0, 0, 0.05); /* Léger gris transparent */
    /*border: 2px solid #006c54; */
}

/* Image normale */
.rgn-nav-item img {
    width: 120px; /* Taille de l'icône */
    height: 120px;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease-in-out;
}

/* Image en noir (ajoutée au-dessus) */
.rgn-nav-item .hover-img {
    opacity: 0; /* Cachée par défaut */
}

/* Effet de transition au hover */
.rgn-nav-item a:hover .hover-img {
    opacity: 1; /* Devient visible avec une transition fluide */
}


/* Règles / contenu */
.rgn-regles-content h1 {
   color: #006c54;
}

.rgn-regles-content {
   border-radius: 10px;
}

.rgn-regles-content strong {
   color: #006c54;
}


/* Règles tige */

.rgn-tige-layout {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
}

.rgn-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2rem;
  flex: 1;
}

.rgn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rgn-item img {
  width: 100px;
  height: auto;
}

.rgn-num {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.rgn-texte {
  max-width: 200px;
  margin-top: 0.5rem;
}

.rgn-tige {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.rgn-tige img {
  width: 60px;
  max-height: 90vh;
  height: auto;
}

/* TABLETTE */
@media (max-width: 1024px) {
  .rgn-tige-layout {
    flex-direction: row;
    overflow-x: auto;
    align-items: flex-start;
  }

  .rgn-col.gauche,
  .rgn-col.droite {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
  }

  .rgn-item {
    flex: 0 0 auto;
    width: 70vw;
    scroll-snap-align: center;
  }

  .rgn-tige img {
    width: 40px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .rgn-tige-layout {
    flex-direction: column;
    align-items: center;
  }

  .rgn-tige {
    display: none;
  }

  .rgn-col.gauche,
  .rgn-col.droite {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
  }

  .rgn-item {
    width: 100%;
    padding: 1rem;
  }
}


/* Banner */

.rgn-banner h1 {
  position: relative;
  background-color: #006c54;
  color: white;
  padding: 40px;
  text-align: center;
  font-size: 2rem;
  /* Pour améliorer le rendu */
  overflow: hidden;
  font-size: 3em;
}

.rgn-banner h1::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid white;
  pointer-events: none;
}

.rgn-green-text .textwidget {
   color: #006c54;
}

.rgn-green-text .textwidget strong {
   font-family: "BrownLLSub-Bold", sans-serif;
}
   
.rgn-accordion strong, .rgn-accordion b {
   font-family: "BrownLLSub-Bold", sans-serif;
}




/* Charte 10 gestes */
.rgn-charte-10-gestes-container {
   height: 100%;
   padding-top: 32px;
   display: block;
   text-decoration: none;
}

.rgn-charte-10-gestes-container img {
   width: 160px;
   padding-right: 20px;
   transition: all 0.3s ease;
}

.rgn-charte-10-gestes-container:hover  {
   filter:brightness(0%);
}

.rgn-charte-10-gestes-container svg {
   vertical-align: top;
   margin-top: 40px;
   transition: all 0.3s ease;
}

.rgn-charte-10-gestes-container span {
   font-family: "BrownLLSub-Bold", sans-serif;
   font-size: 22px;
   display: inline-block;
   color: #006c54;
   text-transform: uppercase;
   vertical-align: top;
   padding: 50px 0 0 10px;
   transition: all 0.3s ease;
}




.rgn-banner-title-white h1 {
  background-color: white;
  position: absolute;
  bottom: 0;
  padding: 20px 40px 20px 40px;
  color: #006c54 !important;
  text-align: right;
  right: 20%;
  border-radius: 20px 20px 0 0;

  /*right: 0px;
  border-radius: 20px 0 0 0; */
}


@media (max-width: 1400px) {
   .rgn-banner-title-white h1 {
      right: 10%;
      border-radius: 20px 20px 0 0;
   }
}

@media (max-width: 1024px) {
   .rgn-banner-title-white h1 {
      right: 0px;
      border-radius: 20px 0 0 0;
   }
}

/* Buttons */

/* Button 1 */
.rgn-button-1 a {
   border-radius: 16px !important;
   border: 1px solid #006c54 !important;
   background-color: white !important;
   color: #006c54 !important;
   transition: all 0.4s ease;
   text-align: left !important;
}

.rgn-button-1 a:hover {
   background-color: #006c54 !important;
   color: white !important;
   border-radius: 20px !important;
}
   
.rgn-button-1 a span {
   color: #006c54 !important;
   text-transform: uppercase;
   font-size: 1.1em;
   transition: all 0.4s ease;
   justify-content: left !important;
}

.rgn-button-1 a:hover span {
   color: white !important;
}

   
/* Button 2 */
.rgn-button-2 a {
   border-radius: 20px 0 20px 0 !important;
   border: 1px solid #006c54 !important;
   background-color: #006c54 !important;
   color: white !important;
   transition: all 0.4s ease;
   text-align: left !important;
   width: 100% !important;
}

.rgn-button-2 a:hover {
   background-color:black  !important;
   color: white !important;
   border-radius: 20px !important;
}
   
.rgn-button-2 a span {
   color: white !important;
   text-transform: uppercase;
   font-size: 1.2em;
   transition: all 0.4s ease;
}

.rgn-button-2 a:hover span {
   color: white !important;
}


/* Button 3 */
/*.rgn-button-3 a {
   border-radius: 10px !important;
   transition: all 0.4s ease;
   text-align: left !important;
   background-color: #006c54 !important;
   color: white !important;
}

.rgn-button-3 a:hover {
   border-radius: 10px !important;
   border: 1px solid #006c54 !important;
   background-color: white !important;
   color: #006c54 !important;
}

.rgn-button-3 a span {
   color: white !important;
   text-transform: uppercase;
   font-size: 1.1em;
   transition: all 0.4s ease;
   justify-content: left !important;
   line-height: 1.2em;
}

.rgn-button-3 a:hover span {
   color: #006c54 !important;
}*/
.rgn-button-3 a {
   border-radius: 10px !important;
   transition: all 0.4s ease;
   text-align: left !important;
   background-color: white !important;
   color: #006c54 !important;
   border-color: #006c54 !important;
}

.rgn-button-3 a:hover {
   border-radius: 10px !important;
   border: 1px solid #006c54 !important;
   background-color: #006c54 !important;
   color: iwhite !important;
}

.rgn-button-3 a span {
   color: #006c54 !important;
   text-transform: uppercase;
   font-size: 1.1em;
   transition: all 0.4s ease;
   justify-content: left !important;
   line-height: 1.2em;
}

.rgn-button-3 a:hover span {
   color: white !important;
}


.cle-back-button {
   vertical-align: top;
   padding: 20px;
}

   
.cle-container .textwidget h4 {
   margin-bottom: 0 !important;
}

.rgn-innerpage-container {
   margin-bottom: 90px;
   margin-top: 30px;
   padding-top: 60px;
   /*border-top: 4px solid #006c54;*/
}


/* Data tables */
.filtre-groupe {
   margin-bottom: 1em;
   display: flex;
   flex-wrap: wrap;
   gap: 0.5em;
}
.custom-checkbox {
   background: white;
   padding: 4px 8px;
   border-radius: 5px;
   border: 1px solid #006c54;
   cursor: pointer;
   font-size: 20px;
   float: left;
   clear: both;
   color: #006c54;
}
.custom-checkbox input {
   margin-right: 4px;
}
#table-liens {
   /*border: 1px solid #006c54; */
   font-family: "BrownLLSub-Regular", sans-serif !important;
}
#table-liens thead {
   background-color: #006c54;
}
#table-liens thead th {
   color: white;
   font-size: 1.3em;
}
#table-liens tbody tr:nth-child(even) {
   background-color: white;
}
#table-liens tbody tr:hover {
   background-color: white;
}
#table-liens tbody td {
   font-size: 1.2em;
   color: #006c54 !important;
}



.rgn-liens h3, .rgn-liens h4 {
   color: #006c54;
}

.rgn-liens h5 {
   color: #006c54;
   font-size: 1.2em;
   text-transform: none;
}

.custom-checkbox {
    position: relative;
    padding-left: 28px; /* espace pour la case */
    cursor: pointer;
    user-select: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    left: 10px;
    top: 10px;
    height: 20px;
    width: 20px;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

/* Case personnalisée */
.custom-checkbox::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid #006c54;
    border-radius: 4px;
    background: white;
    box-sizing: border-box;
}

/* Tick */
.custom-checkbox input[type="checkbox"]:checked + span::after {
    content: '';
    position: absolute;
    left: 0px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid #006c54;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Ajoute un span après l'input pour dessiner le tick */
.custom-checkbox span {
    display: inline-block;
    position: relative;
    height: 20px;
    width: 20px;
}


.custom-checkbox:has(input[type="checkbox"]:checked) {
    background-color: #006c54;
    color: white;
    border-color: #006c54;
}



#table-liens_length {
   display: none;
}

#table-liens_filter {
   margin-bottom: 30px;
   float: left;
}

#table-liens_filter label {
   font-family: "BrownLLWeb-Regular", sans-serif;
   color: #006c54;
   font-size: 1.3em;
}

#table-liens_filter input {
   font-family: "BrownLLWeb-Regular", sans-serif;
   font-size: 1.3em;
   border: 1px solid #006c54;
   color: #006c54;
}

#table-liens_paginate {
   display: none;
}

h3.widget-title {
   color: #006c54;
}

.rgn-form label {
   font-size: 1.3em;
   color: #006c54;
}

.rgn-form label .field_required {
   color: #006c54 !important;
}

.rgn-form input[type=text], .rgn-form input[type=email], .rgn-form textarea { 
   font-size: 1.3em !important;
   border: 1px solid #006c54 !important;
   padding: 20px 10px 20px 10px !important;
   border-radius: 5px !important;
}


.rgn-form input[type=text]:focus, .rgn-form input[type=email]:focus, .rgn-form textarea:focus {
   border-color: #006c54 !important;
   box-shadow: inset 1px 1px rgba(0, 108, 84, 0.75), 0 0 8px rgba(0, 108, 84, .6) !important;
   -webkit-box-shadow: none !important;
}

.rgn-form input[type=submit] {
   border: 1px solid #006c54;
   background-color: white;
   padding: 20px;
   color: #006c54;
   font-size: 1.5em;
   border-radius: 9px;
   transition: all 0.3s ease;
}

.rgn-form input[type=submit]:hover {
   color: white;
   background-color: #006c54;
}

.rgn-logos {
   padding: 30px !important;
}


.rgn-innerpage-container p {
   color: #006c54;
}

/*h1.sow-headline {
   padding-top: 40px !important;
}

p.sow-sub-headline {
   padding-bottom: 20px !important;
}*/

.sow-headline-container {
   padding-top: 40px;
   padding-bottom: 30px;
}

h1.sow-headline {
   font-size: 42px !important;
}

.rgn-footer {
   margin: 20px auto 20px auto;
}

.rgn-footer .site-info a {
   text-decoration: underline;
}

