/* SporeLife.ch — Guide Officinal — Pharmacy Portal */
/* ================================================= */

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
    color: #0b1120;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 120px; /* Space for fixed header */
}

/* Right nav in header */
.sl-glass-right {
    display: flex;
    align-items: center;
}
.sl-glass-nav-right {
    display: flex;
    gap: 24px;
}
.sl-glass-nav-right a {
    font-size: var(--nav-font-size, 11px);
    font-weight: var(--nav-font-weight, 700);
    letter-spacing: var(--nav-letter-spacing, 0.15em);
    text-transform: uppercase;
    color: var(--header-text, #fff);
    text-decoration: none;
    transition: color 0.3s;
}
.sl-glass-nav-right a:hover {
    color: var(--header-text-hover, #d4af37);
}
@media (max-width: 768px) {
    .sl-glass-nav-right { display: none; }
}

/* Mobile menu: ensure CSS variables are available + gold hover */
.sl-mobile-menu {
    --spore-gold: #d4af37;
    --spore-black: #0b1120;
}
.sl-submenu-list li a:hover {
    color: #d4af37 !important;
}

/* Footer override - full_width */
.slft .full_width { width: 100%; max-width: 100%; }

/* Footer - full width since no newsletter */
.slft-main {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

/* Footer nav wide layout */
.slft-nav-wide {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    width: 100%;
}
.slft-addr {
    color: #9ca3af;
    font-size: 12px;
}
@media (max-width: 768px) {
    .slft-nav-wide {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
}

@media (max-width: 768px) {
    body { padding-top: 96px; }
}

a { text-decoration: none; color: inherit; }

/* Main container */
.sl-pharma {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 0 40px;
}

/* ===== HEADER ===== */
.sl-pharma-header {
    padding: 80px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}
.sl-pharma-header h1 {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
}
.sl-pharma-header .subtitle {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #d4af37;
}
.sl-pharma-header .desc {
    max-width: 400px;
    text-align: right;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* ===== RÉPERTOIRE ===== */
.sl-repertoire-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}
.sl-repertoire-title h2 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
}
.sl-repertoire-title span {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.sl-product-list { border-top: 1px solid #e5e7eb; }

.sl-product-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 40px 16px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
}
.sl-product-row:hover { background: #f2f2ef; }

.sl-product-row .name-wrap {
    display: flex;
    align-items: center;
}
.sl-product-row .num {
    font-size: 12px;
    font-weight: 700;
    color: #d1d5db;
    margin-right: 24px;
    transition: color 0.3s;
}
.sl-product-row:hover .num { color: #0b1120; }

.sl-product-row h3 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    color: #9ca3af;
    transition: color 0.3s;
    margin: 0;
}
.sl-product-row:hover h3 { color: #0b1120; }

/* Tags */
.sl-product-tags { display: flex; gap: 8px; }
.sl-product-tag {
    border: 1px solid #d1d5db;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}
.sl-product-row:hover .sl-product-tag {
    border-color: #0b1120;
    background: #fff;
}

/* Reveal image on hover */
.sl-reveal-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 180px;
    height: 180px;
    opacity: 0;
    transition: all 0.4s ease-out;
    pointer-events: none;
    z-index: 5;
}
.sl-product-row:hover .sl-reveal-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.sl-reveal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== GARANTIES ===== */
.sl-garanties {
    background: #0b1120;
    color: #fff;
    padding: 64px 40px;
    border-radius: 2px;
}
.sl-garanties-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}
.sl-garantie-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.sl-garantie-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    flex-shrink: 0;
    transition: border-color 0.3s;
}
.sl-garantie-item:hover .sl-garantie-icon { border-color: #d4af37; }
.sl-garantie-item p { margin: 0; }
.g-title { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.g-sub { font-size: 9px; color: #9ca3af; }

/* ===== GRID SÉCURITÉ + CONSEIL ===== */
.sl-pharma-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.sl-securite {
    background: #f2f2ef;
    padding: 40px 64px;
    border-radius: 2px;
}
.sl-conseil {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 40px 64px;
    border-radius: 2px;
}
.sl-pharma-grid h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.sl-compat-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sl-dot-green {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}
.sl-dot-yellow {
    width: 8px; height: 8px;
    background: #eab308;
    border-radius: 50%;
    display: inline-block;
}
.sl-securite p { font-size: 14px; color: #4b5563; line-height: 1.6; }
.sl-securite ul {
    padding-left: 20px;
    margin: 0;
    list-style: disc;
}
.sl-securite ul li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 4px;
    line-height: 1.6;
}
.section-gap { margin-top: 24px; }

/* Conseil comptoir */
.sl-conseil-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.sl-conseil-header span {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}
.sl-conseil-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.sl-conseil-row .need { font-size: 14px; color: #4b5563; }
.sl-conseil-row .product {
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}
.sl-conseil-row .product-gold {
    background: #d4af37;
    color: #fff;
}

/* ===== FOOTER ===== */
.sl-pharma-footer {
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}
.sl-pharma-footer .footer-link { margin-top: 8px; }
.sl-pharma-footer a {
    color: #d4af37;
    font-weight: 600;
    transition: opacity 0.3s;
}
.sl-pharma-footer a:hover { opacity: 0.7; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .sl-pharma { gap: 40px; padding: 0 16px; }
    .sl-pharma-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0;
    }
    .sl-pharma-header .desc { text-align: left; }
    .sl-pharma-grid { grid-template-columns: 1fr; }
    .sl-securite, .sl-conseil { padding: 32px 24px; }
    .sl-garanties { padding: 40px 24px; }
    .sl-garanties-inner { flex-direction: column; align-items: flex-start; }
    .sl-reveal-img { display: none; }
    .sl-product-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 8px;
        position: relative;
    }
    /* Arrow indicator on mobile */
    .sl-product-row::after {
        content: '→';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #d4af37;
        font-weight: 700;
        transition: transform 0.3s;
    }
    .sl-product-row:active::after {
        transform: translateY(-50%) translateX(4px);
    }
    .sl-product-tags { flex-wrap: wrap; }
    /* 2-column pictos on mobile */
    .sl-garanties-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        align-items: start;
    }
    .sl-conseil-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
