
:root {
    --green: #17633e;
    --green-dark: #10502f;
    --green-pale: #edf3eb;
    --text: #20231f;
    --muted: #68716b;
    --border: rgba(39,75,52,.20);
    --paper: rgba(255,255,252,.965);
    --side: rgba(250,251,246,.94);
    --max: 1480px;
    --article: 900px;
    --sidebar: 205px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0 !important;
    color: var(--text) !important;
    background:
        linear-gradient(rgba(245,247,240,.18), rgba(245,247,240,.18)),
        url("/assets-v12/cannabis-bg.jpg")
        center top / cover fixed !important;
    font-family:
        -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
}

/* HEADER */

.v12-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,253,.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.v12-header-inner {
    max-width: var(--max);
    min-height: 82px;
    margin: auto;
    padding: 12px 28px;
    display: grid;
    grid-template-columns: 360px 1fr auto;
    gap: 28px;
    align-items: center;
}

.v12-brand {
    text-decoration: none !important;
}

.v12-brand-title {
    display: block;
    color: var(--green-dark);
    font-weight: 850;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -.025em;
}

.v12-brand-subtitle {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: .78rem;
}

.v12-nav {
    display: flex;
    gap: 25px;
}

.v12-nav a {
    text-decoration: none !important;
    color: #242824 !important;
    font-weight: 700;
}

.v12-nav a:hover {
    color: var(--green) !important;
}

.v12-langs {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.v12-langs a,
.v12-langs span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none !important;
    color: #56615b !important;
    font-weight: 750;
    font-size: .73rem;
}

.v12-langs a:hover,
.v12-langs .current {
    background: var(--green);
    color: white !important;
}

.v12-langs .future {
    border: 1px dashed #afb7b0;
    opacity: .60;
}

/* GRID PRINCIPALE */

.v12-page {
    width: min(calc(100% - 36px), var(--max));
    margin: 30px auto 55px;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, var(--article)) var(--sidebar);
    justify-content: center;
    gap: 22px;
    align-items: start;
}

.v12-sidebar {
    display: grid;
    gap: 18px;
}

.v12-box {
    background: var(--side);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 17px;
    box-shadow: 0 7px 25px rgba(30,50,35,.04);
}

.v12-box h3 {
    margin: 0 0 12px !important;
    color: var(--green-dark) !important;
    font-size: .80rem !important;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.v12-box p {
    margin: 0 0 10px !important;
    font-size: .79rem !important;
    line-height: 1.55 !important;
}

.v12-box ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.v12-box li {
    margin: 0 !important;
}

.v12-box li a {
    display: block;
    padding: 3px 0;
    color: var(--green) !important;
    text-decoration: none !important;
    font-size: .79rem;
}

.v12-search {
    display: flex;
}

.v12-search input {
    min-width: 0;
    width: 100%;
    height: 37px;
    border: 1px solid #b9c5bb;
    border-radius: 7px 0 0 7px;
    padding: 0 10px;
    background: white;
}

.v12-search button {
    width: 39px;
    border: 1px solid #b9c5bb;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    background: white;
    color: var(--green);
    font-size: 17px;
    cursor: pointer;
}

.v12-info-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 6px;
    margin: 8px 0;
    align-items: start;
    font-size: .76rem;
    line-height: 1.45;
}

.v12-info-icon {
    color: var(--green);
    font-weight: 800;
}

/* ARTICLE */

.v12-article {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 38px 42px 48px;
    box-shadow: 0 12px 40px rgba(30,55,36,.08);
}

.v12-article > * {
    max-width: 100%;
}

.v12-article h1 {
    margin: 0 0 20px !important;
    color: #151815 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(2.2rem, 3.6vw, 3.35rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
}

.v12-article h2 {
    margin: 1.65em 0 .65em !important;
    color: #171b17 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 2rem !important;
    line-height: 1.18 !important;
}

.v12-article h3 {
    margin-top: 1.65em !important;
    color: #1d231f !important;
}

.v12-article p {
    margin-top: 0 !important;
    margin-bottom: 1.12em !important;
}

.v12-article a {
    color: var(--green);
    text-underline-offset: 2px;
}

.v12-article img {
    max-width: 100% !important;
    height: auto !important;
}

.v12-article img.v12-large {
    display: block;
    margin: 25px auto !important;
    border-radius: 7px;
    cursor: zoom-in;
}

.v12-article table {
    max-width: 100% !important;
    border-collapse: collapse;
}

.v12-article td,
.v12-article th {
    border: 1px solid #d7ddd7;
    padding: 8px;
}

.v12-archive-note {
    margin: 18px 0 28px !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-left: 4px solid var(--green) !important;
    background: var(--green-pale) !important;
    border-radius: 0 5px 5px 0 !important;
    color: #38423b !important;
    font-size: .80rem !important;
    line-height: 1.45 !important;
}

/* MASQUAGE DES ANCIENS ÉLÉMENTS D'INTERFACE RECONSTRUITS */

.v12-hidden-original-ui {
    display: none !important;
}

/* FOOTER */

.v12-footer {
    background: rgba(255,255,253,.95);
    border-top: 1px solid var(--border);
}

.v12-footer-inner {
    max-width: var(--max);
    margin: auto;
    padding: 23px 28px;
    color: var(--muted);
    font-size: .76rem;
    display: flex;
    justify-content: space-between;
}

/* LIGHTBOX */

#v12-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(4,9,5,.93);
}

#v12-lightbox.open {
    display: flex;
}

#v12-lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 96vw !important;
    max-height: 93vh !important;
}

#v12-lightbox button {
    position: fixed;
    right: 20px;
    top: 13px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .v12-page {
        grid-template-columns: 190px minmax(0, 900px);
    }

    .v12-right {
        display: none;
    }

    .v12-header-inner {
        grid-template-columns: 300px 1fr auto;
    }
}

@media (max-width: 900px) {
    .v12-page {
        display: block;
        width: min(calc(100% - 24px), 900px);
    }

    .v12-left {
        display: none;
    }

    .v12-header-inner {
        grid-template-columns: 1fr auto;
        padding: 12px 16px;
    }

    .v12-nav {
        display: none;
    }

    .v12-brand-subtitle {
        display: none;
    }

    .v12-article {
        padding: 28px 25px 38px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px !important;
    }

    .v12-header {
        position: static;
    }

    .v12-header-inner {
        display: block;
    }

    .v12-langs {
        margin-top: 12px;
        overflow-x: auto;
    }

    .v12-article {
        padding: 23px 18px 32px;
    }

    .v12-article h1 {
        font-size: 2rem !important;
    }
}



/* === V12C : recherche + polonais === */

.v12-main-search {
    display: flex;
    gap: 8px;
    margin: 20px 0 28px;
}

.v12-main-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #b9c5bb;
    border-radius: 7px;
    font-size: 1rem;
}

.v12-main-search button {
    border: 0;
    border-radius: 7px;
    padding: 0 18px;
    background: var(--green);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.v12-result {
    padding: 16px 0;
    border-bottom: 1px solid #dde3dd;
}

.v12-result h3 {
    margin: 0 0 5px !important;
    font-size: 1.10rem !important;
}

.v12-result h3 a {
    text-decoration: none;
}

.v12-result p {
    color: var(--muted);
    font-size: .86rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.v12-result-meta {
    display: block;
    margin-top: 4px;
    color: #819087;
    font-size: .72rem;
}

.v12-pl-welcome {
    padding: 22px;
    margin: 24px 0;
    background: var(--green-pale);
    border-left: 4px solid var(--green);
    border-radius: 0 7px 7px 0;
}

.v12-pl-welcome strong {
    color: var(--green-dark);
}

[dir="rtl"] .v12-article {
    text-align: right;
}




/* V12D — accueils */

.v12-home-rubrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 20px;
}

.v12-home-rubric {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.72);
    color: var(--green-dark) !important;
    text-decoration: none !important;
    font-weight: 700;
}

.v12-home-rubric:hover {
    background: var(--green-pale);
}

.v12-home-language-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-top: 25px;
}

.v12-home-language {
    display: block;
    padding: 24px 18px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(255,255,255,.80);
    color: var(--green-dark) !important;
    text-decoration: none !important;
    font-size: 1.12rem;
    font-weight: 750;
    text-align: center;
}

.v12-home-language:hover {
    background: var(--green-pale);
}

@media(max-width:700px) {
    .v12-home-rubrics,
    .v12-home-language-grid {
        grid-template-columns: 1fr;
    }
}
