/* #region font */
.exo-2-semibold {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.tektur-regular {
    font-family: "Tektur", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.exo-2-semibold {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.exo-2-bold {
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.lato-thin {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.lato-light {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.lato-bold {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.lato-black {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.lato-thin-italic {
    font-family: "Lato", sans-serif;
    font-weight: 100;
    font-style: italic;
}

.lato-light-italic {
    font-family: "Lato", sans-serif;
    font-weight: 300;
    font-style: italic;
}

.lato-regular-italic {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.lato-bold-italic {
    font-family: "Lato", sans-serif;
    font-weight: 700;
    font-style: italic;
}

.lato-black-italic {
    font-family: "Lato", sans-serif;
    font-weight: 900;
    font-style: italic;
}

/* #endregion font */

:root {
    --white: #ffffff;
    --black: #000000;
    --gray: #b8bbc2;
    --green: #baec4d;
    --purple-light: #543994;
    --purple: #3e3173;
    /* --space-sm: 5px;
    --space: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    --space-2xl: 50px; */

    --rounded: 40px;

    --background-color: var(--black);
    --forground-color: var(--white);
    --card-background-color: #1a1919;
    --color-primary: var(--green);

    --text-color: var(--white);

    --overlay-depth: 40px;

    --max-width: 1440px;
    /* --background-outer-gap: var(--space);
    --header-height: 107px;
    --header-logo-height: 40px;
    --header-logo-width: 40px;
    --logo-gutter-depth: calc(var(--header-logo-height) + var(--space));
    --root-text-size: 10px; */

    /* 
    https://typescale.net/
    * Type Scale with Base: 1rem, Ratio: 1.250
    * Generated with TypeScale Generator
    * https://baseline.is/tools/type-scale-generator/
    */
    /* --text-size: clamp(1.4rem, 1vw + var(--root-text-size), 1.7rem);
    --text-size-xs: clamp(1.2rem, 1vw + var(--root-text-size), 1.5rem);
    --text-size-sm: clamp(1.3rem, 1vw + var(--root-text-size), 1.6rem);
    --text-size-md: 1rem;
    --text-size-lg: 1.25rem;
    --text-size-xl: 1.56rem;
    --text-size-heading1: clamp(3.6rem, 6vw + var(--root-text-size), 5rem);
    --text-size-heading2: clamp(3rem, 6vw + var(--root-text-size), 4.4rem);
    --text-size-heading3: clamp(2.8rem, 6vw + var(--root-text-size), 4rem);
    --text-size-heading4: clamp(2.6rem, 6vw + var(--root-text-size), 3.8rem);
    --text-caption: clamp(1.2rem, 1vw + var(--root-text-size), 1.5rem);
    --text-size-2xl: 1.95rem;
    --text-size-3xl: 2.44rem;
    --text-size-4xl: 3.05rem;
    --text-size-5xl: 3.81rem; */
    --automatic-container: min(1440px, 100% - 2rem);
}

html {
    box-sizing: border-box;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    scroll-behavior: smooth;
    background-color: var(--white);
}

@media (width <48rem) {
    html {
        background-color: var(--black);
    }
}


main>* {
    max-width: var(--automatic-container);
    margin-inline: auto;
}

footer>* {
    max-width: var(--automatic-container);
    /* padding-block: 4.5rem; */
    margin-inline: auto;
}

*,
::before,
::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/* #region blur frame - Fast Version */
/* .hero-blur-container {
    overflow: visible;
    contain: content; 
    content-visibility: auto;
}

.blur-frame span {
    display: inline-block;
    opacity: 0;
    transform: scale(1.1);
    filter: blur(15px);
    will-change: transform, opacity, filter;
    animation: smoothBlurIn 0.4s ease-out forwards;
}

.blur-frame span.grad {
    animation-name: smoothBlurInSeason;
}

.blur-frame span:nth-child(1) { animation-delay: 0.05s; }
.blur-frame span:nth-child(2) { animation-delay: 0.10s; }
.blur-frame span:nth-child(3) { animation-delay: 0.15s; }
.blur-frame span:nth-child(4) { animation-delay: 0.20s; }

.blur-frame:nth-child(3) span:nth-child(1) { animation-delay: 0.35s; }
.blur-frame:nth-child(3) span:nth-child(2) { animation-delay: 0.40s; }
.blur-frame:nth-child(3) span:nth-child(3) { animation-delay: 0.45s; }

@keyframes smoothBlurIn {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
        color: white;
    }
}

@keyframes smoothBlurInSeason {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
        color: transparent; 
    }
} */
/* #endregion */

svg {
    display: inline-block;
    width: 24px;
    height: 24px;
}

a.underline {
    padding: 0;
    text-decoration: unset;
    position: relative;
}

a.underline::after {
    content: "";
    display: inline-block;
    background-color: var(--white);
    position: absolute;
    left: 0;
    transition: width ease-out 0.2s;
}

a.underline.line::after {
    width: 20%;
    height: 2px;
    color: var(--green);
    bottom: -5px;
}

a.underline.dot::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    bottom: -5px;
    left: 50%;
    background-color: var(--green);
    transform: translateX(-50%);
    visibility: hidden;
}

/* From Uiverse.io by McHaXYT */
.button {
    padding: 15px 20px;
    border: none;
    outline: none;
    background-color: #151515;
    color: #eee;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-out;
}

.button:hover {
    transform: translateY(-3px);
    background-color: var(--green);
    color: var(--black);
}

.button-span {
    color: #aaa;
}


a.underline.dot:hover::after,
a.underline.dot:hover::after,
#home .card-nav-item[href="/"]::after,
#projects .card-nav-item[href="../projets"]::after,
#services .card-nav-item[href="../services"]::after,
#contact .card-nav-item[href="../contact"]::after,
#projects .card-nav-item[href="./pages/projets"]::after,
#services .card-nav-item[href="./pages/services"]::after,
#contact .card-nav-item[href="./pages/contact"]::after {
    visibility: visible;
}


#home .card-nav-item[href="/"],
#projects .card-nav-item[href="../projets"],
#services .card-nav-item[href="../services"],
#contact .card-nav-item[href="../contact"],
#projects .card-nav-item[href="./pages/projets/"],
#services .card-nav-item[href="./pages/services/"],
#contact .card-nav-item[href="./pages/contact/"] {
    color: var(--green);
}

/* #region header */
header.header {
    opacity: 1;
    z-index: 50;
    padding-top: 8px;
    color: var(--white);
    transition: transform ease-out 0.1s;
}

.header .nav {
    max-width: var(--automatic-container);
    margin-inline: auto;
    filter: url("#goo");
    z-index: 20;
}

/* 2. La forme noire avec le creux */
.nav-shape {
    inset: 0;
    background-color: var(--black);
    clip-path: polygon(0% 0%, 38% 0%, 41% 50px, 59% 50px, 62% 0%, 100% 0%, 100% 100%, 0% 100%);
}


.nav-patch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 24%;
    height: 50px;
    background-color: var(--white);
    z-index: 0;
    /* display: none;

    @media (width >=48rem) {
        display: block;
    } */
}

header.header.scrolled .nav-patch {
    background-color: var(--white);
}


.header .nav .nav-items {
    display: flex;
    align-items: center;
}

.nav-items a {
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 500;
    border-color: rgba(0, 0, 0, 0.2);
}



.logo-container img {
    width: 40px;
    height: 40px;
}


.logo-container-contact {
    position: absolute;
    left: 50%;
    transition: transform 0.3s ease;
    transform: translateX(-50%);
    padding: 0;
    top: 12px;
    z-index: 30;

    @media (width >=48rem) {
        left: 50%;
        top: 20px;
    }
}

.logo-cover {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.logo-cover img {
    width: 3rem;
    height: 3rem;
    color: var(--accent);
}

.logo-cover-contact svg {
    width: 3rem;
    height: 3rem;
    color: var(--white);
}

header.header.scrolled .nav .logo-container-contact .logo-cover-contact svg {
    color: var(--accent);
}


.mobile-menu.open {
    transform: translateX(0);
}

header.header .cta {
    display: none;
}

header.header.scrolled .nav .menu-icon button svg {
    color: var(--black);
}

button {
    border: none;
    cursor: pointer;
    font-weight: 400;
    font-family: 'Nunito', sans-serif;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
}

.card-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
}

.navigation .nav-link {
    color: var(--white);
}

.navigation .nav-link:hover {
    color: var(--accent);
}

body.menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    transform: translateX(-100%);
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;

}

.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.875rem;
    z-index: 9999;
    cursor: pointer;
    color: #fcfdff;
}

.mobile-menu .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 20px;
    width: 100%;
    padding: 8px;
    color: var(--white);
    justify-content: center;
    /* margin-block-start: 1.5rem;
    margin-block-end: 1.5rem;
    padding-inline: 2rem; */
    z-index: 50;
}

.mob-link {
    font-size: 2rem;
    color: var(--white);
}

/* #endregion header */


/* #region brands */
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    display: flex;          /* déjà géré par Tailwind flex, mais à confirmer */
    width: max-content;     /* laisse le flex-track prendre sa vraie largeur */
    animation: scroll 20s linear infinite;
    will-change: transform;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* #endregion brands */

/* #region tag */

.tag-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgb(75, 85, 99);
    color: rgb(209, 213, 219);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s;
    cursor: default;
}

/* .tag-btn:hover {
    border-color: white;
    color: white;
} */

.work-item:hover .tag-btn {
    border-color: rgb(156, 163, 175);
}

.group\/link:hover {
    gap: 0.75rem;
}

/* #endregion tag */


/* #region faq */

/* Custom animations for details/summary */
details>p {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* Hide default marker */
summary {
    list-style: none;
    cursor: pointer;
}

summary::-webkit-details-marker {
    display: none;
}

/* Custom animation for accordion icon */
.accordion-icon {
    transition: transform 0.3s ease;
}

details[open] .accordion-icon {
    transform: rotate(180deg);
}

/* Custom hover effect for details */
details {
    transition: all 0.3s ease;
}

/* Gradient background animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* #endregion faq */


@keyframes scan {
    0% {
        transform: translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.line-anim {
    animation: scan 3s infinite linear;
    background: linear-gradient(to bottom, transparent, #fff, transparent);
}

/* #region animation-bas-haut */
.scroll-anim {
    opacity: 0;
    
    /* Départ : uniquement vers le bas (Y) + léger scale */
    transform: translateY(40px) scale(0.95);

    transition: 
        opacity 1s ease-out, 
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: transform, opacity;
}

/* Sur mobile, on réduit un peu la distance pour éviter les saccades */
@media (max-width: 768px) {
    .scroll-anim {
        transform: translateY(30px) scale(0.98);
    }
}

.scroll-anim.active {
    opacity: 1;
    /* Arrivée : position d'origine */
    transform: translateY(0) scale(1);
}

/* --- Délais pour l'effet de cascade (Stagger) --- */
/* On les applique uniquement quand l'élément est actif pour éviter les bugs de scroll */

.anim-1.active { transition-delay: 0.1s; }
.anim-2.active { transition-delay: 0.2s; }
.anim-3.active { transition-delay: 0.3s; }
.anim-4.active { transition-delay: 0.4s; }

/* #endregion */


/* #region Animation Rotate & Zoom */
.scroll-rotate {
    opacity: 0;
    /* Départ : Zoom réduit + Rotation */
    transform: scale(0.5) rotate(-15deg);

    /* Transition fluide avec un effet de ressort (cubic-bezier) */
    transition:
        opacity 1s ease-out,
        transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    will-change: transform, opacity;
}

/* Sur mobile, on réduit un peu l'intensité pour éviter les bugs de débordement */
@media (max-width: 768px) {
    .scroll-rotate {
        transform: scale(0.8) rotate(-10deg);
    }
}

.scroll-rotate.active {
    opacity: 1;
    /* Arrivée : Taille réelle + Pas de rotation */
    transform: scale(1) rotate(0deg);
}

/* #endregion */
/* #endregion */


/* #region text animation */
/* --- Effet Reveal (Ligne 1) --- */
.reveal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.reveal-sub {
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: revealWidth 6s infinite;
}

@keyframes revealWidth {
    0%, 20% { width: 0; opacity: 0; }
    35%, 80% { width: 220px; opacity: 1; }
    100% { width: 220px; opacity: 0; }
}

/* --- Effet Hachures Lime (Ligne 2) --- */
.workout-effect {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.workout-effect:after {
    content: attr(data-shadow);
    position: absolute;
    top: 0.05em; 
    left: 0.05em;
    z-index: -1;
    text-shadow: none;
    
    /* Utilisation de ta couleur #baec4d avec opacité pour les lignes */
    background-image: linear-gradient(
        45deg,
        transparent 45%,
        #baec4d 45%,
        #baec4d 55%,
        transparent 0
    );
    background-size: 0.05em 0.05em;
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shad-anim 10s linear infinite;
}

@keyframes shad-anim {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}
/* #endregion text animation */


.line-glow {
    position: absolute;
    width: 0.5px; /* Légèrement plus visible pour le dégradé */
    height: 40rem;
    /* Dégradé : Blanc (80%) -> Blanc (20%) -> Transparent */
    background: linear-gradient(
        to top, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(0, 0, 0, 0) 100%
    );
    /* Optionnel : Une petite lueur pour donner l'aspect "lumineux" */
    /* box-shadow: 0 0 10px 0.5px rgba(255, 255, 255, 0.2); */
}