/*
Theme Name: Les Compagnons de Pauline
Theme URI: https://lescompagnonsdepauline.fr/
Description: Thème enfant pour Les Compagnons de Pauline sur Kadence
Author: Mathieu Palley, Valligraph Design
Template: kadence
Version: 1.0
Text Domain: lescompagnonsdepauline
*/

/* Font */

@font-face {
  font-family: 'Caros';
  src: url('/wp-content/themes/lescompagnonsdepauline/assets/fonts/caros.woff2') format('woff2'),
       url('/wp-content/themes/lescompagnonsdepauline/assets/fonts/caros.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Caros';
  src: url('/wp-content/themes/lescompagnonsdepauline/assets/fonts/caros-bold.woff2') format('woff2'),
       url('/wp-content/themes/lescompagnonsdepauline/assets/fonts/caros-bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

body {
  font-family: 'Caros', sans-serif;
}

.justify-text {
  text-align: justify;
}


/* Page */
.service-title {
  text-align: center;
  font-size: 50px;
}

.header {
  position: relative;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  overflow: hidden;
}

.header.header-full-logo {
  padding: 0px;
}

.logo {
  max-height: 500px;
  max-width: 1000px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.wave-section {
  position: relative;
  height: 600px;
  width: 100%;
}

.wave-background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.logo-full {
  position: relative;
  z-index: 2;
  display: block;
  height: auto;
  margin: 0 auto;
  padding-top:100px;
  max-height: 500px;
  max-width: 1000px;
  width: auto;
  object-fit: contain;
}

.wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 3;
  pointer-events: none;
}

.wave-svg svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}


/* Cards Lists */
.card-list {
  max-width: 900px;
  margin: 10px auto;
  padding: 1rem;
}

.card-list-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1rem;
}

.full-click {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  z-index: 2;
  cursor: pointer;
}

.full-click:hover {
  background: none;
  color: none;
  box-shadow: none;
}

.full-click:focus {
  background: none;
  color: none;
  box-shadow: none;
}

.card-list-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.card-list-image {
  flex: 0 0 200px;
}

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

.card-list-text {
  flex: 1;
  min-width: 250px;
}

.card-list-text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card-list-subheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.card-list-subtitle > p {
  margin: 0;
  font-size: 0.95rem;
  text-align: justify;
  color: #666;
  flex: 1;
}

.toggle-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.chevron-circle {
  width: 40px;
  height: 40px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rotate {
  transform: rotate(180deg);
}

.card-list-content {
  position: relative;
  margin-top: 1rem;
}

.card-list-content::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  background-color: #333;
  transition: height 0.3s ease;
}

.toggle-button[aria-expanded="true"] ~ .card-list-content::after {
  height: 100%;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .card-list-top {
    flex-direction: column;
  }

  .card-list-image {
    width: 100%;
  }

  .card-list-subheader {
    flex-direction: column;
  }

  .toggle-button {
    align-self: flex-end;
  }
}


/* Cards */
.card {
  padding: 1.5rem;
  border-radius: 1.5rem;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 1rem;
  flex-grow: 1;
}

.card-text-wrapper {
  display:flex;
  justify-content: center;
}

.card-text > p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.card-button-wrapper {
  display: flex;
  justify-content: center;
}


.card-button {
  padding: 0.6rem 1.5rem;
  border-radius: 1.5rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem;
}

.card.wide {
  max-width: none;
  grid-column: 1 / -1;
}

.card-wrapper {
  max-width: 100%;
  width: 100%;
  padding: 2rem 1rem;
}

.card-text-only {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .card-wrapper {
    max-width: 1000px;
  }

  .card-grid {
  grid-template-columns: repeat(2, 1fr);
  }
}

.full-image-card {
  padding: 0;
  border: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.full-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
}


/* Commentaires */

.slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 10px auto;
  overflow: hidden;
  border-radius: 8px;
  height: auto;
}

.comment-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: auto;
}

.comment-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  max-height: 400px;
  overflow: hidden;
}

button.comment-slider-prev, button.comment-slider-next {
  position: absolute;
  top: 9%;
  transform: translateY(-50%);
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 2;
}

button.comment-slider-prev { left: 12px; }
button.comment-slider-next { right: 12px; }

.comment-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.comment-slider-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
}

.comment-slider-dots button.active {
  background: rgba(255,255,255,1);
}


.comment {
  padding: 1.5rem;
  border-radius: 1.5rem;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.comment-body {
  display: flex;
  align-items: flex-start;
}

.comment-body img {
  flex: 0 0 25%;
  max-width: 25%;
  height: auto;
  object-fit: cover;
  margin-right: 20px;
  border-radius: 4px;
}

.comment-body .comment-text {
  flex: 1;
  min-width: 0;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Themes animaux */

/* Thème chat */
.theme-chat .card {
  background-color: #971f26;
  color: #f1d6d9;
}

.theme-chat .card-title {
  color: #f1d6d9;
}

.theme-chat .service-title {
  color: #971f26;
}

.theme-chat .card {
  background-color: #971f26;
  color: #f1d6d9;
}

.header-chat,
.body-chat #masthead #main-header .kadence-sticky-header, 
.body-chat #masthead #mobile-header .kadence-sticky-header {
  background-color: #971f26;
}

.body-chat .site-header .primary-menu-container > ul > li.menu-item > a,
.body-chat .site-header .mobile-toggle-open-container #mobile-toggle > .menu-toggle-icon {
  color: #f1d6d9 !important;
}

.theme-chat .badge,
.theme-chat .card-button {
  background-color: #f1d6d9;
  color: #971f26;
}

.theme-chat .chevron-circle {
  background-color: #971f26;
}

.theme-chat .chevron-triangle {
  color: #f1d6d9;
}

/* Thème chien */
.theme-chien .card {
  background-color: #385902;
  color: #E6FFE6;
}

.theme-chien .card-title {
  color: #E6FFE6;
}

.theme-chien .service-title {
  color: #385902;
}

.theme-chien .card {
  background-color: #385902;
  color: #E6FFE6;
}

.header-chien,
.body-chien #masthead #main-header .kadence-sticky-header, 
.body-chien #masthead #mobile-header .kadence-sticky-header {
  background-color: #385902;
}

.body-chien .site-header .primary-menu-container > ul > li.menu-item > a,
.body-chien .site-header .mobile-toggle-open-container #mobile-toggle > .menu-toggle-icon {
  color: #E6FFE6 !important;
}

.theme-chien .badge,
.theme-chien .card-button {
  background-color: #E6FFE6;
  color: #385902;
}

.theme-chien .chevron-circle {
  background-color: #385902;
}

.theme-chien .chevron-triangle {
  color: #E6FFE6;
}

/* Thème NAC */
.theme-nac .card {
  background-color: #C3B671;
  color: #463A2C;
}

.theme-nac .card-title {
  color: #463A2C;
}

.theme-nac .service-title {
  color: #C3B671;
}

.theme-nac .card {
  background-color: #C3B671;
  color: #463A2C;
}

.header-nac,
.body-nac #masthead #main-header .kadence-sticky-header, 
.body-nac #masthead #mobile-header .kadence-sticky-header {
  background-color: #C3B671;
}

.body-nac .site-header .primary-menu-container > ul > li.menu-item > a,
.body-nac .site-header .mobile-toggle-open-container #mobile-toggle > .menu-toggle-icon {
  color: #463A2C !important;
}

.theme-nac .badge,
.theme-nac .card-button {
  background-color: #463A2C;
  color: #C3B671;
}

.theme-nac .chevron-circle {
  background-color: #C3B671;
}

.theme-nac .chevron-triangle {
  color: #463A2C;
}

/* Thème Logo */
.theme-logo .card {
  background-color: #EFE3D8;
  color: #463A2C;
}

.theme-logo .card-title {
  color: #463A2C;
}

.theme-logo .service-title {
  color: #463A2C;
}

.theme-logo .card {
  background-color: #EFE3D8;
  color: #463A2C;
}
.body-logo .site-header .primary-menu-container > ul > li.menu-item > a,
.body-logo .site-header .mobile-toggle-open-container #mobile-toggle > .menu-toggle-icon {
  color: #463A2C !important;
}

.body-logo .header-detached #main-header .kadence-sticky-header, 
.body-logo .header-detached #mobile-header .kadence-sticky-header {
  background-color: #EFE3D8 !important;
}

.body-logo .header-detached.over-header #main-header .kadence-sticky-header,
.body-logo .header-detached.over-header #mobile-header .kadence-sticky-header {
  background-color: transparent !important;
}

.theme-logo .badge,
.theme-logo .card-button {
  background-color: #463A2C;
  color: #EFE3D8;
}

.theme-logo .chevron-circle {
  background-color: #EFE3D8;
}

.theme-logo .chevron-triangle {
  color: #463A2C;
}
