/*
Theme Name: lbb-theme
Theme URI: https://labaleinebasque.fr
Description: La Baleine Basque Theme
Author: Anthony Sabatier
Author URL: https://labaleinebasque.fr
Template: hello-elementor
Version: 1.0.29
License: GNU General Public License v2 or later
License URL: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hello-elementorchild
*/

/* Global  */

.section-title h2,
.section-title-alt h2,
.page-title h1 {
  position: relative;
  z-index: 99;
}

.section-title > .elementor-widget-container > .elementor-heading-title:before {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  background-size: cover;
  z-index: -1;
}

.shape-1 > .elementor-widget-container > .elementor-heading-title:before {
  background-image: url("/wp-content/uploads/2025/07/1.png");
}
.shape-2 > .elementor-widget-container > .elementor-heading-title:before {
  background-image: url("/wp-content/uploads/2025/07/2.png");
}
.shape-3 > .elementor-widget-container > .elementor-heading-title:before {
  background-image: url("/wp-content/uploads/2025/07/3.png");
}
.shape-4 > .elementor-widget-container > .elementor-heading-title:before {
  background-image: url("/wp-content/uploads/2025/07/4.png");
}
.shape-5 > .elementor-widget-container > .elementor-heading-title:before {
  background-image: url("/wp-content/uploads/2025/07/5.png");
}

.page-title h1:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50px;
  width: 150px;
  height: 150px;
  background-image: url("/wp-content/uploads/2025/07/3.png");
  background-size: cover;
  z-index: -1;
}

.shape-top-right
  > .elementor-widget-container
  > .elementor-heading-title:before {
  top: -50%;
  right: -50px;
}
.shape-top-left
  > .elementor-widget-container
  > .elementor-heading-title:before {
  top: -50%;
  left: -50px;
}
.shape-bottom-left
  > .elementor-widget-container
  > .elementor-heading-title:before {
  bottom: -50%;
  left: -50px;
}
.shape-bottom-right
  > .elementor-widget-container
  > .elementor-heading-title:before {
  bottom: -50%;
  right: -75px;
}

.titre-mentions .elementor-heading-title {
  position: relative;
  z-index: 1;
}

.titre-mentions .elementor-heading-title::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 75px;
  background: #f37021;
  border-radius: 100px;
  left: -50px;
  top: -10px;

  z-index: -1;
}

div.post.type-post .wp-block-group {
  margin: 36px 0;
}

div.post.type-post .wp-block-group .wp-block-heading {
  color: #014260;
}

/* Header  */

.sub-menu-link a {
  color: #002f4b;
  font-weight: 600;
  transition: 0.2s ease-in;
}

.sub-menu-link a:hover {
  font-weight: 600;
}

/* Chaque item */
.faq-item {
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

/* Bouton question (état fermé) */
.faq-question {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  border: none;
  background-color: var(--e-global-color-primary); /* #7ED7FF */
  color: var(--e-global-color-ec33039); /* #F5F5F5 */
  cursor: pointer;
  position: relative;
  transition: background 0.3s, color 0.3s;
}
.faq-question::after {
  content: "▼";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s, color 0.3s;
  color: var(--e-global-color-ec33039); /* flèche blanche */
  font-size: 0.8rem;
}

.faq-item:hover .faq-question::after {
  color: var(--e-global-color-primary);
}

/* État “ouvert” */
.faq-item.active .faq-question {
  background-color: var(--e-global-color-ec33039); /* #F5F5F5 */
  color: var(--e-global-color-primary); /* #014260 */
}
.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
  color: var(--e-global-color-primary);
}

.faq-item:hover .faq-question,
.faq-item:focus .faq-question {
  background-color: var(--e-global-color-ec33039);
  color: var(--e-global-color-primary);
}

/* Contenu réponse */
.faq-answer {
  display: none;
  background-color: var(--e-global-color-ec33039); /* #F5F5F5 */
  color: var(--e-global-color-text); /* #333333 */
  padding: 16px 24px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  display: block;
}

/* -------------------------
   CTA - Animation baleine
---------------------------- */
.cta-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.baleine {
  position: absolute;
  width: 80px;
  height: auto;
  pointer-events: none;
  display: none;
  z-index: 999;
  transition: transform 0.2s ease;
  will-change: transform, top, left;
}

/* -------------------------------------------------
   Elements déroulants - SECTION - Services généraux
---------------------------------------------------- */
.toggle-service-title {
  cursor: pointer;
}

.toggle-service-title h3:hover {
  color: #f97300;
}

.toggle-service-icon {
  width: 25px;
  height: 25px;
  margin-top: 5px;
  transition: transform 0.3s ease;
}

.toggle-service-icon.rotate {
  transform: rotate(90deg);
}

.toggle-service-content {
  max-height: 0 !important;
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
  display: block;
}

.toggle-service-content.open {
  max-height: 1500px !important; /* Ajuste selon ton contenu */
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ------------------------------
   Effet glossy - Services cards
--------------------------------- */
.elementor.elementor-3456 .glossy-card {
  position: relative;
  overflow: hidden;
  background-color: #eee !important;
}

.elementor.elementor-3456 .glossy-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.5s ease-in-out;
  pointer-events: none;
  z-index: 2;
  filter: blur(1px);
}

.elementor.elementor-3456 .glossy-card:hover::before {
  transform: rotate(25deg) translateX(100%);
}

/* Alternance des backgrounds sur les cartes */
.elementor.elementor-3456 .e-loop-item:nth-of-type(odd) .glossy-card {
  background: linear-gradient(135deg, #e0e0e0, #ffffff) !important;
  color: #111 !important;
}

.elementor.elementor-3456 .e-loop-item:nth-of-type(even) .glossy-card {
  background: linear-gradient(135deg, #222222, #444444) !important;
  color: #fff !important;
}

/* ---------------------
   Single Service
------------------------ */
/* Liste des étapes */

.swiper-container {
  overflow: hidden;
}

.etape {
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid #b5b5b5;
  padding: 15px;
  text-align: center;
}

.etape-numero {
  color: #7ED7FF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.etape-titre {
  color: #014260; 
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 800;
}

.etape-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.etape-logo img {
  max-height: 50px;
  display: block;
  margin: auto;
}

.swiper-button-next, .swiper-button-prev {
 top: -40px !important; 
 width: 20px !important;      
 height: 20px !important;
}

.swiper-button-prev {
  left: 90% !important;
}

.swiper-pagination {
  bottom: -40px !important;
}

@media (max-width: 768px) {
  .liste-etapes {
  justify-content: center;
}

.etape {
  width: 100%;
}
}

/* Expertises associées */
.expertises-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.expertise-card a{
  display: flex;
  align-items: center;
  justify-content: start;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 5px 5px 4px #f2f2f2, -5px -5px 4px #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card img {
  width: 40px;
  height: auto;
  border-radius: 8px;
  margin-right: 16px;
}

.expertise-card h4 {
  font-size: 15px;
}

/* -------------------------
   Single Expertise
---------------------------- */

#summary-toc > ol {
  font-size: 1rem;
  padding-left: 20px;
}

#summary-toc > ol ol {
  padding-left: 20px;
}

.realisation-card a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

.realisation-card img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  border-radius: 4px;
}

.realisation-card h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  color: #014260;
}

.realisation-card {
  background-color: white;
  padding: 0;
  margin-bottom: 16px;
  box-shadow: none;
  transition: 0.2s ease-in;
}

.realisation-card:hover {
  background-color: #7ed7ff;
}

.content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
}

.content__text {
  text-align: left;
}

@media (max-width: 768px) {
  .content__grid {
    grid-template-columns: 1fr;
  }
}

/*houdini*/
@property --blink-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

/* #fallback @keyframes blink-animation {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}*/

@keyframes blink-animation {
  0%,
  100% {
    opacity: var(--blink-opacity, 1);
  }
  50% {
    opacity: 0;
  }
}
/*houdini*/

/*base*/
:root {
  font-family: Inter, sans-serif;

  --stripe-color: #fff;
  --bg: var(--stripe-color);
  --maincolor: var(--bg);
}

/*custom*/

@keyframes smoothBg {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

.wrapper {
  width: 100%;
  height: auto;
  position: relative;
}

.hero {
  width: 100%;
  height: 100%;
  min-height: 600px;
  position: relative;
  display: flex;
  place-content: center;
  place-items: center;
  --stripes: repeating-linear-gradient(
    100deg,
    var(--stripe-color) 0%,
    var(--stripe-color) 7%,
    transparent 10%,
    transparent 12%,
    var(--stripe-color) 16%
  );

  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;

  filter: blur(10px) invert(100%);

  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--stripes), var(--rainbow);
    background-size: 200%, 100%;
    animation: smoothBg 60s linear infinite;
    background-attachment: fixed;
    mix-blend-mode: difference;
  }
}

:has(:checked) {
  --stripe-color: #000;
}
:has(:checked) .hero,
:has(:checked) .hero::after {
  filter: blur(10px) opacity(50%) saturate(200%);
}

.content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  place-content: center;
  place-items: center;
  flex-flow: column;
  gap: 4.5%;
  text-align: center;
  mix-blend-mode: difference;
  -webbkit-mix-blend-mode: difference;
  filter: invert(1);
}

.h1--scalingSize {
  font-size: calc(1rem - -5vw);
  position: relative;
}

#switch {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
}

[for="switch"] {
  cursor: pointer;
  transition: 0.15s linear(0 0%, 0.16 16.85%, 0.32 31.73%, 1 100%);
  will-change: transform, font-weight;
  padding: 0.5rem;
}

[for="switch"]:where(:hover, :active, :focus-within) {
  /*transform: scale(1.2);
  font-weight: 900;*/
  transition: 0.3s ease;
  animation: animSwitch 0.2s alternate;
  & .icon {
    animation-play-state: paused;
  }
}

@keyframes animSwitch {
  50% {
    transform: scale(1.2);
    font-weight: 900;
  }
}

/*icon houdini*/
.icon {
  width: 1lh;
  height: 1lh;
  aspect-ratio: 1/1;
  padding: 0.25em 0.35rem;
  border-radius: calc(1px / 0);
  border: 1px dashed;
  --blink-opacity: 1;
  animation: blink-animation 2s ease-in-out infinite running;
}

/*challenge*/
.h1--scalingSize::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: white;
  text-shadow: 0 0 1px #ffffff;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: white;
  -webkit-mask: linear-gradient(#000 0 0) luminance;
  mask: linear-gradient(#000 0 0) luminance, alpha;
  backdrop-filter: blur(19px) brightness(12.5);
  -webkit-text-stroke: 1px white;
  display: flex;
  margin: auto;
  z-index: 1;
  pointer-events: none;
}
