/* Variables :root   → scentree-design-system.css */
/* Typographie       → scentree-design-system.css */
/* Boutons           → scentree-design-system.css */
/* Formulaires (form-check-input, form-control, scentree-descriptor-checkbox) → scentree-design-system.css §7 */
/* ul / ol / li (markers orange, disc, margin) → scentree-design-system.css §11 */


/* ===================================================================
   PARTAGÉ — Utilitaires (plusieurs templates)
   =================================================================== */

.orangeLightBackground { background-color: var(--orange-light); }

.mw-200 { max-width: 200px; }

.scentree-icon-certif { max-width: 16px; max-height: 16px; }

.label.label--compact { font-size: 14px !important; }


/* ===================================================================
   base.html — Header & menu global (toutes les pages)
   =================================================================== */

header { top: 0; z-index: 1; }

body:has(.scentree-page-wrapper) header { background-color: var(--grey-light); }

body:has(.scentree-page-wrapper) .changeMap { display: none !important; }

header img.logo { width: 115px; }

#back-office-menu-logo { width: 115px; }

/* .form-control → scentree-design-system.css §7 */

.openMenu { margin-left: 71px; }

.openMenu img { width: 18px; }

#main-menu {
    z-index: 2;
    top: 0;
    right: -360px;
    bottom: 0;
    width: 360px;
    max-width: 100vw;
    background: linear-gradient(120deg, rgba(253, 158, 137, 0.70) 5.14%, rgba(255, 121, 91, 0.70) 92.78%);
    backdrop-filter: blur(5px);
    filter: drop-shadow(-8px 0px 24px rgba(128, 128, 128, 0.28));
    padding: 24px 0 0 0;
    transition: .3s ease-in-out;
    visibility: hidden;
}

#main-menu.slide-in { right: 0px; visibility: visible; }

#main-menu.slide-out { right: -360px; visibility: visible; }

#main-menu a { color: var(--white); }

#main-menu .navList { padding: 0; list-style: none; width: 100%; }

#main-menu .navList li:not(.socialNetwork) {
    background-color: var(--orange-main);
    margin-bottom: 2px;
    transition: .3s ease-in-out;
}

#main-menu .navList li:not(.socialNetwork) a { padding: 16px 0 14px 24px; display: block; }

#main-menu .navList li:not(.socialNetwork):hover { background-color: var(--orange-hover-dark-bg); cursor: pointer; }

#main-menu .navList li.socialNetwork { padding: 28px 0 20px 24px; }

#main-menu .navList li a { color: var(--white); font-size: 14px; font-weight: 500; text-decoration: none; }

#main-menu small { color: var(--white); }

#main-menu .buttonSecondary { color: var(--orange-dark); }

#main-menu .px-3.pb-0 { padding-bottom: 0 !important; margin-bottom: 0 !important; }

#main-menu small.caption.pt-0 { padding-top: 0 !important; margin-top: 0 !important; }

.imglogo:hover, .imglang:hover { transform: scale(1.1); cursor: pointer; }

.scentree-social-links { display: flex; align-items: center; margin-left: 0.5rem; gap: 0.5rem; }

.scentree-social-links a { display: inline-block; text-decoration: none; color: var(--grey-dark); }

.scentree-social-links a:hover { transform: scale(1.1); cursor: pointer; }

.imglang { max-height: 0.9em; max-width: 1.8em; border-radius: 0.2em; }


/* ===================================================================
   back_office_base.html — Sidebar back-office
   =================================================================== */

.back-office-wrapper { display: flex; height: 100%; }

.navdashboard {
    display: flex;
    align-items: center;
    padding: 12px 12px 12px 0.5rem;
    border-radius: 8px;
    color: var(--grey-dark);
    text-decoration: none;
}

.navdashboard:hover { background-color: var(--orange-light); }

.navdashboard.active { background-color: var(--orange-light); }

.sidebar-dashboard {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    z-index: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.sidebar-nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: block !important;
    visibility: visible !important;
}

.sidebar-nav li { margin-bottom: 0.5rem; display: block !important; visibility: visible !important; }

.dashboard-header .body2regular { color: var(--grey-medium); }

.nav-icon-img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; margin-right: 0.5rem; }

.sidebar-footer { padding: 1rem; }

.sidebar-footer > div { display: flex; align-items: center; justify-content: space-between; }

.logout-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--orange-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
}

.logout-link:hover { color: var(--orange-dark); opacity: 0.8; }

.logout-icon { width: 16px; height: 16px; color: var(--orange-dark); flex-shrink: 0; }

.pagebackoffice {
    background-color: var(--grey-light);
    overflow-x: hidden;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* ===================================================================
   login.html
   =================================================================== */

.login-page { width: 100%; height: 100vh; padding: 0; margin: 0; display: flex; }

.login-container { width: 100%; max-width: 500px; padding: 20px; }

.loginrubangauche { display: flex; justify-content: center; align-items: center; }

.loginrubandroite {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--orange-main);
    opacity: 0.8;
}

.HeaderLogin { text-align: center; margin-bottom: 1.5rem; }

.HeaderLogin h3 { margin-bottom: 0; }

.monogramme-login { max-width: 80%; max-height: 80%; width: auto; height: auto; opacity: 0.5; }

.Blocconnection {
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 3rem;
}

.Blocconnection label { display: block; margin-bottom: 0.5rem; }

.form-login-container { width: 100%; }

.form-login-actions { display: flex; justify-content: flex-end; }

.message-login {
    border: 1px solid var(--orange-main);
    background-color: var(--orange-light);
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.message-login .label-info { text-align: left; }

.message-login .label-info p:last-child { margin-bottom: 0; }

.message-login-icon { flex-shrink: 0; margin-top: 2px; }


/* ===================================================================
   PARTAGÉ — Pages publiques (.scentree-page-wrapper)
   ingredient_template, partner_detail, discover_scentree, contact, partners
   =================================================================== */

.scentree-page-wrapper { background-color: var(--grey-light); min-height: 100%; overflow-x: hidden; }

.scentree-page-wrapper .scentree-page-card {
    background-color: var(--white);
    margin-top: 100px;
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: -webkit-fill-available;
}

.scentree-header-ingredient { display: flex; }

.scentree-header-body { flex: 1 1 auto; }

.scentree-header-top { display: flex; }

.scentree-page-wrapper .scentree-page-card .scentree-header-ingredient { padding: 40px 40px 0 0; max-width: 100%; }

.scentree-page-wrapper .scentree-page-card .scentree-header-ingredient .scentree-block-title {
    border-left: 20px solid;
    border-color: var(--orange-main);
    margin-left: -10px;
    padding-left: 30px;
}

.scentree-page-wrapper .scentree-page-card .scentree-header-ingredient .scentree-img-ingredient img,
.scentree-page-wrapper .scentree-page-card .scentree-header-ingredient .scentree-img-ingredient-mobile img {
    max-height: 175px;
}

/* .scentree-img-ingredient, -mobile, .scentree-img-map img → scentree-design-system.css §13 */

.scentree-page-body { padding: 0 40px 40px 40px; }

.scentree-page-body > .flex-fill { min-width: 0; }


/* ===================================================================
   scentree_map/index.html — Carte (zoom controls)
   =================================================================== */

.leaflet-control-container > div:first-of-type {
    left: auto !important;
    top: auto !important;
    right: 24px;
    bottom: 32px;
}

.leaflet-control-container > div:first-of-type .leaflet-bar { border: none; }

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in { margin-bottom: 8px; }

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in,
.leaflet-control-container > div:first-of-type .leaflet-control-zoom-out {
    box-shadow: var(--shadow);
    background-color: var(--white);
    color: var(--orange-dark);
    height: 45px;
    width: 45px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in:hover,
.leaflet-control-container > div:first-of-type .leaflet-control-zoom-out:hover { background-color: var(--orange-hover-light-bg); }


/* ===================================================================
   ingredient_template.html + _IFRA_block.html + _CLP_block.html + _partners_block.html
   =================================================================== */

/* -- Contenu ------------------------------------------------------ */
#ingredient { padding-top: 0.5rem; }

aside.scentree-side-nav {
    background-color: var(--orange-light);
    padding: 4px 6px;
    border-radius: 12px;
    min-width: 200px;
    position: sticky;
    top: 120px;
    margin-top: 1.5rem;
    margin-right: 40px;
}

aside.scentree-side-nav ul { list-style: none; padding: 0; margin-bottom: 0; }

aside.scentree-side-nav ul li a {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.25rem 10px 0 10px;
    border-radius: 10px;
    transition: background-color .3s ease, fill .3s ease;
    text-decoration: none;
    color: var(--grey-dark);
}

aside.scentree-side-nav ul li a:hover {
    background-color: var(--orange-hover-light-alpha);
    border-radius: 10px;
    cursor: pointer;
}

aside.scentree-side-nav ul li a.active { background-color: var(--orange-main); color: var(--white) !important; }

.scentree-info-block { margin-bottom: 1.5rem; }

.scentree-info-block h3 { line-height: 1.2; margin-bottom: 0.25rem; }

.scentree-info-block p { margin-bottom: 0; }

.scentree-info-block ul li { margin-bottom: 10px; }

.scentree-info-block ul li:first-of-type { margin-top: 15px; }

/* .scentree-data-list → scentree-design-system.css §11 */
#IFRA .scentree-data-list { max-width: 100%; }

/* -- Tables ------------------------------------------------------ */
/* Tables (base + --sortable / --editable / --sticky-header / --heatmap) → scentree-design-system.css §9
   Variantes page-spécifiques conservées ici : .scentree-table-derivated, .table-clp, .table-ifra,
   .scentree-table-partners, .subTheadTitle / .subThead */

table thead .subTheadTitle { padding: 4px 0 1px 0; }

table thead .subThead {
    background-color: var(--orange-hover-light-alpha);
    padding: 4px 0 2px 0;
    display: flex;
    justify-content: space-evenly;
    font-weight: 500;
}

.scentree-table-derivated { font-size: 14px; width: 100%; border-bottom: 1px solid var(--orange-main); }

.scentree-table-derivated td .button { width: fit-content; display: inline-flex; }

.scentree-table-derivated td:has(.button) { text-align: center; }

.scentree-table-derivated thead th { font-size: 14px; text-align: center; }

.scentree-table-derivated th:first-child,
.scentree-table-derivated td:first-child { width: 120px; text-align: center !important; }

.scentree-table-derivated td:first-child a { display: inline-block; margin: 0.25rem; }

.scentree-table-derivated th:nth-child(2),
.scentree-table-derivated td:nth-child(2) { text-align: left !important; width: 300px; }

.table-clp thead th { text-align: center; }
.table-clp th:first-child { width: 30% !important; }
.table-clp tbody td { vertical-align: top; text-align: left !important; }
.table-clp tbody tr:hover td { background-color: transparent; }

#partners.withoutIngredient {
    display: flex;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    background-color: var(--grey-light);
}

#derivated_ingredients_table { font-size: 14px; color: var(--grey-medium); }

#derivated_ingredients_table thead th { color: var(--grey-dark); background-color: var(--orange-light); }

.table-bordered { border-color: var(--orange-main); }

.table-ifra { table-layout: auto; border-collapse: collapse; }

.table-ifra th,
.table-ifra td { text-align: center !important; vertical-align: middle !important; border: 1px solid var(--grey-light); padding: 6px 8px; }

.table-ifra th:first-child,
.table-ifra td:first-child { width: auto; }

.table-ifra tbody td:first-child { text-align: center !important; }

.table-ifra tbody tr:hover td { background-color: transparent; }

.table-ifra .displayOnMobile { display: none; }

/* -- Accordion --------------------------------------------------- */
.accordion-item { border: none; }

.accordion-button, .accordion-button:not(.collapsed) { background-color: var(--grey-light); color: var(--grey-dark); }

.accordion-body { border-top: 1px solid var(--orange-main); }

.accordion-button:not(.collapsed)::after,
.accordion-button::after { background-image: url('/static/images/icons/caret-down.svg'); }

.accordion-button:focus { box-shadow: none; }

.scentree-accordion-partners { padding-top: 1rem; padding-bottom: 0.5rem; }

/* -- Leaflet popup ----------------------------------------------- */
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; }

.leaflet-popup-content { margin: 0; width: auto !important; min-width: 250px; }

.leaflet-popup-tip-container { display: none; }

.leaflet-container a.leaflet-popup-close-button {
    color: var(--grey-dark);
    top: 16px;
    right: 8px;
    width: 45px;
    height: 45px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 24px Roboto, sans-serif;
}

/* -- Modales ----------------------------------------------------- */

.modal-backdrop {
    background: linear-gradient(145deg, rgba(253, 158, 137, 0.6) 4.55%, rgba(255, 121, 91, 0.7) 96.78%);
    backdrop-filter: blur(6px);
    filter: blur(6px);
}

/* -- Popups (scentree_popups) ------------------------------------- */
.scentree-popup .modal-content { background: radial-gradient(circle at top left, var(--orange-light) 0%, var(--white) 100%); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.scentree-popup__partner-logo { max-width: 100%; max-height: 200px; object-fit: contain; }
.scentree-popup__stats { display: flex; flex-direction: column; align-items: center; }
.scentree-popup__dismiss { display: flex; align-items: center; gap: 8px; }

/* -- Carrousel --------------------------------------------------- */
#title-carrousel-produit { padding-top: 20px; }

.slide-container { margin: auto; width: 96%; text-align: center; }

.carousel-item { padding-top: 20px; padding-bottom: 20px; }

.clash-card {
    background: white;
    width: 70%;
    display: inline-block;
    margin: auto;
    position: relative;
    text-align: center;
    z-index: 9999;
    border-radius: 12px;
}

.clash-card__image { position: relative; margin-top: 35px; margin-bottom: 20px; height: 200px; }

.clash-card__image img { max-height: 150px; max-width: 150px; }

.clash-card__level { text-transform: uppercase; font-size: 12px; font-weight: 700; }

.clash-card__unit-description { padding: 10px; }

.clash-card__show_product { padding-bottom: 20px; display: inline-block; }

.carousel-control-next, .carousel-control-prev { top: 41%; opacity: 1; }

/* -- Popups / botanical (new_thing_popup_2025_02_25.html + pop_up_footer.html) -- */
.bg-botanical-green { background-color: var(--botanical-green) !important; }
.text-botanical-green { color: var(--botanical-green) !important; }
.botanical-popup-bg {
    background: radial-gradient(48.42% 72.9% at 0.71% 18.72%, var(--botanical-green) 0%, var(--white) 90%), var(--white) !important;
}

/* -- Divers ------------------------------------------------------ */
.gif-writing-in-progress { max-height: 300px; }

.picto_clp { max-width: 110px; max-height: 110px; }


/* ===================================================================
   PARTAGÉ — ingredient_template.html + partner_ingredients.html
   =================================================================== */

.scentree-table-partners { max-width: 85vw; width: 100%; padding: 0; overflow-x: auto; }

.scentree-table-partners table { white-space: nowrap; word-break: keep-all; }

.scentree-table-partners table td { color: var(--grey-medium); }

/* .scentree-img-sponsor → scentree-design-system.css §13 */

#partnersMobile { display: none; background-color: var(--orange-light); }

#partnerIngredientsMobile { display: none; background-color: var(--orange-light); }

#tbodyPartnersMobile { display: flex; flex-direction: column; }

.scentree-card-partner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 24px;
    border-bottom: 1px solid var(--orange-dark);
    background-color: var(--orange-light);
}

.scentree-card-partner > a:first-child { flex-shrink: 0; }

.scentree-card-partner-body { flex: 1; }

.scentree-card-partner-body p { margin: 0; }

.popupTable .scentree-card-partner { padding: 15px 15px 3px 15px; }


/* ===================================================================
   scentree_news/partners.html
   =================================================================== */

.PartnersBloc {
    background-color: var(--orange-light);
    padding: 10px;
    border-radius: 0px 12px 12px 12px;
    margin-top: 20px;
}

.PartnersBloc a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    width: 100px;
    border-radius: 12px;
    background-color: var(--white);
    padding: 24px;
    margin: 8px;
}

.PartnersBloc a img { max-width: 76px; height: auto; }


/* ===================================================================
   scentree_news/discover_scentree.html
   =================================================================== */

.contributeursList { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-top: 8px; }

.contributeursList ul { columns: 3; }

.contributeursList ul li { margin: 4px 0; }

.contributeursList ul li .profession { color: var(--grey-medium); font-size: 12px; }

.contributeursList ul li::marker { color: var(--orange-main); }

#benevoles { display: flex; flex-direction: column; }

#listTeam { background-color: var(--grey-light); border-radius: 12px; padding: 32px 24px; display: flex; }

.chiffresBloc { justify-content: center; }

.chiffresBloc div {
    background-color: var(--orange-light);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.chiffresBloc div a { font-size: 32px; font-weight: 700; margin-right: 16px; text-decoration: none; }


/* ===================================================================
   scentree_news/contact.html
   =================================================================== */

.contactBloc { display: flex; justify-content: space-between; }

.contactBloc .contactBlocDiv { width: 49%; border-radius: 12px; }
