/* ==========================================================================
   AES Sugu — thème public
   Chargé après style.css (Bootstrap 4) : redéfinit la base et ajoute les
   composants préfixés .sg-
   ========================================================================== */

:root {
    --ink: #1f1b16;
    --ink-2: #4d463d;
    --muted: #776e63;
    --paper: #fbf8f3;
    --sand: #f3ece1;
    --sand-2: #e9dfcf;
    --surface: #ffffff;
    --line: #e7dfd3;
    --line-strong: #d3c6b3;

    --green: #0e7f41;
    --green-700: #08552b;
    --green-50: #e6f2ea;
    --yellow: #f2b705;
    --yellow-50: #fdf3d2;
    --orange: #e4701d;
    --clay: #a9481a;
    --red: #c4242d;

    /* compatibilité avec les vues existantes */
    --aes-green: var(--green);
    --aes-orange: var(--orange);
    --aes-yellow: var(--yellow);
    --aes-red: var(--red);
    --primary: var(--green);
    --secondary: var(--sand);

    --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 10px 30px -12px rgba(31, 27, 22, .22);
    --container: 1320px;
    --gutter: 24px;
    --header-h: 76px;
}

@media (max-width: 575.98px) {
    :root { --gutter: 16px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html { scroll-padding-top: 140px; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

a { color: var(--green); transition: color .15s ease; }
a:hover { color: var(--green-700); text-decoration: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

img { max-width: 100%; }

::selection { background: var(--yellow-50); color: var(--ink); }

.text-primary, a.text-primary:hover, a.text-primary:focus { color: var(--green) !important; }
.bg-primary { background-color: var(--green) !important; }
.text-dark { color: var(--ink) !important; }
.text-muted { color: var(--muted) !important; }
.bg-light { background-color: var(--sand) !important; }
.bg-secondary { background-color: var(--sand) !important; }
.border, .border-top, .border-bottom, .border-left, .border-right { border-color: var(--line) !important; }
.font-weight-semi-bold { font-weight: 600 !important; }

/* Boutons ------------------------------------------------------------------ */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn-primary, .btn-success {
    color: #fff !important;
    background-color: var(--green) !important;
    border-color: var(--green) !important;
    box-shadow: none !important;
    transform: none !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-success:hover, .btn-success:focus {
    background-color: var(--green-700) !important;
    border-color: var(--green-700) !important;
}

.btn-outline-primary, .btn-outline-success {
    color: var(--green) !important;
    border-color: var(--green) !important;
    background: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-success:hover {
    color: #fff !important;
    background: var(--green) !important;
}

.btn-secondary {
    color: var(--ink) !important;
    background-color: var(--sand) !important;
    border-color: var(--sand) !important;
}
.btn-secondary:hover { background-color: var(--sand-2) !important; border-color: var(--sand-2) !important; }

.btn-light { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-light:hover { background: var(--sand); border-color: var(--line-strong); }

.btn-warning { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

/* Formulaires --------------------------------------------------------------- */

.form-control, .custom-select {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--ink);
    font-size: 15px;
}
.form-control:focus, .custom-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(14, 127, 65, .15);
}
.form-control::placeholder { color: #9a9083; }
label { font-weight: 500; color: var(--ink-2); }

/* Composants Bootstrap ------------------------------------------------------- */

.card { border-color: var(--line); border-radius: var(--radius); }
.badge { font-weight: 600; border-radius: 4px; }
.badge-primary, .badge-success { background-color: var(--green); color: #fff; }
.badge-warning { background-color: var(--yellow); color: var(--ink); }
.badge-light { background: var(--sand); color: var(--ink-2); }

.page-link { color: var(--ink); border-color: var(--line); }
.page-link:hover { color: var(--ink); background: var(--sand); border-color: var(--line); }
.page-item.active .page-link { background-color: var(--ink); border-color: var(--ink); color: #fff; }
.page-item:first-child .page-link { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.page-item:last-child .page-link { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.dropdown-menu {
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow);
    padding: 6px;
}
.dropdown-item { border-radius: var(--radius-sm); padding: 8px 12px; font-size: 15px; color: var(--ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sand); color: var(--ink); }
.dropdown-header { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px 4px; }

.alert { border-radius: var(--radius); }

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    width: 44px;
    height: 44px;
    padding: 0;
    display: none;
    line-height: 44px;
    text-align: center;
    border-radius: 50% !important;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

.sg-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.sg-section { padding-block: 72px; }
.sg-section--tight { padding-block: 48px; }
.sg-section--sand { background: var(--sand); }
.sg-section--white { background: var(--surface); }

@media (max-width: 767.98px) {
    .sg-section { padding-block: 48px; }
    .sg-section--tight { padding-block: 32px; }
}

.sg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--clay);
}

.sg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.sg-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.sg-head p { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
.sg-head__link {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}
.sg-head__link:hover { color: var(--green); }

@media (max-width: 575.98px) {
    .sg-head { align-items: flex-start; flex-direction: column; gap: 12px; }
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sg-btn--primary { background: var(--green); color: #fff; }
.sg-btn--primary:hover { background: var(--green-700); color: #fff; }
.sg-btn--dark { background: var(--ink); color: #fff; }
.sg-btn--dark:hover { background: #000; color: #fff; }
.sg-btn--accent { background: var(--yellow); color: var(--ink); }
.sg-btn--accent:hover { background: #e0a800; color: var(--ink); }
.sg-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.sg-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.sg-btn--light { background: #fff; color: var(--ink); }
.sg-btn--light:hover { background: var(--sand); color: var(--ink); }
.sg-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.sg-stripe {
    height: 4px;
    background: linear-gradient(90deg,
        var(--green) 0 33.33%,
        var(--yellow) 33.33% 66.66%,
        var(--red) 66.66% 100%);
}

.sg-utility {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}
.sg-utility .sg-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}
.sg-utility p { margin: 0; }
.sg-utility a { color: rgba(255, 255, 255, .72); }
.sg-utility a:hover { color: #fff; }
.sg-utility__links { display: flex; align-items: center; gap: 20px; }
.sg-utility__links a i { margin-right: 6px; }

@media (max-width: 767.98px) {
    .sg-utility { display: none; }
}

.sg-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.sg-header__main {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
}

.sg-logo { flex-shrink: 0; display: block; }
.sg-logo img { display: block; height: 46px; width: auto; }

.sg-search {
    flex: 1;
    display: flex;
    max-width: 680px;
    background: #fff;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    overflow: hidden;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.sg-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 127, 65, .16); }
.sg-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--ink);
}
.sg-search select {
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ink-2);
    outline: 0;
    cursor: pointer;
}
.sg-search button {
    border: 0;
    margin: 4px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.sg-search button:hover { background: var(--green); }

.sg-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.sg-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.sg-action:hover, .sg-action:focus { background: var(--sand); color: var(--ink); }
.sg-action i { font-size: 17px; }
.sg-action__count {
    position: absolute;
    top: 4px;
    left: 24px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.sg-actions .sg-btn { margin-left: 8px; }

.sg-burger {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: -8px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
}
.sg-burger:hover { background: var(--sand); }

/* Barre des catégories */
.sg-catnav { border-top: 1px solid var(--line); position: relative; }
.sg-catnav > .sg-container { display: flex; align-items: stretch; gap: 8px; }
.sg-catnav__all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 0 16px 0 0;
    margin-right: 4px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
}
.sg-catnav__all .fa-chevron-down { font-size: 11px; transition: transform .15s ease; }
.sg-catnav__all[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.sg-catnav__list {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}
.sg-catnav__list::-webkit-scrollbar { display: none; }
.sg-catnav__list {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    padding-right: 32px;
}
.sg-catnav__list a {
    display: block;
    padding: 12px 12px 10px;
    border-bottom: 2px solid transparent;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 500;
}
.sg-catnav__list a:hover { color: var(--ink); }
.sg-catnav__list a.is-active { color: var(--ink); border-bottom-color: var(--green); }
.sg-catnav__list .sg-catnav__sep { width: 1px; margin: 10px 6px; background: var(--line); flex-shrink: 0; }

/* Panneau toutes catégories */
.sg-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(31, 27, 22, .35);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
.sg-mega[hidden] { display: none; }
.sg-mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 32px;
    padding-block: 28px 32px;
}
.sg-mega__col h3 { font-size: 16px; margin: 0 0 10px; }
.sg-mega__col h3 a { color: var(--ink); }
.sg-mega__col h3 a:hover { color: var(--green); }
.sg-mega__col h3 i { width: 22px; color: var(--green); font-size: 14px; }
.sg-mega__col ul { list-style: none; margin: 0; padding: 0 0 0 22px; }
.sg-mega__col li a { display: block; padding: 3px 0; font-size: 14.5px; color: var(--ink-2); }
.sg-mega__col li a:hover { color: var(--green); }

@media (max-width: 991.98px) {
    .sg-header__main { flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; min-height: 0; }
    .sg-burger { display: inline-flex; align-items: center; justify-content: center; }
    .sg-logo img { height: 38px; }
    .sg-search { order: 5; flex-basis: 100%; max-width: none; }
    .sg-search input { height: 44px; }
    .sg-search select { display: none; }
    .sg-action__label, .sg-actions .sg-btn { display: none; }
    .sg-catnav__all { display: none; }
}

/* Menu mobile (tiroir) */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(31, 27, 22, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 320px;
    max-width: 88%;
    height: 100%;
    background: var(--surface);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
}
.mobile-menu.active { transform: none; visibility: visible; }
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.mobile-menu-header img { height: 36px; width: auto; }
.mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--sand);
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
}
.mobile-menu-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.mobile-user-section { padding: 16px; background: var(--sand); }
.mobile-user-section h6 { margin: 0; font-size: 16px; }
.mobile-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.mobile-auth-buttons { display: grid; gap: 8px; padding: 16px; background: var(--sand); }
.mobile-nav-section { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav-title {
    margin: 0;
    padding: 8px 16px 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    text-align: left;
}
.mobile-nav-link i { width: 20px; text-align: center; color: var(--muted); }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--sand); color: var(--ink); }
.mobile-nav-link.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--green); }
.mobile-nav-link .badge { margin-left: auto; }
.mobile-countries { padding: 16px; color: var(--muted); font-size: 14px; }
body.mobile-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Accueil — hero
   -------------------------------------------------------------------------- */

.sg-hero { background: var(--sand); overflow: hidden; }
.sg-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    padding-block: 56px 64px;
}
.sg-hero__title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 20px;
}
.sg-hero__title em { font-style: normal; color: var(--green); }
.sg-hero__lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }

.sg-hero__search {
    display: flex;
    max-width: 560px;
    padding: 6px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 0 var(--line-strong), var(--shadow);
}
.sg-hero__search input {
    flex: 1;
    min-width: 0;
    padding: 0 18px;
    border: 0;
    outline: 0;
    font-size: 16px;
    background: transparent;
}
.sg-hero__search select {
    border: 0;
    border-left: 1px solid var(--line);
    padding: 0 12px;
    background: transparent;
    color: var(--ink-2);
    font-size: 15px;
    outline: 0;
}

.sg-hero__popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}
.sg-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.sg-chip:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

.sg-hero__media {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 520px;
}
.sg-hero__media figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-2); }
.sg-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-hero__media figure:first-child { grid-row: 1 / 3; }
.sg-hero__media figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 27, 22, .7);
    color: #fff;
    font-size: 12.5px;
}

@media (max-width: 991.98px) {
    .sg-hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 40px; }
    .sg-hero__media { height: 360px; }
}
@media (max-width: 575.98px) {
    .sg-hero__media { height: 260px; grid-template-columns: 1fr 1fr; gap: 8px; }
    .sg-hero__media figure:nth-child(3) { display: none; }
    .sg-hero__media figure:nth-child(2) { grid-row: 1 / 3; }
    .sg-hero__search select { display: none; }
    .sg-hero__lead { font-size: 16px; }
}

/* Slides gérés par l'admin */
.sg-slider { background: var(--ink); }
.sg-slider .carousel-item { height: clamp(320px, 42vw, 520px); }
.sg-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
/* Petits écrans : le texte est à gauche, on garde le sujet de l'image (à droite) dans le cadre */
@media (max-width: 768px) {
    .sg-slider .carousel-item img { object-position: 78% 50%; }
}
.sg-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 17, 13, .72) 0%, rgba(20, 17, 13, .35) 55%, rgba(20, 17, 13, 0) 100%);
}
.sg-slider__caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}
.sg-slider__caption .sg-container > div { max-width: 560px; color: #fff; }
.sg-slider__caption .sg-eyebrow { color: var(--yellow); }
.sg-slider__caption h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); margin: 0 0 22px; }
.sg-slider__sponsor { margin: 16px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.sg-slider .carousel-indicators { justify-content: flex-start; margin: 0; left: var(--gutter); right: auto; bottom: 20px; }
.sg-slider .carousel-indicators li { width: 28px; height: 3px; border: 0; background: #fff; }
.sg-slider .carousel-control-prev, .sg-slider .carousel-control-next { width: 64px; z-index: 3; }

/* En-tête des pages intérieures */
.sg-pagehead { background: var(--sand); border-bottom: 1px solid var(--line); }
.sg-pagehead .sg-container { padding-block: 36px 32px; }
.sg-pagehead h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.sg-pagehead p { margin: 10px 0 0; color: var(--ink-2); max-width: 640px; }
.sg-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--muted);
}
.sg-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.sg-breadcrumb a, .sg-breadcrumb .breadcrumb-item a { color: var(--ink-2) !important; }
.sg-breadcrumb a:hover { color: var(--green) !important; }
.sg-breadcrumb .breadcrumb-item { padding: 0; }
.sg-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; float: none; padding: 0; margin-right: 6px; color: var(--line-strong); }
.sg-breadcrumb .breadcrumb-item.active, .sg-breadcrumb .text-white { color: var(--ink) !important; }

.sg-pagehead--photo { position: relative; color: #fff; border: 0; background: var(--ink); }
.sg-pagehead--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.sg-pagehead--photo .sg-container { position: relative; padding-block: 72px 56px; }
.sg-pagehead--photo h1, .sg-pagehead--photo p { color: #fff; }
.sg-pagehead--photo .sg-breadcrumb, .sg-pagehead--photo .sg-breadcrumb a,
.sg-pagehead--photo .sg-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .8) !important; }
.sg-pagehead--photo .sg-breadcrumb .breadcrumb-item.active, .sg-pagehead--photo .sg-breadcrumb .text-white { color: #fff !important; }

/* --------------------------------------------------------------------------
   Catégories
   -------------------------------------------------------------------------- */

.sg-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.sg-cat {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sand-2);
    color: #fff;
    isolation: isolate;
}
.sg-cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .5s ease;
}
.sg-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 17, 13, 0) 40%, rgba(20, 17, 13, .78) 100%);
}
.sg-cat:hover { color: #fff; }
.sg-cat:hover img { transform: scale(1.04); }
.sg-cat__body { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.sg-cat__name { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.sg-cat__sub { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 991.98px) { .sg-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .sg-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sg-cat { border-radius: var(--radius); }
    .sg-cat__body { left: 12px; right: 12px; bottom: 10px; }
    .sg-cat__name { font-size: 16px; }
    .sg-cat__sub { display: none; }
}

/* --------------------------------------------------------------------------
   Cartes produit
   -------------------------------------------------------------------------- */

.sg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 20px;
}
.sg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1199.98px) { .sg-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .sg-grid, .sg-grid--4, .sg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

.sg-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.sg-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--sand);
}
.sg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sg-card:hover .sg-card__media img { transform: scale(1.03); }

.sg-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }

/* Drapeau du pays (produits, boutiques) */
.sg-flag { display: inline-block; width: 1.35em; height: .9em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(31, 27, 22, .14); flex-shrink: 0; vertical-align: -.1em; }
.sg-flag--inline { margin-right: 6px; }
.sg-flagchip {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 8px -3px rgba(31, 27, 22, .35);
}
.sg-flagchip .sg-flag { font-size: 14px; }
.sg-shop__cover { position: relative; }
.sg-flagchip--top { top: 10px; bottom: auto; left: auto; right: 10px; }

.sg-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.sg-tag--featured { background: var(--yellow); }
.sg-tag--sale { background: var(--red); color: #fff; }
.sg-tag--verified { background: var(--green-50); color: var(--green-700); }

.sg-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    margin: 0;
}
.sg-fav button, .sg-fav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
}
.sg-fav button:hover, .sg-fav a:hover { color: var(--red); }
.sg-fav .is-on { color: var(--red); }

.sg-card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sg-card__cat { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.sg-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sg-card__title a { color: inherit; }
.sg-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sg-card__price { margin-top: 4px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.sg-card__price small { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sg-card__price del { white-space: nowrap; margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.sg-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sg-card__meta i { font-size: 12px; }

.sg-empty {
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--muted);
}
.sg-empty h3 { font-size: 20px; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   Sections accueil
   -------------------------------------------------------------------------- */

/* Comment ça marche */
.sg-steps { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.sg-steps h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 12px; }
.sg-steps > div > p { color: var(--ink-2); margin: 0; }
.sg-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.sg-steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.sg-steps__num { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--clay); margin-bottom: 10px; }
.sg-steps h3 { font-size: 20px; margin: 0 0 8px; }
.sg-steps li p { margin: 0; color: var(--ink-2); font-size: 15px; }

@media (max-width: 991.98px) {
    .sg-steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 575.98px) {
    .sg-steps ol { grid-template-columns: 1fr; gap: 20px; }
}

/* Pays */
.sg-countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-country {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    overflow: hidden;
}
.sg-country:hover { border-color: var(--ink); color: var(--ink); }
.sg-country__flag { display: flex; width: 42px; height: 28px; border-radius: 4px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.sg-country__flag span { flex: 1; }
.sg-country__flag--h { flex-direction: column; }
.sg-country h3 { font-size: 26px; margin: 0 0 4px; }
.sg-country p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sg-country__count { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; }
.sg-country__count i { transition: transform .15s ease; }
.sg-country:hover .sg-country__count i { transform: translateX(3px); }

@media (max-width: 767.98px) { .sg-countries { grid-template-columns: 1fr; } }

/* Bloc vendeur */
.sg-sell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-700);
    color: #fff;
}
.sg-sell__media { min-height: 420px; position: relative; }
.sg-sell__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-sell__body { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.sg-sell .sg-eyebrow { color: var(--yellow); }
.sg-sell h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 16px; }
.sg-sell p { color: rgba(255, 255, 255, .82); margin: 0 0 22px; }
.sg-sell ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.sg-sell li { display: flex; gap: 12px; align-items: baseline; color: rgba(255, 255, 255, .92); }
.sg-sell li i { color: var(--yellow); }
.sg-sell__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-sell .sg-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.sg-sell .sg-btn--ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 991.98px) {
    .sg-sell { grid-template-columns: 1fr; }
    .sg-sell__media { min-height: 260px; }
    .sg-sell__body { padding: 36px 24px; }
}

/* Boutiques */
.sg-shops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sg-shop {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    color: var(--ink);
}
.sg-shop:hover { border-color: var(--ink); color: var(--ink); }
.sg-shop__cover { aspect-ratio: 16 / 7; background: var(--sand-2); overflow: hidden; }
.sg-shop__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-shop__logo {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 18px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    position: relative;
}
.sg-shop__logo img { width: 100%; height: 100%; object-fit: cover; }
.sg-shop__body { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sg-shop__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; }
.sg-shop__name .fa-check-circle { color: var(--green); font-size: 14px; }
.sg-shop__meta { font-size: 14px; color: var(--muted); }
.sg-shop__count { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; }

@media (max-width: 1199.98px) { .sg-shops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .sg-shops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { .sg-shops { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Publicité (Admin > Bannières)
   -------------------------------------------------------------------------- */

.sg-ad { position: relative; }
.sg-ad__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.sg-ad__frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand-2); }
@media (max-width: 575.98px) { .sg-ad__frame { border-radius: var(--radius); } }
.sg-ad--horizontal .sg-ad__frame { aspect-ratio: 6 / 1; }
.sg-ad--vertical .sg-ad__frame { aspect-ratio: 1 / 2; }
.sg-ad__frame a, .sg-ad__frame img { display: block; width: 100%; height: 100%; }
.sg-ad__frame img { object-fit: cover; }

.sg-ad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(169, 72, 26, .04) 14px 28px), var(--paper);
    color: var(--ink);
}
.sg-ad-cta:hover { border-color: var(--ink); color: var(--ink); }
.sg-ad-cta__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-ad-cta .sg-eyebrow { margin: 0 0 2px; font-size: 11.5px; }
.sg-ad-cta strong { font-family: var(--font-display); font-size: 22px; line-height: 1.15; }
.sg-ad-cta__text > span:last-child { font-size: 14.5px; color: var(--ink-2); }
.sg-ad-cta .sg-btn { flex-shrink: 0; }
.sg-ad-cta--vertical { flex-direction: column; align-items: flex-start; justify-content: flex-end; aspect-ratio: 1 / 1.4; padding: 24px; }

@media (max-width: 767.98px) {
    .sg-ad-cta { flex-direction: column; align-items: flex-start; padding: 18px; }
    .sg-ad-cta strong { font-size: 19px; }
}

.sg-grid > .sg-grid__full { grid-column: 1 / -1; }
.sg-sponsored-row { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.sg-sponsored-row h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.sg-tag--sponsored { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.sg-footer { background: var(--ink); color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: 0; }
.sg-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-block: 64px 48px;
}
.sg-footer__brand img { height: 48px; width: auto; margin-bottom: 18px; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); }
.sg-footer__brand p { margin: 0 0 18px; max-width: 360px; }
.sg-footer h4 {
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.sg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sg-footer a { color: rgba(255, 255, 255, .7); }
.sg-footer a:hover { color: #fff; }
.sg-footer__contact li { display: flex; gap: 10px; align-items: baseline; }
.sg-footer__contact i { width: 16px; color: var(--yellow); }
.sg-footer__social { display: flex; gap: 8px; }
.sg-footer__social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
}
.sg-footer__social a:hover { border-color: #fff; }
.sg-footer__news { display: flex; margin-top: 8px; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .22); }
.sg-footer__news input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 16px; height: 44px; outline: 0; font-size: 14px; }
.sg-footer__news input::placeholder { color: rgba(255, 255, 255, .5); }
.sg-footer__news button { border: 0; background: var(--yellow); color: var(--ink); font-weight: 600; padding: 0 16px; font-size: 14px; cursor: pointer; }
.sg-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
}
.sg-footer__bottom p { margin: 0; }

@media (max-width: 991.98px) {
    .sg-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .sg-footer__top { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 32px; }
}

/* --------------------------------------------------------------------------
   Liste des produits
   -------------------------------------------------------------------------- */

.sg-listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.sg-filters { display: grid; gap: 28px; }
.sg-filter h3 {
    margin: 0 0 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.sg-filter__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sg-filter__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 15px;
}
.sg-filter__list a:hover { background: var(--sand); color: var(--ink); }
.sg-filter__list a.is-active { background: var(--ink); color: #fff; }
.sg-filter__list a.is-active .sg-filter__n { color: rgba(255, 255, 255, .7); }
.sg-filter__list .sg-filter__list { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.sg-filter__list .sg-filter__list a { font-size: 14px; padding: 5px 10px; }
.sg-filter__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-filter .form-control { height: 42px; }

.sg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.sg-toolbar__count { margin: 0; color: var(--ink-2); }
.sg-toolbar__count strong { color: var(--ink); }
.sg-toolbar__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sg-filters-toggle { display: none; }

@media (max-width: 991.98px) {
    .sg-listing { grid-template-columns: 1fr; gap: 0; }
    .sg-filters { position: static; display: none; padding: 20px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
    .sg-filters.is-open { display: grid; }
    .sg-filters-toggle { display: inline-flex; }
}

/* Autour de moi */
.sg-near__status { margin: 6px 0 0; font-size: 13px; color: var(--clay); min-height: 0; }
.sg-near__status:empty { display: none; }
.sg-near__label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.sg-card__distance { color: var(--ink-2); font-weight: 600; }
.sg-near--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sg-near--inline h3 { margin: 0 4px 0 0; }
.sg-near--inline .sg-btn.w-100 { width: auto !important; }
.sg-near--inline .sg-near__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sg-near--inline select[name="near"] { width: auto; min-width: 200px; height: 40px; }
.sg-near--inline > .d-flex { margin-top: 0 !important; }
.sg-near--inline .sg-near__status { flex-basis: 100%; order: 10; }
.sg-notice { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius); background: var(--yellow-50); color: var(--ink-2); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Carte des boutiques
   -------------------------------------------------------------------------- */

.sg-mapbar { background: var(--sand); border-bottom: 1px solid var(--line); }
.sg-mapbar__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding-block: 24px 20px; }
.sg-mapbar h1 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.sg-mapbar .sg-breadcrumb { margin-bottom: 8px; }

.sg-map { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 200px); min-height: 560px; border-bottom: 1px solid var(--line); }
.sg-map__canvas { height: 100%; background: var(--sand-2); z-index: 1; }
.sg-map__side { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.sg-map__filters { display: grid; gap: 22px; padding: 20px 20px 24px; border-bottom: 1px solid var(--line); }
.sg-map__filters .sg-filter h3 { margin-bottom: 10px; }
.sg-map__filters .form-control { height: 42px; }
.sg-map__filters .sg-btn[data-map-reset] { justify-self: start; }
.sg-map__filters-toggle { display: none; }
.sg-map__results { display: flex; flex-direction: column; }
.sg-map__count { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.sg-map__list { list-style: none; margin: 0; padding: 6px; }
.sg-map__list button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.sg-map__list button:hover { background: var(--sand); }
.sg-map__list .sg-shop__logo { margin: 0; width: 42px; height: 42px; border: 0; font-size: 14px; flex-shrink: 0; }
.sg-map__item { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sg-map__item strong { font-family: var(--font-display); font-size: 15.5px; color: var(--ink); }
.sg-map__item strong .fa-check-circle { color: var(--green); font-size: 11px; }
.sg-map__item span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-map__dist { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.sg-map__legend { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

.sg-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.sg-pin img { width: 100%; height: 100%; object-fit: cover; }
.sg-pin--approx { background: var(--muted); border-style: dashed; }
.sg-pin--mini { display: inline-block; width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 1px var(--line-strong); vertical-align: middle; }
.sg-map__legend .sg-pin--mini + .sg-pin--mini, .sg-map__legend .sg-pin--approx { margin-left: 6px; }

/* Groupes de points : vert AES (plus sombre quand le groupe est grand) */
.sg-map__canvas .marker-cluster { background-color: rgba(14, 127, 65, .22); }
.sg-map__canvas .marker-cluster div { background-color: var(--green); color: #fff; font-family: var(--font-body); font-weight: 800; }
.sg-map__canvas .marker-cluster-medium { background-color: rgba(8, 85, 43, .25); }
.sg-map__canvas .marker-cluster-medium div, .sg-map__canvas .marker-cluster-large div { background-color: var(--green-700); }
.sg-map__canvas .marker-cluster-large { background-color: rgba(31, 27, 22, .25); }

/* Leaflet colore les liens en bleu : on garde les couleurs du site */
.leaflet-container .sg-plist a, .leaflet-container .sg-plist a:hover { color: var(--ink); }
.leaflet-container .sg-btn--ghost, .leaflet-container .sg-btn--ghost:hover { color: var(--ink); }
.leaflet-container .sg-btn--dark, .leaflet-container .sg-btn--dark:hover { color: #fff; }
.leaflet-container { font-family: var(--font-body); }

.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font-body); }
.sg-pop { min-width: 220px; }
.sg-pop__head { display: flex; gap: 10px; align-items: center; }
.sg-pop__head .sg-shop__logo { margin: 0; width: 44px; height: 44px; border: 0; font-size: 14px; flex-shrink: 0; }
.sg-pop__head strong { display: block; font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.sg-pop__head strong .fa-check-circle { color: var(--green); font-size: 12px; }
.sg-pop__head span { font-size: 13px; color: var(--muted); }
.sg-pop__meta { margin: 10px 0 !important; font-size: 13px; color: var(--ink-2); }
.sg-pop__cta { display: flex; gap: 8px; }
.sg-pop__cta .sg-btn--dark, .sg-pop__cta .sg-btn--dark:hover { color: #fff; }

.sg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .08); }
.sg-map__cats a { align-items: center; }
.sg-map__cats a > span:first-child { display: inline-flex; align-items: center; }
.sg-map__cats a.is-active { background: var(--ink); color: #fff; }

/* Aperçu au survol d'un point */
.leaflet-tooltip.sg-tip-wrap { padding: 0; border: 0; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px -6px rgba(31, 27, 22, .35); overflow: hidden; }
.leaflet-tooltip.sg-tip-wrap::before { display: none; }
.sg-tip { width: 230px; font-family: var(--font-body); white-space: normal; }
.sg-tip img { display: block; width: 100%; height: 112px; object-fit: cover; background: var(--sand-2); }
.sg-tip__body { padding: 10px 12px 12px; }
.sg-tip__body strong { display: block; font-family: var(--font-display); font-size: 15.5px; color: var(--ink); line-height: 1.2; }
.sg-tip__body span { display: flex; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.sg-tip__body .sg-dot { width: 9px; height: 9px; margin-right: 6px; box-shadow: none; }
.sg-pop__img { display: block; width: calc(100% + 32px); height: 120px; margin: -14px -16px 12px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--sand-2); }
.leaflet-popup-content-wrapper { overflow: hidden; }

/* Carte : bascule Boutiques / Produits */
.sg-map__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 20px 0; padding: 4px; border-radius: 999px; background: var(--sand); }
.sg-map__modes button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.sg-map__modes button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.sg-map[data-mode="shops"] [data-only="products"], .sg-map[data-mode="products"] [data-only="shops"] { display: none; }

/* Points produits : nombre de produits au même endroit */
.sg-pin--count b { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: #fff; }
.sg-tip__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--sand-2); }
.sg-tip__thumbs img { width: 100%; height: 76px; object-fit: cover; display: block; }
.sg-tip__thumbs img:only-child { grid-column: 1 / -1; height: 112px; }

/* Liste des produits d'un point */
.sg-pop--products { min-width: 260px; }
.sg-plist { list-style: none; margin: 10px -6px 12px; padding: 0; max-height: 280px; overflow-y: auto; }
.sg-plist a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: var(--radius-sm); color: var(--ink); }
.sg-plist a:hover { background: var(--sand); color: var(--ink); }
.sg-plist img { width: 52px; height: 52px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--sand-2); }
.sg-plist__info { display: flex; flex-direction: column; min-width: 0; }
.sg-plist__info strong { font-size: 14px; font-weight: 600; line-height: 1.25; }
.sg-plist__price { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-plist__price del { font-weight: 400; color: var(--muted); margin-left: 4px; }
.sg-plist__shop { font-size: 12px; color: var(--muted); }
.sg-map__thumb { width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--sand-2); }
.sg-map__price { color: var(--ink); font-variant-numeric: tabular-nums; }

.sg-minimap { height: 260px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-2); z-index: 1; }
.sg-shoploc { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.sg-shoploc h2 { font-size: 22px; margin: 0 0 10px; }
.sg-shoploc p { margin: 0 0 6px; }
@media (max-width: 767.98px) { .sg-shoploc { grid-template-columns: 1fr; gap: 18px; } }

@media (max-width: 991.98px) {
    .sg-map { grid-template-columns: 1fr; height: auto; }
    .sg-map__canvas { order: -1; height: 58vh; min-height: 340px; }
    .sg-map__side { overflow: visible; border-right: 0; border-top: 1px solid var(--line); }
    .sg-map__filters-toggle { display: inline-flex; margin: 14px 20px 0; align-self: flex-start; }
    .sg-map__filters { display: none; }
    .sg-map__filters.is-open { display: grid; }
}

/* --------------------------------------------------------------------------
   Fiche produit
   -------------------------------------------------------------------------- */

.sg-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.sg-gallery__main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.sg-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.sg-gallery__thumbs button {
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    cursor: pointer;
}
.sg-gallery__thumbs button.is-active { border-color: var(--ink); }
.sg-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-product__info { position: sticky; top: calc(var(--header-h) + 64px); }
.sg-product__info h1 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 12px; }
.sg-product__price { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.sg-product__price small { font-size: 16px; color: var(--ink-2); }
.sg-product__price del { font-size: 17px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.sg-product__facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 24px; font-size: 14.5px; color: var(--ink-2); }
.sg-product__facts i { color: var(--muted); margin-right: 6px; }
.sg-product__contact { display: grid; gap: 10px; margin-bottom: 24px; }
.sg-product__contact .sg-btn { width: 100%; min-height: 52px; font-size: 16px; }
.sg-btn--whatsapp { background: #1f8f4e; color: #fff; }
.sg-btn--whatsapp:hover { background: #17733e; color: #fff; }

.sg-seller {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--ink);
}
.sg-seller:hover { border-color: var(--ink); color: var(--ink); }
.sg-seller .sg-shop__logo { margin: 0; width: 52px; height: 52px; border: 0; font-size: 17px; flex-shrink: 0; }
.sg-seller strong { display: block; font-family: var(--font-display); font-size: 17px; }
.sg-seller span { font-size: 14px; color: var(--muted); }
.sg-seller .fa-chevron-right { margin-left: auto; color: var(--muted); }

.sg-prose { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.sg-prose h2, .sg-prose h3 { margin-top: 1.4em; }

.sg-safety {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--yellow-50);
    color: var(--ink-2);
    font-size: 14px;
}
.sg-safety strong { color: var(--ink); }

@media (max-width: 991.98px) {
    .sg-product { grid-template-columns: 1fr; gap: 28px; }
    .sg-product__info { position: static; }
}

/* --------------------------------------------------------------------------
   Pages éditoriales (à propos, aide, contact)
   -------------------------------------------------------------------------- */

.sg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.sg-split h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 0; }
.sg-split .sg-prose p:last-child { margin-bottom: 0; }

.sg-wide-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--sand-2); }
.sg-wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-steps ol.sg-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }

.sg-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.sg-benefits h2 { font-size: 26px; margin: 0 0 18px; }
.sg-benefits ul { list-style: none; margin: 0; padding: 0; }
.sg-benefits li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.sg-benefits li strong { color: var(--ink); }

.sg-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.sg-figures > div { padding: 20px 20px 0 0; }
.sg-figures > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sg-figures dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sg-figures dd { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1; }

.sg-cta { padding: 64px 32px; text-align: center; border-radius: var(--radius-lg); background: var(--ink); color: rgba(255, 255, 255, .8); }
.sg-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 12px; }
.sg-cta p { margin: 0 auto 28px; max-width: 520px; }

@media (max-width: 991.98px) {
    .sg-split, .sg-benefits { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767.98px) {
    .sg-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg-figures > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .sg-steps ol.sg-steps--4 { grid-template-columns: 1fr; }
    .sg-wide-photo { aspect-ratio: 4 / 3; }
}

.sg-contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.sg-contact__info { display: grid; gap: 32px; }
.sg-contact h2 { font-size: 22px; margin: 0 0 14px; }
.sg-contact__info ul { list-style: none; margin: 0; padding: 0; }
.sg-contact__info li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.sg-contact__info li span { font-size: 13px; color: var(--muted); }
.sg-contact__form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

@media (max-width: 991.98px) {
    .sg-contact { grid-template-columns: 1fr; gap: 32px; }
    .sg-contact__form { padding: 22px 18px; }
}

/* --------------------------------------------------------------------------
   Page boutique
   -------------------------------------------------------------------------- */

.sg-shophead { background: var(--surface); border-bottom: 1px solid var(--line); }
.sg-shophead__cover { height: clamp(160px, 22vw, 280px); background: var(--sand-2); overflow: hidden; }
.sg-shophead__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-shophead .sg-breadcrumb { margin: 18px 0 8px; }
.sg-shophead__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 0 0 32px; }
.sg-shophead__logo { width: 112px; height: 112px; margin: -64px 0 0; border-width: 4px; font-size: 34px; box-shadow: var(--shadow); }
.sg-shophead__info h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 10px; }
.sg-shophead__info > p { margin: 12px 0 0; color: var(--ink-2); max-width: 640px; }
.sg-shophead__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sg-shophead__place { font-size: 14.5px; color: var(--muted); }
.sg-shophead__place i { margin-right: 6px; }
.sg-shophead .sg-shophead__facts { font-size: 14px; color: var(--muted); }
.sg-shophead__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 380px; padding-top: 24px; }

@media (max-width: 991.98px) {
    .sg-shophead__row { grid-template-columns: auto minmax(0, 1fr); }
    .sg-shophead__actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-top: 0; }
}
@media (max-width: 575.98px) {
    .sg-shophead__row { grid-template-columns: 1fr; gap: 12px; }
    .sg-shophead__logo { width: 88px; height: 88px; margin-top: -52px; font-size: 26px; }
    .sg-shophead__actions .sg-btn { flex: 1; }
}

/* --------------------------------------------------------------------------
   Espace compte
   -------------------------------------------------------------------------- */

.sg-account { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.sg-account__side { position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 20px; }
.sg-account__user { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sg-account__user strong { font-family: var(--font-display); font-size: 17px; }
.sg-account__user span { font-size: 14px; color: var(--muted); }
.sg-account__nav { display: grid; gap: 2px; }
.sg-account__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 15px;
}
.sg-account__nav a i { width: 18px; text-align: center; color: var(--muted); }
.sg-account__nav a .sg-filter__n { margin-left: auto; }
.sg-account__nav a:hover { background: var(--sand); color: var(--ink); }
.sg-account__nav a.is-active { background: var(--ink); color: #fff; }
.sg-account__nav a.is-active i, .sg-account__nav a.is-active .sg-filter__n { color: rgba(255, 255, 255, .75); }
.sg-account__help { padding: 16px; border-radius: var(--radius); background: var(--sand); font-size: 14px; }
.sg-account__help p { margin: 4px 0 8px; color: var(--ink-2); }
.sg-account__help a { font-weight: 600; }
.sg-account__main { display: grid; gap: 24px; min-width: 0; }

.sg-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sg-panel__head { padding: 22px 28px 0; }
.sg-panel__head h2 { font-size: 21px; margin: 0; }
.sg-panel__head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.sg-panel__body { padding: 20px 28px 26px; margin: 0; }
.sg-panel__foot { padding-top: 8px; }
.sg-panel--danger { border-color: rgba(196, 36, 45, .35); }

.sg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; }
.sg-facts > div { padding: 12px 0; border-top: 1px solid var(--line); }
.sg-facts dt { font-size: 13px; font-weight: 500; color: var(--muted); }
.sg-facts dd { margin: 4px 0 0; font-weight: 600; }

.sg-toggles { list-style: none; }
.sg-toggles li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sg-toggles li:first-child { border-top: 0; padding-top: 0; }
.sg-toggles strong { display: block; font-weight: 600; }
.sg-toggles span { font-size: 14px; color: var(--muted); }

.sg-switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex-shrink: 0; }
.sg-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.sg-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong); transition: background-color .15s ease; }
.sg-switch span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.sg-switch input:checked + span { background: var(--green); }
.sg-switch input:checked + span::before { transform: translateX(18px); }
.sg-switch input:disabled + span { opacity: .55; cursor: not-allowed; }

.sg-danger { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sg-danger h2 { font-size: 19px; margin: 0 0 4px; }
.sg-danger p { margin: 0; color: var(--muted); font-size: 14.5px; }
.sg-btn--danger { color: var(--red); border-color: rgba(196, 36, 45, .45); }
.sg-btn--danger:hover { color: #fff; background: var(--red); border-color: var(--red); }

/* Menu du compte réductible (mécanique commune : css/side-menu.css, js/side-menu.js) */
#accountMenu.side-menu {
    --sm-text: var(--ink-2);
    --sm-icon: var(--muted);
    --sm-hover-bg: var(--sand);
    --sm-group-active-bg: var(--ink);
    --sm-active-bg: var(--ink);
    --sm-active-text: #fff;
    --sm-gutter: 0px;
    --sm-radius: var(--radius-sm);
    --sm-flyout-bg: var(--surface);
    --sm-flyout-text: var(--ink-2);
    --sm-flyout-title: var(--ink);
    --sm-flyout-border: var(--line);
    --sm-flyout-hover: var(--sand);
    --sm-flyout-shadow: var(--shadow);
}
#accountMenu .nav-group { margin: 0; }
#accountMenu .nav-group-toggle { gap: 12px; padding: 9px 12px; font-size: 15px; }
#accountMenu .nav-group-toggle:hover { color: var(--ink); }
#accountMenu .nav-group-toggle .nav-icon { width: 18px; }
#accountMenu .nav-group.active > .nav-group-toggle .nav-icon,
#accountMenu .nav-group.active > .nav-group-toggle .sg-filter__n { color: rgba(255, 255, 255, .75); }
#accountMenu .side-menu-collapse { width: 100%; margin: 0; padding: 7px 12px; font-size: 14px; }
#accountMenu .sg-account__help-mini { display: none; }

.side-menu-collapsed .sg-account { grid-template-columns: 64px minmax(0, 1fr); }
.side-menu-collapsed .sg-account__side { z-index: 30; }
.side-menu-collapsed #accountMenu .sg-account__user { justify-content: center; padding-bottom: 14px; }
.side-menu-collapsed #accountMenu .sg-account__user-text,
.side-menu-collapsed #accountMenu .sg-account__help { display: none; }
.side-menu-collapsed #accountMenu .sg-account__help-mini { display: block; margin-top: 8px; }
.side-menu-collapsed #accountMenu .nav-group { margin: 0; }
.side-menu-collapsed #accountMenu .nav-group-toggle { padding: 11px 0; }
.side-menu-collapsed #accountMenu .side-menu-collapse { width: 100%; margin: 0; padding: 7px 0; }
.side-menu-collapsed #accountMenu .nav-group-toggle .menu-badge { top: 0; right: 2px; padding: 0 5px; font-size: 11px; background: var(--yellow); color: var(--ink); }

@media (max-width: 991.98px) {
    .sg-account { grid-template-columns: 1fr; gap: 24px; }
    .sg-account__side { position: static; }
    .sg-account__nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
    .sg-account__nav .nav-group { flex-shrink: 0; }
    #accountMenu .nav-group-toggle { white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; }
    .sg-account__help { display: none; }
}
@media (max-width: 575.98px) {
    .sg-panel__head { padding: 18px 18px 0; }
    .sg-panel__body { padding: 16px 18px 20px; }
}

/* --------------------------------------------------------------------------
   Formulaires d'authentification
   -------------------------------------------------------------------------- */

.sg-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 160px); background: var(--surface); }
.sg-auth__media { position: relative; background: var(--ink); }
.sg-auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-auth__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 17, 13, 0) 45%, rgba(20, 17, 13, .78) 100%);
}
.sg-auth__quote {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 40px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    z-index: 1;
    max-width: 520px;
}
.sg-auth__body { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.sg-auth__card { width: 100%; max-width: 460px; }
.sg-auth__card h1 { font-size: 34px; margin-bottom: 8px; }

@media (max-width: 991.98px) {
    .sg-auth { grid-template-columns: 1fr; }
    .sg-auth__media { display: none; }
}

/* Champ piège anti-robots (formulaires publics) */
.sg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.sg-footer__news-error { margin: 6px 0 0; font-size: 13px; color: #ffb4b4; }

/* --------------------------------------------------------------------------
   Messages de retour
   -------------------------------------------------------------------------- */

.sg-flashes { display: grid; gap: 8px; padding-top: 16px; }
.sg-flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--radius); border: 1px solid transparent; font-size: 15px; }
.sg-flash p { margin: 0; flex: 1; }
.sg-flash > i { margin-top: 3px; }
.sg-flash--success { background: var(--green-50); border-color: rgba(14, 127, 65, .25); color: var(--green-700); }
.sg-flash--error { background: #fdecec; border-color: rgba(196, 36, 45, .25); color: #8f1a21; }
.sg-flash--warning { background: var(--yellow-50); border-color: rgba(242, 183, 5, .4); color: #6b4f00; }
.sg-flash--info { background: var(--sand); border-color: var(--line-strong); color: var(--ink-2); }
.sg-flash__close { border: 0; background: transparent; font-size: 20px; line-height: 1; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; }
.sg-flash__close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Compatibilité avec les anciennes vues
   -------------------------------------------------------------------------- */

.section-title { position: static; display: block; font-size: clamp(26px, 3vw, 34px); }
.section-title::before, .section-title::after { display: none; }
.section-title span { background: transparent !important; padding: 0 !important; }

.country-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--sand);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    text-shadow: none;
}
.country-badge.mali, .country-badge.burkina_faso, .country-badge.niger { background: var(--sand); color: var(--ink-2); text-shadow: none; }

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
