/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    --stupa-green: #6F755B;
    --stupa-green-dark: #5d634d;
    --stupa-beige: #FAF8F5;
    --stupa-text: #6B6B6B;
    --stupa-white-soft: rgba(250, 248, 245, 0.8);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #FFFFFF;
    color: #1A1A1A;
    overflow-x: hidden;
}

/* ==========================================================================
   2. CLASSES UTILITAIRES (STÜPA CORE)
   ========================================================================== */
/* Couleurs & Fonds */
.stupa-bg-beige { background-color: var(--stupa-beige) !important; }
.stupa-bg-green { background-color: var(--stupa-green) !important; }
.stupa-color-green { color: var(--stupa-green) !important; }
.stupa-text-dark { color: #1A1A1A !important; }

/* Typographie */
.stupa-text-kanit { font-family: 'Kanit', sans-serif !important; }
.stupa-weight-500 { font-weight: 500 !important; }
.stupa-fs-1-2 { font-size: 1.2rem !important; }

.stupa-num {
    font-size: 54px;
    top: -25px;
    position: relative;
}

/* Layout & Espacement */
.stupa-overflow-hidden { overflow-x: hidden; }
.stupa-max-width-1152 { max-width: 1152px; }
.stupa-max-width-700 { max-width: 700px; }
.stupa-max-width-300 { max-width: 300px; }

/* Composants atomiques */
.stupa-badge-green {
    background-color: var(--stupa-green);
    color: #fff;
    padding: 2px 6px;
    font-weight: bold;
    margin-right: 4px;
    text-transform: uppercase;
    font-size: 20px;
    display: inline-block;
    margin-bottom: 4px;
}

.stupa-card-shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; }
.uk-position-z-index { z-index: 10 !important; }

/* ==========================================================================
   3. TYPOGRAPHIE GLOBALE & HERO SECTIONS
   ========================================================================== */
.hero-title {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 600 !important;
    font-size: clamp(34px, 8vw, 72px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em;
    color: var(--stupa-green) !important;
    margin: 0;
}

.stupa-hero-section {
    padding: 100px 0;
    background: rgba(232, 228, 220, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    box-sizing: border-box;
}

.stupa-hero-section.uk-background-cover {
    background-color: transparent;
}

.stupa-section-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 6vw, 60px) !important;
    color: var(--stupa-green) !important;
    line-height: 1.1 !important;
}

.stupa-section-title-small { font-size: 32px !important; }
.stupa-section-title-large { font-size: 60px !important; }

.stupa-hero-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important;
    color: #1A1A1A !important;
    margin-top: 24px !important;
    font-weight: 400 !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stupa-hero-text {
    max-width: 536px;
}

.text-light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 29px;
    letter-spacing: -0.439453px;
    color: var(--stupa-text);
}

.stupa-project-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 32.5px;
    letter-spacing: -0.45px;
    color: var(--stupa-text);
}

/* ==========================================================================
   4. NAVIGATION (Navbar & Mobile Menu)
   ========================================================================== */
.uk-navbar-container {
    background: #FFFFFF !important;
}

.uk-navbar-sticky .uk-navbar-container {
    background: #FFFFFF !important;
}

.uk-navbar-nav > li > a {
    font-family: 'Kanit', sans-serif !important;
    text-transform: none !important;
    font-weight: 300 !important;
    font-size: 16px;
    color: #1A1A1A !important;
    transition: 0.3s ease;
}

.uk-navbar-nav > li.uk-active > a {
    font-weight: 600 !important;
    color: var(--stupa-green) !important;
}

.uk-logo {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 300;
}

/* Mobile Menu (Offcanvas) */
.stupa-mobile-menu {
    width: 320px !important;
    padding: 40px !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05) !important;
    background: #FFFFFF !important;
}

.stupa-offcanvas-close {
    color: #1A1A1A !important;
}

.stupa-copyright-text {
    font-family: 'Inter', sans-serif !important;
}

.stupa-mobile-nav li a {
    font-family: 'Kanit', sans-serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    color: #1A1A1A !important;
    padding: 10px 0 !important;
    line-height: 1.2 !important;
    transition: 0.3s ease;
}

.stupa-mobile-nav li.uk-active a {
    color: var(--stupa-green) !important;
}

.stupa-nav-divider {
    height: 1px;
    background: #E8E4DC;
    width: 40px;
    margin: 15px 0 !important;
}

.stupa-social-icon-mobile {
    color: #1A1A1A !important;
    transition: 0.3s ease;
}

.stupa-social-icon-mobile:hover {
    color: var(--stupa-green) !important;
}

@media (max-width: 960px) {
    .uk-navbar-nav { display: none; }
    .stupa-logo { width: 150px; }
}

/* ==========================================================================
   4. COMPOSANTS (Boutons, Icônes, Liens)
   ========================================================================== */
.uk-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 56px;
    height: auto;
    padding: 10px 30px;
    line-height: 1.2;
    background-color: var(--stupa-green) !important;
    border-radius: 10px !important;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #FAF8F5 !important;
    text-transform: none;
    border: none;
    transition: 0.3s ease;
}

.uk-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 56px;
    height: auto;
    padding: 10px 30px;
    line-height: 1.2;
    background-color: transparent !important;
    border: 1px solid var(--stupa-green) !important;
    border-radius: 10px !important;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--stupa-green) !important;
    text-transform: none;
    transition: 0.3s ease;
    text-decoration: none !important;
}

.uk-button-outline:hover {
    background-color: var(--stupa-green) !important;
    color: #FAF8F5 !important;
    text-decoration: none !important;
}

.uk-button-primary:hover {
    background-color: var(--stupa-green-dark) !important;
}

.stupa-link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--stupa-green);
    font-family: 'Kanit';
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    transition: 0.5s;
}
.stupa-link-arrow span.uk-icon {
    margin-top: 4px;
}

.stupa-link-arrow:hover {
    gap: 5px;
    color: var(--stupa-green-dark);
    text-decoration: none;
}

.stupa-icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: #E8E4DC;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--stupa-green);
}

/* ==========================================================================
   6. PAGES SPÉCIFIQUES & SECTIONS
   ========================================================================== */
/* --- Accueil (Home) --- */
.hero-image-container {
    height: clamp(300px, 50vh, 714px);
}

.lieu-overlay { background: rgba(255, 255, 255, 0.6) !important; }
.lieu-content-center { width: 700px !important; top: 256px !important; }
.lieu-subtitle { font-size: 20px !important; margin-top: 24px !important; }


/* Section Construisons Ensemble */
.ensemble-section-custom { background-color: #F2EFEB !important; }
.ensemble-image-container-inner { width: 100%; max-width: 536px; margin: 0 auto; }

@media (min-width: 960px) {
    .stupa-home-container {
        width: 100% !important;
        max-width: 1600px;
        margin: 0 auto;
        position: relative;
    }

    .hero-section-custom {
        position: relative !important;
        width: 1280px !important;
        min-height: 714.66px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 32px !important;
        padding: 0 !important;
    }

    .hero-text-container {
        position: absolute !important;
        width: 536px !important;
        height: 351.5px !important;
        left: 0 !important;
        top: 181.58px !important;
    }

    .hero-gif-absolute {
        position: absolute !important;
        width: 536px !important;
        height: 714.66px !important;
        left: 616px !important;
        top: 0 !important;
        border-radius: 10px !important;
        z-index: 1;
        overflow: hidden;
    }

    .ensemble-section-custom {
        width: 100vw !important;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        background: #F2EFEB !important;
        padding: 100px 0 !important;
        display: flex !important;
        align-items: center !important;
        margin-top: 100px;
        margin-bottom: 0 !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
    }

    .ensemble-section-custom .uk-container {
        width: 1280px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative !important;
        min-height: 536px !important;
    }

    .ensemble-image-container-inner {
        width: 536px !important;
        height: 536px !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin: 0 !important;
    }

    .ensemble-text-container-inner {
        position: absolute !important;
        width: 536px !important;
        left: 616px !important;
        top: 114.12px !important;
        margin: 0 !important;
    }

    .lieu-section-custom {
        position: absolute !important;
        width: 1499px !important;
        height: 732px !important;
        left: 0 !important;
        top: 778.66px !important;
        background-image: url("../img/home-lieu-EH8LdzI.jpg") !important;
        background-size: cover !important;
        padding: 0 !important;
    }
}

/* --- Notre Démarche --- */
.h3-engagements {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 24px !important;
    color: var(--stupa-green) !important;
    margin: 0 0 8px 0 !important;
}

.p-engagements {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: var(--stupa-text) !important;
}

.material-card { height: 400px; border-radius: 10px; overflow: hidden; }
@media (min-width: 960px) { .material-card { height: 450px; } }

.material-card img { transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.material-card:hover img { transform: scale(1.05); }

.material-title {
    font-family: 'Kanit', sans-serif !important;
    font-size: 28px !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.material-subtitle {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(10px);
    opacity: 0.8;
    color: rgba(255,255,255,0.8);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

.material-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%) !important;
    padding: 32px !important;
    transition: all 0.3s ease;
}

.material-card:hover .material-overlay { background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%) !important; }
.material-card:hover .material-title { transform: translateY(-5px); }
.material-card:hover .material-subtitle { transform: translateY(-5px); opacity: 1; }

.impact-number { font-family: 'Kanit', sans-serif; font-size: clamp(36px, 6vw, 48px); color: #1A1A1A; }
.impact-section { background: #f6f4f0; color: #FAF8F5; padding: 100px 0; }
.impact-label { color: #000000 !important; margin-top: 0 !important; }

/* --- Journal (Blog) --- */
.journal-main { background: #FFFFFF; width: 100%; }
.journal-section { padding: 64px 0; }
.journal-section-muted { background: rgba(232, 228, 220, 0.3); }
.journal-container-large { max-width: 1280px; }

/* Featured Article (New Detached Style) */
@media (min-width: 960px) {
    .journal-featured-new { padding: 50px 0 !important; }
    .featured-image-container-new { width: 100%; max-width: 600px; height: 460px; }
    .featured-content-new { max-width: 536px; }
}

.featured-excerpt { color: #6B6B6B; font-size: 16px; line-height: 24px; margin: 16px 0 0 0; }

/* Article Grid */
.article-card { background: #FFFFFF; border-radius: 10px; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.article-card-image { width: 100%; height: 253px; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card-title { font-family: 'Kanit'; font-weight: 500; font-size: 20px; color: var(--stupa-green); margin: 8px 0; }
.article-card-excerpt { color: #6B6B6B; font-size: 14px; margin: 16px 0; }
.article-card-link { color: var(--stupa-green); font-size: 14px; text-decoration: none; }

/* Journal Show (Détail) */
.stupa-article-page { background: #FFFFFF; }
.journal-show-main { padding: 64px 0; }
.article-show-container { max-width: 1499px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; }
.article-show-image-wrapper { width: 1280px; max-width: 100%; margin-bottom: 48px; }
.article-show-image-wrapper img { width: 100%; height: auto; object-fit: cover; }
.article-show-content-wrapper { width: 100%; max-width: 800px; }

@media (max-width: 1280px) { .article-show-container { padding: 0 20px; } }

.article-show-meta-container { gap: 24px; }
.article-cta-section { background: rgba(232, 228, 220, 0.2); }
.article-show-hero { min-height: 500px; }
.stupa-quote { border-left: 4px solid var(--stupa-green) !important; }
.stupa-quote-text { font-family: 'Kanit', sans-serif !important; font-style: italic !important; font-size: 24px !important; color: #6B6B6B !important; }
.article-show-meta { color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 2px; }
.article-show-excerpt { font-family: 'Kanit', sans-serif; color: #1A1A1A; font-weight: 500; }

.stupa-article-content { font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1.8; color: #1A1A1A; }
.stupa-article-content h2, .stupa-article-content h3 { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--stupa-green); margin-top: 40px; }
.stupa-article-content p { margin-bottom: 25px; }
.stupa-article-content img { border-radius: 10px; margin: 30px 0; }
.stupa-article-content ul { list-style: none; padding-left: 0; }
.stupa-article-content ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.stupa-article-content ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 15px; height: 1px; background: var(--stupa-green); }

/* --- Contact --- */
.stupa-contact-page { background: #FFFFFF; }
.stupa-form .uk-input, .stupa-form .uk-select, .stupa-form .uk-textarea { background: #F2EFEB !important; border: none !important; border-radius: 10px !important; padding: 15px 20px !important; font-family: 'Inter', sans-serif; font-weight: 300; color: #1A1A1A; }
.stupa-form .uk-form-label { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; color: #6B6B6B; margin-bottom: 8px; display: block; }

.stupa-contact-info-item h3 { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 20px; color: var(--stupa-green); margin: 0; }
.stupa-contact-info-item p { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 16px; color: #6B6B6B; margin: 4px 0 0 0; }
.stupa-contact-map-text { font-family: 'Inter', sans-serif; font-size: 16px; color: #6B6B6B; }

.stupa-map-section { line-height: 0; margin-top: 100px; }
.stupa-map-section iframe { width: 100%; transition: filter 0.3s ease; border: 0; display: block; filter: grayscale(100%) contrast(1.2) opacity(0.8); }
.stupa-map-section { filter: grayscale(0%) !important; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.stupa-footer {
    background-color: var(--stupa-green) !important;
    padding: 80px 0 40px 0 !important;
    margin-top: 0 !important;
}

.footer-title {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    color: #FFFFFF !important;
    margin-bottom: 24px !important;
    text-transform: none !important;
}

.footer-text-light,
.stupa-footer ul li a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 15px !important;
    color: var(--stupa-white-soft) !important;
    line-height: 1.6;
    text-decoration: none;
}

.footer-text-light-constrained { max-width: 300px; }

.stupa-footer ul li a:hover {
    color: #FFFFFF !important;
}

.stupa-social-icon {
    color: var(--stupa-white-soft) !important;
    transition: 0.3s ease;
}

.stupa-social-icon:hover {
    color: #FFFFFF !important;
    transform: translateY(-3px);
}

.footer-copyright {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.5);
}

@media (max-width: 960px) {
    .stupa-footer {
        padding: 40px 20px 20px 20px !important;
    }
}

/* ==========================================================================\
   8. PAGES PROJETS
   ========================================================================== */

/* Spécificité pour le Hero de la page Projet */
.project-hero {
    background-position: center center;
    background-size: cover;
    min-height: 375px;
}

.text-dark {
    color: #1A1A1A !important;
}

/* Cartes de projets */
.project-card-link {
    text-decoration: none !important;
}

.project-image-wrapper {
    height: 351px;
    background-color: #E8E4DC;
}

.project-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card-link:hover .project-image {
    transform: scale(1.03);
}

.project-card-title {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    color: var(--stupa-green) !important;
}

.project-meta-container {
    gap: 16px;
}

.project-meta-item {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: var(--stupa-text) !important;
}

.project-meta-item span {
    color: var(--stupa-text) !important;
}

.project-excerpt-tags {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: var(--stupa-text) !important;
}


/* ==========================================================================\
   PAGE PROJET - DÉTAIL
   ========================================================================== */

/* Lien de retour */
.stupa-link-back {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    color: #6B6B6B !important;
    letter-spacing: -0.31px;
}

/* Meta données (Provence | 2025) */
.stupa-project-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #6B6B6B;
}
.stupa-project-meta span svg {
    color: #6B6B6B;
}

/* Sidebar d'informations */
.stupa-sidebar-wrapper {
    position: sticky;
    top: 100px; /* Reste fixé au scroll si le header est sticky */
}

.stupa-info-box {
    background: rgba(232, 228, 220, 0.2);
    border-radius: 10px;
}

.stupa-sidebar-title {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 20px !important;
    color: var(--stupa-green) !important;
    margin-bottom: 24px !important;
}

/* Helpers Typographies spécifiques pour la Sidebar */
.text-dark {
    color: #1A1A1A !important;
    font-family: 'Inter', sans-serif;
}
.text-light {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}
.text-green {
    color: var(--stupa-green) !important;
}

/* Checklist caractéristiques */
.stupa-features-list li {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 14px !important;
    color: #6B6B6B !important;
    line-height: 20px;
    display: flex;
    align-items: center;
}

/* Bouton du CTA de fin */
.stupa-btn-large {
    background-color: var(--stupa-green) !important;
    color: #FFFFFF !important;
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 15px 40px !important;
    border-radius: 10px !important;
    border: none;
    transition: background-color 0.3s ease;
}

.stupa-btn-large:hover {
    background-color: var(--stupa-green-dark) !important;
    color: #FFFFFF !important;
}