/*
Theme Name: Mahina
Theme URI: https://example.com/wp-base-theme
Author: Romain Bourdichon
Author URI: https://example.com
Description: Base block theme minimal for reusable Gutenberg-first WordPress sites.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahina
Tags: block-patterns, custom-colors, custom-logo, editor-style
*/

@font-face {
  font-family: "Syne";
  src: url("assets/fonts/Syne-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Syne Static";
  src: url("assets/fonts/Syne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "Syne Static";
  src: url("assets/fonts/Syne-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: "Syne Static";
  src: url("assets/fonts/Syne-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}

@font-face {
  font-family: "Syne Static";
  src: url("assets/fonts/Syne-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "Syne Static";
  src: url("assets/fonts/Syne-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: block;
}

@font-face {
  font-family: "Raginy";
  src: url("assets/fonts/Raginy-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@property --animate-sentence-left-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.25;
}

@property --animate-sentence-right-opacity {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.75;
}

:root {
  --mahina-color-dark-green: #042F11;
  --mahina-color-light-green: #8cff8b;
  --mahina-color-white: #ffffff;
  --mahina-font-body: "Syne", sans-serif;
  --mahina-font-brand: "Raginy", cursive;
  --mahina-global-padding: 5rem;
  --mahina-section-padding: 6rem;
  --mahina-font-size-xs: 0.875rem;
  --mahina-font-size-sm: 1rem;
  --mahina-font-size-md: 1.25rem;
  --mahina-font-size-lg: 2rem;
  --mahina-font-size-xl: 3rem;
  --mahina-font-size-h4: 1.125rem;
  --mahina-font-size-h5: 1rem;
  --mahina-font-size-h6: 0.875rem;
  --mahina-animate-sentence-size: 4rem;
}

@media (max-width: 960px) {
  :root {
    --mahina-global-padding: 2.5rem;
    --mahina-font-size-xs: 0.875rem;
    --mahina-font-size-sm: 1rem;
    --mahina-font-size-md: 1.125rem;
    --mahina-font-size-lg: 1.75rem;
    --mahina-font-size-xl: 2.5rem;
    --mahina-font-size-h4: 1.0625rem;
    --mahina-font-size-h5: 1rem;
    --mahina-font-size-h6: 0.875rem;
    --mahina-animate-sentence-size: 2.5rem;
  }
}

@media (max-width: 782px) {
  :root {
    --mahina-global-padding: 1.25rem;
    --mahina-font-size-xs: 0.875rem;
    --mahina-font-size-sm: 1rem;
    --mahina-font-size-md: 1.125rem;
    --mahina-font-size-lg: 1.5rem;
    --mahina-font-size-xl: 2.25rem;
    --mahina-font-size-h4: 1rem;
    --mahina-font-size-h5: 1rem;
    --mahina-font-size-h6: 0.8125rem;
    --mahina-animate-sentence-size: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --mahina-global-padding: 1.25rem;
    --mahina-font-size-xs: 0.875rem;
    --mahina-font-size-sm: 1rem;
    --mahina-font-size-md: 1.125rem;
    --mahina-font-size-lg: 1.5rem;
    --mahina-font-size-xl: 2rem;
    --mahina-font-size-h4: 0.9375rem;
    --mahina-font-size-h5: 1rem;
    --mahina-font-size-h6: 0.75rem;
    --mahina-animate-sentence-size: 1.75rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--mahina-color-dark-green);
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.slide-up[data-text-split-ready="true"] {
  opacity: 1;
}

.slide-up .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.slide-up .char {
  display: inline-block;
}

.animate-sentence[data-animate-sentence-ready="true"] {
  white-space: nowrap;
}

.animate-sentence__current {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--mahina-animate-sentence-size);
  color: transparent;
  --animate-sentence-left-opacity: 0.75;
  --animate-sentence-right-opacity: 0.25;
  background-image: linear-gradient(
    90deg,
    rgba(140, 255, 139, var(--animate-sentence-left-opacity)) 0%,
    rgba(140, 255, 139, var(--animate-sentence-right-opacity)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 782px) {
  .animate-sentence[data-animate-sentence-ready="true"] {
    white-space: normal;
  }

  .animate-sentence__current {
    white-space: normal;
    text-wrap: balance;
  }
}

footer {
    position: sticky;
    bottom: 0;
    z-index: 0;
}
main{
  position: relative;
  z-index: 2;
}
header{
  z-index: 3;
}
.site {
  min-height: 100vh;
  background: var(--mahina-color-white);
  color: var(--mahina-color-dark-green);
  font-family: var(--mahina-font-body);
  font-size: 1rem;
  line-height: 1.5;
}

.main {
  min-height: calc(100vh - 8rem);
}

.container {
  width: 100%;
}

.container-small {
  width: min(100%, 780px);
  margin-inline: auto;
  z-index: 1;
}
.titre-drag{
  position: relative;
  z-index: 2;
}

.has-xs-font-size {
  font-size: var(--mahina-font-size-xs) !important;
}

.has-sm-font-size {
  font-size: var(--mahina-font-size-sm) !important;
}

.has-md-font-size {
  font-size: var(--mahina-font-size-md) !important;
}

.has-lg-font-size {
  font-size: var(--mahina-font-size-lg) !important;
}

.has-xl-font-size {
  font-size: var(--mahina-font-size-xl) !important;
}

h1,
.editor-styles-wrapper h1 {
  font-size: var(--mahina-font-size-xl);
}

h2,
.editor-styles-wrapper h2 {
  font-size: var(--mahina-font-size-lg);
}

h3,
.editor-styles-wrapper h3 {
  font-size: var(--mahina-font-size-md);
}

h4,
.editor-styles-wrapper h4 {
  font-size: var(--mahina-font-size-h4);
}

h5,
.editor-styles-wrapper h5 {
  font-size: var(--mahina-font-size-h5);
}

h6,
.editor-styles-wrapper h6 {
  font-size: var(--mahina-font-size-h6);
}

.global-padding {
  padding-left: var(--mahina-global-padding);
  padding-right: var(--mahina-global-padding);
}

.section {
  padding-top: var(--mahina-section-padding);
  padding-bottom: var(--mahina-section-padding);
  position: relative;
}

.has-tag-rain {
  overflow: hidden;
}
.no-underline, .no-underline > *{
text-decoration: none !important;
}
.has-tag-rain > *:not(.tag-rain-layer) {
  position: relative;
  z-index: 1;
}

.tag-rain-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tag-rain-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (pointer: coarse) {
  .tag-rain-canvas {
    pointer-events: none;
    touch-action: pan-y;
  }
}

.section-full-height {
  min-height: 100vh;
}

.section-full-height:not(.is-layout-flex) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.is-large-sticky-height{
  min-height: 400vh;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}
.is-sticky-height{
  min-height: 200vh;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}
.sticky-container{
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.editor-styles-wrapper .is-style-section,
.editor-styles-wrapper .is-style-section-full-height,
.editor-styles-wrapper .is-style-section-full-height-60 {
  padding-top: var(--mahina-section-padding);
  padding-bottom: var(--mahina-section-padding);
  padding-left: var(--mahina-global-padding);
  padding-right: var(--mahina-global-padding);
  position: relative;
}

.editor-styles-wrapper .is-style-section-full-height {
  min-height: 100vh;
}
.editor-styles-wrapper .is-style-section-full-height-60, .min-height{
  min-height: 60vh;
}

.editor-styles-wrapper .is-style-section-full-height:not(.is-layout-flex) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editor-styles-wrapper .is-style-section-full-height.is-layout-flex {
  align-items: center;
}

.wp-block-columns.columns-content-media-split {
  align-items: stretch !important;
}

.wp-block-columns.columns-content-media-split > .wp-block-column {
  display: flex;
  flex-direction: column;
}

.wp-block-columns.columns-content-media-split > .wp-block-column.column-content-center {
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover {
  min-height: 100%;
}

.wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover > .wp-block-image {
  margin: 0;
  height: 100%;
}

.wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover > .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-styles-wrapper .wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover > .wp-block-image,
.editor-styles-wrapper .wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover > .block-editor-media-placeholder {
  height: 100%;
}

.is-inline-flex{
  display: inline-flex !important;
}
.space-between{
  justify-content: space-between;
  width: 100%;
}
.section-service{
  bottom: -1px;
  position: sticky;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.section-service:nth-child(1) { z-index: 10; }
.section-service:nth-child(2) { z-index: 9; }
.section-service:nth-child(3) { z-index: 8; }
.section-service:nth-child(4) { z-index: 7; }
.section-service:nth-child(5) { z-index: 6; }
.section-service:nth-child(6) { z-index: 5; }
.section-service:nth-child(7) { z-index: 4; }
.section-service:nth-child(8) { z-index: 3; }
.section-service:nth-child(9) { z-index: 2; }
.section-service:nth-child(10) { z-index: 1; }
.is-flex-reverse{
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-direction: column-reverse;
}

.mahina-gallery-field {
  margin-top: 2rem;
}

.mahina-gallery-field__preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mahina-gallery-field__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.mahina-gallery-field__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.small-col{
  max-width: 500px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding--text {
  color: var(--mahina-color-light-green);
  font-family: var(--mahina-font-brand);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.menu-btn {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--mahina-color-light-green);
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  transition: color 0.25s ease;
}

.menu-btn.close {
  color: var(--mahina-color-dark-green);
}

.header.is-on-light-section .site-branding--text,
.header.is-on-light-section .menu-btn.open {
  color: var(--mahina-color-dark-green);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.menu-btn.close {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-btn.open .menu-btn-icon {
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}

.menu-btn.open:hover .menu-btn-icon {
  animation-play-state: running;
}

.menu-btn__icon {
  width: 24px;
  height: 24px;
  overflow: hidden;
  flex: 0 0 24px;
}

.menu-btn__icon-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  transform: translate3d(0, 0, 0);
  transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.menu-btn__icon-track .menu-btn-icon {
  display: block;
  flex: 0 0 24px;
}

.menu-btn.close:hover .menu-btn__icon-track,
.menu-btn.close:focus-visible .menu-btn__icon-track {
  transform: translate3d(-44px, 0, 0);
}

.menu-container.global-padding {
  position: fixed;
  inset: 0;
  background: var(--mahina-color-light-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transform-origin: top center;
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.3s ease;
  pointer-events: none;
}

.menu-container.global-padding.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navigation {
  width: 100%;
}

.navigation__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation__list a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.navigation__list a .link-icon {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition:
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.navigation__list a:hover .link-icon,
.navigation__list a:focus-visible .link-icon {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.menu-open {
  overflow: hidden;
}

.entry-content>*:first-child {
  margin-top: 0;
}

.entry-content>*:last-child {
  margin-bottom: 0;
}

.footer {
  padding-top: var(--mahina-section-padding);
  padding-bottom: 0;
}

.footer .container {
  padding-bottom: 64px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.footer-time {
  display: flex;
  justify-content: end;
  gap: 64px;
}

.footer-time-clock-container {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-time-city-container {
  display: flex;
  align-items: start;
  gap: 8px;
}

.footer-time-city {
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.05em;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-time-clock {
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.05em;
  display: flex;
  gap: 8px;
  align-items: start;
}

.footer-time-country,
.footer-time-clock-pm-am {
  font-size: 12px;
  line-height: 125%;
  letter-spacing: -0.03em;
  color: #848484;
}

.footer-text {
  text-align: center;
}

.footer-text span {
  font-weight: 600;
  font-size: var(--mahina-font-size-xl);
  line-height: 100%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}

.footer-menu-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.footer-menus {
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

.footer-menu-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 420px;
  width: 100%;
  align-items: end;
}

.footer-menu-list-links {
  width: 100%;
}

.footer-menu-nav,
.footer-menu-links {
  width: 100%;
}

.footer-menu-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: end;
}

.footer-menu-links a {
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-menu-links a:hover {
  opacity: 0.6;
  color: var(--mahina-color-dark-green);
}

@media (max-width: 782px) {
  .is-flex-reverse {
    flex-direction: column;
    gap: 2rem;
  }

  .is-flex-reverse > div:first-child {
    transform: scale(0.75);
    transform-origin: left top;
  }
}

@media (max-width: 782px) {
  .navigation__list {
    flex-direction: column;
  }

  .section-service {
    position: static;
    bottom: auto;
  }

  .footer-time {
    gap: 32px;
  }

  .footer-time-clock-container {
    gap: 16px;
  }

  .footer-time-city,
  .footer-time-clock {
    font-size: 24px;
  }

  .footer-time-city svg {
    width: 6px;
    height: 6px;
  }

  .footer-menus {
    flex-direction: column;
    gap: 32px;
  }

  .footer-menu-container,
  .footer-menu-list-links,
  .footer-menu-nav,
  .footer-menu-links {
    max-width: 100%;
    width: 100%;
  }

}

@media (max-width: 480px) {
  .footer-time {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }

  .footer-menu-container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .footer-time-clock-container {
    min-width: 0;
  }

  .footer-menu-links {
    justify-content: flex-start;
  }
}

.footer-logo {
  display: flex;
}

.error-404__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.discover {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.highlight{
  --highlight-before-progress: 1;
  position:relative;
  display:inline-block;
  isolation: isolate;
  z-index:0;
  margin-bottom: 0.6em;
  color: var(--mahina-color-dark-green);
}
.highlight::before{
  content:"";
  position:absolute;
  left:-0.3em;
  right:calc((100% + 0.3em) - ((100% + 0.6em) * var(--highlight-before-progress)));
  top:-0.3em;
bottom: -0.3em;
  background:var(--mahina-color-light-green);
  border-radius:12px;
  -webkit-filter:url("#organicTexture");
  filter:url(#organicTexture);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: right;
  z-index:-1;
}

svg.svg-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.svg-mouse {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    --svg-mouse-scale: 0.72;
    transform: translate3d(-50%, -50%, 0) scale(var(--svg-mouse-scale));
    transform-origin: center;
    transition: opacity 0.16s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: left, top;
}

.svg-mouse svg:first-of-type {
    transform-origin: center;
    animation: svg-mouse-spin-burst 3s ease infinite;
}

.has-svg-mouse,
.has-svg-mouse * {
    cursor: none;
}

.has-svg-mouse {
    position: relative;
    overflow: clip;
}

.has-svg-mouse.is-svg-mouse-active .svg-mouse {
    opacity: 1;
    --svg-mouse-scale: 1;
}

@keyframes svg-mouse-spin-burst {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@media (max-width: 782px) {

  .container,
  .container-small {
    width: 100%;
  }

  .text-reveal p,
  p.text-reveal,
  .texte-reveal p,
  p.texte-reveal {
    font-size: 1.125rem !important;
  }

  .global-padding {
    padding-left: var(--mahina-global-padding);
    padding-right: var(--mahina-global-padding);
  }

  .editor-styles-wrapper .is-style-section,
  .editor-styles-wrapper .is-style-section-full-height {
    padding-left: var(--mahina-global-padding);
    padding-right: var(--mahina-global-padding);
  }

  .wp-block-columns.columns-content-media-split > .wp-block-column.column-content-center {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .wp-block-columns.columns-content-media-split > .wp-block-column.column-media-cover > .wp-block-image img {
    min-height: 320px;
  }

  .header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .site-branding--text {
    font-size: 1.5rem;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .footer {
    padding-top: 4rem;
    padding-bottom: 0;
  }
}
.home-hero::after {
    content: "";
    position: absolute;
    display: block;
    bottom: 0;
    right: 0;
    left: 0;
    height: 80px;
    background: linear-gradient(0deg, rgba(4, 47, 17, 1) 0%, rgb(4 47 17 / 0%) 100%);
}