:root {
    /* Couleurs Yandee Liquid Light */
    --yandee-orange: #FE8B56;
    --yandee-orange-rgb: 254, 139, 86;
    --yandee-white: #ffffff;
    --yandee-grey-light: #f8f9fa;

    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-muted: rgba(0, 0, 0, 0.4);

    /* Jetons Liquid Glass Crystal */
    --liquid-bg: rgba(255, 255, 255, 0.3);
    --liquid-bg-hover: rgba(255, 255, 255, 0.5);
    --liquid-border: rgba(255, 255, 255, 0.8);
    --liquid-sheen: rgba(255, 255, 255, 1);
    /* Effet cristal pur : flou moyen, saturation boostée, contraste fin */
    --liquid-blur: blur(30px) saturate(220%) contrast(105%);
    --liquid-shadow: 0 12px 40px -10px rgba(254, 139, 86, 0.12),
        0 20px 50px -20px rgba(0, 0, 0, 0.08);

    /* Lumière incidente */
    --specular-high: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, transparent 60%);

    /* Layout */
    --radius-liquid: 24px;
    --radius-pill: 999px;
    --container-max: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--yandee-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* 🧱 Background Abstract Shapes Engine 🧱 */
.abstract-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #fff, #f8f9fa);
    pointer-events: none;
}

.abstract-blob {
    position: absolute;
    background: var(--yandee-orange);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blobMove 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 150px) scale(1.2);
    }
}

#blob1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
}

#blob2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    opacity: 0.1;
}

#blob3 {
    width: 300px;
    height: 300px;
    top: 40%;
    left: 60%;
    opacity: 0.05;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typographie Moderne */
h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text-primary);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* Composant de base Liquid Glass Pro */
.glass-liquid {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--radius-liquid);
    box-shadow: var(--liquid-shadow);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Éclat intérieur (Inner Sheen) pour l'effet matériel */
.glass-liquid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--specular-high);
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
}

.glass-liquid:hover {
    background: var(--liquid-bg-hover);
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-liquid-pill {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--liquid-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cartes Interactives (Spring Physics Feel) */
.liquid-card {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Effet ressort / Spring */
}

.liquid-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.1),
        0 15px 30px -10px rgba(254, 139, 86, 0.1);
    border-color: var(--yandee-orange);
}

/* Boutons Liquid Pro */
.btn-primary {
    background: var(--yandee-orange);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(254, 139, 86, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(254, 139, 86, 0.4);
    filter: brightness(1.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--yandee-orange);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--yandee-orange);
    transform: translateY(-2px);
}

/* 🧭 Navigation Flottante Crystal 🧭 */
.glass-navigation {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--container-max);
    height: 72px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--radius-pill);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 4px;
    position: relative;
    padding: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-pill);
}

.nav-link {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--yandee-orange);
}

/* Le Slider de Verre (DYNAMIQUE via JS) */
.nav-slider {
    position: absolute;
    height: calc(100% - 12px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(254, 139, 86, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.4);
    color: var(--yandee-orange);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 10px rgba(254, 139, 86, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 15px rgba(254, 139, 86, 0.2);
}

/* Moteur d'Animation ("Reveal") */
.reveal-liquid {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
}

.reveal-liquid.is-visible {
    animation: liquidRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes liquidRise {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* 🎬 Animations d'Apparition iOS (Spring) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Staggering (cascade) pour les listes */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:nth-child(5) {
    transition-delay: 0.5s;
}

.service-card:nth-child(6) {
    transition-delay: 0.6s;
}

/* Effet Magnétique (Feedback visuel) */
.nav-link,
.btn-primary,
.btn-glass,
.glass-liquid {
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-liquid {
        top: 16px;
        width: calc(100% - 32px);
        height: 60px;
    }

    .container {
        padding: 0 24px;
    }
}

/* Modal Liquid Glass */
.glass-liquid-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-liquid-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.glass-liquid-modal {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 60px 40px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    position: relative;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.glass-liquid-modal-overlay.active .glass-liquid-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inline Expansion for Services */
.service-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
}

.service-details.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.voir-plus-btn {
    color: var(--yandee-orange);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s;
}

.voir-plus-btn svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.voir-plus-btn.expanded svg {
    transform: rotate(180deg);
}

/* Compact service cards */
.service-card {
    padding: 24px !important;
    /* Overriding previous padding to compact it */
    display: flex;
    flex-direction: column;
}

.service-icon {
    margin-bottom: 12px !important;
}

/* Typographie et Couleurs de Texte */
h1,
h2,
h3 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--yandee-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.metric-card {
    text-align: center;
    padding: 40px 24px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 32px;
}

.metric-title {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    width: 100%;
}

.metric-desc {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.7;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }
}

/* FAQ Expansion styling inline logic handled via class manipulation */
#faq .expanded p {
    display: block !important;
}

#faq .glass-liquid {
    transition: all 0.3s ease;
}

#faq .expanded {
    background: rgba(254, 139, 86, 0.05);
    border-color: rgba(254, 139, 86, 0.3);
}