/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


.elementor .btn-filled {
  background-size: 200% 100%;
  background-position: 100% 0;

  &:hover,
  &:focus-visible {
    background-position: 0 0;
  }
}


/* Logo Kyeo — V14 */
header {
  .brand-home {
    display: grid;
    place-items: center;
    margin-inline: auto;
    width: clamp(8.75rem, 12vw, 10.5rem);
    height: clamp(3rem, 4vw, 3.375rem);
    color: #292928;
    text-decoration: none;

    .logo-reveal {
      display: block;
      width: clamp(8.125rem, 10.5vw, 9.375rem);
      height: auto;
      overflow: visible;
    }

    /* Styles communs */
    .brand-left,
    .brand-right,
    .brand-bolt {
      fill: currentColor;
    }

    /* Lettres masquées par défaut */
    .brand-left,
    .brand-right {
      opacity: 0;
      transition:
        opacity .22s,
        transform .32s cubic-bezier(.2, .75, .25, 1);
    }

    .brand-left {
      transform: translateX(70px);
    }

    .brand-right {
      transform: translateX(-70px);
    }

    /* Éclair centré au repos */
    .brand-bolt {
      transform: translateX(40px);
      transition:
        transform .32s cubic-bezier(.2, .75, .25, 1),
        fill .3s;
    }

    /* Desktop : ouverture au hover */
    @media (hover: hover) and (pointer: fine) {
      &:hover {
        .brand-left,
        .brand-right {
          opacity: 1;
          transform: none;
        }

        .brand-bolt {
          transform: none;
          fill: #85837F;
        }
      }
    }

    /* Tablette / mobile : logo toujours ouvert */
    @media (hover: none) {
      .brand-left,
      .brand-right {
        opacity: 1;
        transform: none;
      }

      .brand-bolt {
        transform: none;
        fill: #85837F;
      }
    }

    /* Accessibilité : navigation clavier */
    &:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 4px;

      .brand-left,
      .brand-right {
        opacity: 1;
        transform: none;
      }

      .brand-bolt {
        transform: none;
        fill: #85837F;
      }
    }

    /* Accessibilité : réduction des animations */
    @media (prefers-reduced-motion: reduce) {
      .brand-left,
      .brand-right,
      .brand-bolt {
        transition: none;
      }
    }
  }
}


.heroo {
  min-height: 100vh;
  min-height: 100dvh;
}


h1::before {
  content: "";
  display: inline-block;
  width: .5rem;
  height: .5rem;
  margin-right: .8125rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}

.hero-signature-line {
  em {
    color: var(--color-muted);
    font-style: normal;
  }
}

.intro-title {
  em {
    color: var(--color-muted);
    font-style: normal;
  }
}

.menu-skill {
    &[role="tab"] {
      white-space: normal;
    }

    .tab-dot {
      flex-shrink: 0;
    }

    &[aria-selected="true"] {
      .tab-dot {
        background: #ddd8d0;
        border-color: #ddd8d0;
        box-shadow: 0 0 0 4px #ddd8d01c;
      }
    }
  }


.work-tabs {
  [role="tabpanel"] {
    animation: panel-in 0.34s ease-out both;
  }
}

@keyframes panel-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    [role="tabpanel"] {
      animation: none;
    }
  }
	

.cms-pair {
  article {
    isolation: isolate;

    &::before {
      position: absolute;
      top: -.13em;
      right: -.045em;
      left: auto;
      width: auto;
      z-index: 0;

      font-family: var(--font-heading);
      font-size: clamp(14.375rem, 25vw, 24.375rem);
      font-weight: 600;
      line-height: 1;
      letter-spacing: -.13em;

      pointer-events: none;
      user-select: none;
    }

    > * {
      position: relative;
      z-index: 1;
    }

    &:first-child::before {
      content: "W";
      color: #DDDAD5;
    }

    &:last-child::before {
      content: "P";
      color: #3F3D39;
      right: .03em;
    }
  }
}


.names {
  strong {
    font-weight: 700;
  }

  em {
    font-style: normal;
    color: #C5BFB6;
  }
}

.floating-cta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
	
	& p {
		white-space: nowrap;
	}
	
	&.is-visible {
  		opacity: 1;
  		visibility: visible;
  		pointer-events: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
  }
}
