
/*
Theme Name:     Stargraf Child
Theme URI:      https://stargraf.com/
Description:    Child theme for the Stargraf theme
Author:         Votre Nom
Author URI:     https://stargraf.com/
Template:       sgstargraf
Version:        4.1
Text Domain:    sgstargraf-child
*/

/* Import the parent theme's style.css */
@import url("../sgstargraf/style.css");

/* Custom styles go here */
p{
	margin-bottom: 0.75em;
}


.elementor-button-content-wrapper{
	align-items: center;
}
.elementor-button-icon{
	line-height: 0;
}

.elementor-widget-n-accordion .e-n-accordion-item-title .e-n-accordion-item-title-text {
	color: var(--n-accordion-title-normal-color);
}

.elementor-location-header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	opacity: 1;
	transform: translateY(0);
	transition: none; /* Pas de transition par défaut */
}

.elementor-location-header.sg-header-sticky-prepare {
	/* Préparation sans transition */
	position: fixed;
	box-shadow: none;
	opacity: 0;
	transform: translateY(-100%); /* Fait remonter le header */
}

.elementor-location-header.sg-header-sticky {
	/* Transition appliquée après la préparation */
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Transition pour sticky */
}

.elementor-location-header.sg-header-sticky > .elementor-element, .elementor-location-header.sg-header-sticky > .elementor-element > .elementor-element{
	background-color: transparent !important;
}

.elementor-location-header.sg-header-sticky > .elementor-element .elementor-widget-icon,
.elementor-location-header.sg-header-sticky > .elementor-element .elementor-widget-polylang-language-switcher,
.elementor-location-header.sg-header-sticky > .elementor-element .elementor-icon-list-item{
	margin-top: -6px;
}

.elementor-location-header.sg-header-sticky > .elementor-element:before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: auto;
	display: block;
	background-color: var( --e-global-color-d649f98 );
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre ajoutée pour le sticky */
}

.elementor-location-header.sg-header-sticky .elementor-widget-theme-site-logo img{
	width: 130px !important;
}

.elementor-location-header.sg-header-sticky .elementor-divider{
	display: none;
}


@media (max-width: 767px) {
  .elementor-31.sg-header-sticky.sg-header-sticky-visible .elementor-element.elementor-element-81f02c4 .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-nav-menu--dropdown, .elementor-31.sg-header-sticky.sg-header-sticky-visible .elementor-element.elementor-element-81f02c4 .elementor-nav-menu__container.elementor-nav-menu--dropdown{
    margin-top: 10px !important;
  }
}

.elementor-location-header.sg-header-sticky.sg-header-sticky-visible {
	opacity: 1;
	transform: translateY(0); /* Fait apparaître le header */
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Applique la transition pour la visibilité */
}


.elementor-location-header.sg-header-sticky > .elementor-element .elementor-icon-list-item:not(:hover) .elementor-icon-list-text{
	color:var(--e-global-color-a86e9b2) !important;
}

body[data-elementor-device-mode="mobile"] .elementor-location-header.sg-header-sticky .elementor-widget-theme-site-logo img{
	width: 105px !important;
}
body[data-elementor-device-mode="tablet"] .elementor-location-header.sg-header-sticky .elementor-widget-theme-site-logo img{
	width: 120px !important;
}

body[data-elementor-device-mode="tablet"] .elementor-location-header.sg-header-sticky > .elementor-element .elementor-widget-icon,body[data-elementor-device-mode="tablet"] .elementor-location-header.sg-header-sticky > .elementor-element .elementor-icon-list-item{
	margin-top: -14px;
}

.sgc-timeline .timeline-item {
  position: relative;
  min-height: 120px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.sgc-timeline .timeline-item:before {
  position: absolute;
  bottom: 10px;
  display: block;
  content: '';
  transform: translateX(-50%);
}

.sgc-timeline .timeline-item .timeline-pin {
  font-size: 30px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.sgc-timeline .timeline-item .timeline-pin > div {
  line-height: 0;
}

.sgc-timeline .timeline-item:last-child {
  min-height: 0;
}

.sgc-timeline .timeline-item:last-child::before {
  display: none;
}

body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate .timeline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  flex-wrap: wrap;
}

body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-right .timeline-item,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even),
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) {
  text-align: right;
  align-self: start;
}

body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-right .timeline-item::before,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even)::before,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd)::before {
  transform: translateX(50%);
}

body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-right .timeline-item .timeline-pin,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even) .timeline-pin,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) .timeline-pin {
  right: 0;
  left: auto;
}

body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-left .timeline-item,
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(even),
body[data-elementor-device-mode=mobile] .sgc-timeline-align-sm-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(odd) {
  text-align: left;
}

body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate .timeline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  flex-wrap: wrap;
}

body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-right .timeline-item,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even),
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) {
  text-align: right;
  align-self: start;
}

body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-right .timeline-item::before,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even)::before,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd)::before {
  transform: translateX(50%);
}

body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-right .timeline-item .timeline-pin,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even) .timeline-pin,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) .timeline-pin {
  right: 0;
  left: auto;
}

body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-left .timeline-item,
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(even),
body[data-elementor-device-mode=tablet] .sgc-timeline-align-md-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(odd) {
  text-align: left;
}

body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate .timeline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  flex-wrap: wrap;
}

body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-right .timeline-item,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even),
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) {
  text-align: right;
  align-self: start;
}

body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-right .timeline-item::before,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even)::before,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd)::before {
  transform: translateX(50%);
}

body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-right .timeline-item .timeline-pin,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(even) .timeline-pin,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(odd) .timeline-pin {
  right: 0;
  left: auto;
}

body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-left .timeline-item,
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-left .timeline-item:nth-child(even),
body[data-elementor-device-mode=desktop] .sgc-timeline-align-lg-alternate.sgc-timeline-alt-first-right .timeline-item:nth-child(odd) {
  text-align: left;
}

.sgc-timeline-rounded-sm .timeline-pin {
  border-radius: 8px;
}

.sgc-timeline-rounded-md .timeline-pin {
  border-radius: 15px;
}

.sgc-timeline-rounded-lg .timeline-pin {
  border-radius: 20px;
}

body[data-elementor-device-mode=desktop] .elementor-31.sg-header-sticky-visible .elementor-element.elementor-element-53b3349{
	padding: 15px 50px;
}

/* Section: partials/shortcodes/expandable-cards */
@keyframes sg_heading_animation {
  0% {
    transform: rotate(270deg) translate(0%, -100%);
    opacity: 1;
  }

  10% {
    transform: rotate(270deg) translate(-100px, -100%);
    opacity: 0;
  }

  20% {
    transform: rotate(360deg) translate(-100px, -100%);
    opacity: 0;
  }

  30% {
    transform: rotate(360deg) translate(-50px, 0%);
    opacity: 0;
  }

  80% {
    transform: rotate(360deg) translate(-50px, 0%);
    opacity: 0;
  }

  100% {
    transform: rotate(360deg) translate(0%, 0%);
    opacity: 1;
  }
}

@keyframes sg_content_animation {
  0% {
    transform: rotate(360deg) translate(-50px, 0%);
    opacity: 0;
  }

  80% {
    transform: rotate(360deg) translate(-50px, 0%);
    opacity: 0;
  }

  100% {
    transform: rotate(360deg) translate(0%, 0%);
    opacity: 1;
  }
}

.sgc-expandable-cards .sgc-expandable-cards-container {
  display: flex;
  flex-direction: column;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item:not(:last-child) {
  margin-bottom: 20px;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .card-link {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top {
  z-index: 3;
  width: fit-content;
  height: fit-content;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top .content-top-number {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top .content-top-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil {
  align-items: center;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil .expandable-cards-item-content {
  z-index: 3;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil .expandable-cards-item-content .expandable-cards-item-text-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil .expandable-cards-item-content .expandable-cards-item-text-content .sgc-ec-heading {
  width: 100%;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil .expandable-cards-item-content .expandable-cards-item-text-content p {
  display: block;
  width: 100%;
  height: fit-content;
  max-height: fit-content;
}

.sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active-mobil .expandable-cards-item-content .expandable-cards-item-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .sgc-expandable-cards .sgc-expandable-cards-container {
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    transition: width 300ms cubic-bezier(.4, 0, .2, 1) 0s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    justify-content: space-between;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .card-link {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top {
    z-index: 3;
    width: fit-content;
    height: fit-content;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top .content-top-number {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-content-top .content-top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-item-content {
    z-index: 3;
    width: 100%;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-item-content .sgc-ec-heading {
    transition: transform 400ms cubic-bezier(.4, 0, .2, 1) 0s;
    transform: rotate(270deg) translate(0%, 100%);
    transform-origin: left bottom;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-item-content p {
    display: none;
    overflow: hidden;
    margin-bottom: 0;
    transition: transform 400ms cubic-bezier(.4, 0, .2, 1) 0s;
    transform: translate(-50px, 0%);
    opacity: 0;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item .expandable-cards-item-button {
    display: none;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content {
    display: flex;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content.expandable-cards-item-content-align-left {
    flex-direction: row;
    align-items: flex-end;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content.expandable-cards-item-content-align-left .expandable-cards-item-text-content {
    width: calc(100% - 30px);
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content.expandable-cards-item-content-align-center {
    flex-direction: column;
    align-items: center;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content.expandable-cards-item-content-align-right {
    flex-direction: row-reverse;
    align-items: flex-end;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content.expandable-cards-item-content-align-right .expandable-cards-item-text-content {
    width: calc(100% - 30px);
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content .expandable-cards-item-text-content .sgc-ec-heading {
    width: 100%;
    animation: sg_heading_animation 600ms ease-out forwards;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content .expandable-cards-item-text-content p {
    display: block;
    width: 100%;
    height: fit-content;
    max-height: fit-content;
    animation: sg_content_animation 900ms ease-out forwards;
    opacity: 1;
  }

  .sgc-expandable-cards .sgc-expandable-cards-container .sgc-expandable-cards-item.sgc-expandable-cards-active .expandable-cards-item-content .expandable-cards-item-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}