:root {
    --forest:    #1a3d2e;
    --forest2:   #243d2e;
    --forest3:   #2e5a40;
    --gold:      #c9a84c;
    --gold-light:#e8d08a;
    --cream:     #f5f0e8;
    --warm:      #ede8de;
    --ink:       #1e1e1e;
    --muted:     #7a7065;
    --leaf:      #a8d4b0;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ── HERO PHOTO ── */
.hero {
    position: relative;
    height: clamp(240px, 50vw, 360px);
    overflow: hidden;
}
.hero img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(26,61,46,0.25) 0%,
        rgba(26,61,46,0.0) 35%,
        rgba(26,61,46,0.7) 100%);
}

/* Boutons overlay */
.back-btn {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    left: 16px; z-index: 10;
    height: 44px; border-radius: 22px;
    background: rgba(245,240,232,0.92);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 6px;
    padding: 0 16px 0 10px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, box-shadow 0.2s;
}
.back-btn:hover { background: rgba(245,240,232,1); box-shadow: 0 4px 18px rgba(0,0,0,0.2); }
.back-btn svg { width: 16px; height: 16px; stroke: var(--forest); }
.back-btn-label {
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--forest);
}

.jungle-btn {
    position: absolute;
    top: max(16px, env(safe-area-inset-top));
    right: 16px; z-index: 10;
    height: 44px; border-radius: 22px;
    background: rgba(245,240,232,0.92);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 6px;
    padding: 0 16px 0 12px;
    border: none; cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--forest);
}
.jungle-btn:hover { background: rgba(245,240,232,1); transform: scale(1.04); }
.jungle-btn.in-jungle { background: rgba(201,168,76,0.18); border: 1.5px solid rgba(201,168,76,0.5); }
.jungle-btn .btn-icon { font-size: 1.1rem; line-height: 1; }
.jungle-btn .btn-label { display: none; }
@media (min-width: 400px) { .jungle-btn .btn-label { display: inline; } }

/* Catégorie & difficulté */
.hero-cat {
    position: absolute;
    bottom: 14px; left: 18px;
    font-size: 0.58rem; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--gold-light);
    font-weight: 500;
}
.hero-diff {
    position: absolute;
    bottom: 14px; right: 14px;
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 6px;
}
.hero-diff-row { display: flex; align-items: center; gap: 6px; }
.diff-leaves { display: flex; gap: 2px; }
.diff-leaf { font-size: 13px !important; color: rgba(255,255,255,0.3); }
.diff-leaf.on { color: var(--gold-light); }
.diff-label {
    font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

/* Score pill */
.score-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(15,30,20,0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 20px; padding: 3px 10px 3px 7px;
    cursor: pointer;
}
.score-pill:hover { border-color: rgba(201,168,76,0.7); }
.score-ring {
    position: relative; width: 22px; height: 22px; flex-shrink: 0;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.48rem; font-weight: 600; color: #fff;
}
.score-lbl {
    font-size: 0.6rem; font-weight: 500;
    letter-spacing: 0.06em; color: rgba(255,255,255,0.9);
}
.score-lbl.sh { color: #7ec87e; }
.score-lbl.sm { color: var(--gold-light); }
.score-lbl.sl { color: #f08080; }

/* Score drawer */
.score-drawer {
    background: rgba(10,25,15,0.96);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 12px; padding: 13px 15px;
    min-width: 200px; display: none;
}
.score-drawer.open { display: block; }
.score-drawer-title {
    font-size: 0.55rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: rgba(201,168,76,0.7);
    font-weight: 500; margin-bottom: 10px;
}
.score-drawer-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.score-drawer-row:last-child { margin-bottom: 0; }
.score-drawer-label { font-size: 0.62rem; color: rgba(255,255,255,0.5); }
.score-drawer-bar-wrap { display: flex; align-items: center; gap: 6px; }
.score-drawer-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); width: 54px; overflow: hidden; }
.score-drawer-fill { height: 100%; border-radius: 2px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); width: 0%; }
.score-drawer-val { font-size: 0.58rem; color: rgba(255,255,255,0.35); min-width: 24px; text-align: right; }

/* ── PAGE HEADER (nom + latin sous la photo) ── */
.page-header {
    text-align: center;
    padding: 22px 20px 0;
}
.page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 7vw, 2.8rem);
    font-weight: 600; color: var(--forest); line-height: 1.1;
}
.hero-latin {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 1rem; font-weight: 300;
    color: var(--muted); display: block; margin-top: 4px;
}
.divider {
    width: 32px; height: 1px;
    background: var(--gold); margin: 14px auto;
}

.estimated-badge {
    display: none;
    align-items: center;
    gap: 6px;
    margin: 0 16px 12px;
    padding: 7px 12px;
    background: rgba(180,130,30,0.08);
    border-left: 3px solid rgba(180,130,30,0.5);
    border-radius: 0 6px 6px 0;
    font-size: 0.72rem;
    color: #8e6d1c;
    line-height: 1.4;
}
.estimated-badge svg { flex-shrink: 0; opacity: 0.7; }

/* ── CONTENT ── */
.content { padding: 0 16px; }

/* Section title */
.sec-title {
    font-size: 0.56rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted); padding: 20px 0 10px;
}

/* Description block */
.desc-block {
    margin: 0 0 4px;
    padding: 16px 16px 14px;
    background: linear-gradient(135deg, var(--forest) 0%, #2d6b4f 100%);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.desc-block::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(201,168,76,0.12);
}
.desc-block::after {
    content: '';
    position: absolute;
    bottom: -20px; left: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.desc-leaf {
    position: absolute;
    top: 10px; right: 14px;
    font-size: 1.8rem;
    opacity: 0.12;
    transform: rotate(20deg);
    pointer-events: none;
}
.desc-label {
    font-size: 0.56rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gold);
    font-weight: 500; margin-bottom: 7px; display: block;
}
.desc-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.97rem; font-weight: 400;
    color: rgba(245,240,232,0.9);
    line-height: 1.7; position: relative; z-index: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.desc-text.expanded { display: block; overflow: visible; }
.desc-more-btn {
    background: none; border: none; color: rgba(245,240,232,0.5);
    font-family: 'Jost', sans-serif; font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; padding: 8px 0 0; position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 4px;
}
.desc-more-btn svg { transition: transform 0.3s; }
.desc-more-btn.open svg { transform: rotate(180deg); }

/* ── BESOINS BARS ── */
.needs-grid { display: flex; flex-direction: column; gap: 0; }
.needs-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.need-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.need-row:last-child { border-bottom: none; }
.need-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.need-icon svg { width: 22px; height: 22px; }
.need-icon.water { background: #e4f1fb; color: #1565c0; }
.need-icon.water svg { stroke: #1565c0; }
.need-icon.sun { background: #fffde7; color: #b8860b; }
.need-icon.sun svg { stroke: #b8860b; }
.need-icon.humid { background: #e0f2f1; color: #00695c; }
.need-icon.humid svg { stroke: #00695c; }
.need-icon.fert { background: #f5f5f5; color: #546e7a; }
.need-icon.fert svg { stroke: #546e7a; }
.need-text { flex: 1; min-width: 0; }
.need-row { align-items: flex-start; }
.need-label-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.need-label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex-shrink: 0; width: 160px; }
.needs-card .need-row:first-child .need-label { width: auto; white-space: nowrap; }
.needs-card .need-row:first-child .need-label::after { content: ' (varie selon l\'environnement)'; letter-spacing: 0; text-transform: none; font-style: italic; font-weight: 400; }
.need-bar-col { width: 64px; flex-shrink: 0; }
.need-bar-track {
    height: 4px; background: rgba(0,0,0,0.07);
    border-radius: 3px; overflow: hidden; width: 64px;
}
.need-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.need-bar-graduation {
    display: flex; justify-content: space-between;
    width: 64px; margin-top: 3px;
}
.need-bar-graduation span {
    font-size: 0.44rem; color: rgba(0,0,0,0.25);
    line-height: 1;
}
.need-val { font-size: 0.8rem; font-weight: 500; color: var(--ink); margin-top: 2px; }
.score-range {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.score-range-track {
    position: relative;
    width: 120px;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    flex-shrink: 0;
}
.score-range-fill {
    position: absolute;
    height: 100%;
    border-radius: 2px;
    background: var(--gold);
}
.score-range-label {
    font-size: 0.65rem;
    color: var(--muted);
    white-space: nowrap;
}
.score-range-label strong { color: var(--forest); font-weight: 600; }
.need-seasons {
    flex-basis: 100%;
    display: flex; gap: 8px;
    padding: 8px 16px 4px 16px;
    border-top: 1px solid rgba(0,0,0,0.04);
}
.need-season {
    flex: 1;
    display: flex; flex-direction: column; gap: 2px;
}
.need-season-lbl { font-size: 0.62rem; color: var(--muted); }
.need-season-val { font-size: 0.82rem; font-weight: 500; color: var(--ink); }
.need-bar-wrap { display: none; }

/* ── SOL & ENTRETIEN ── */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cards-vapo-row { display: flex; gap: 10px; }
.cards-vapo-row .info-card.vapo { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cards-vapo-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.info-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 14px;
}
.info-card.full { grid-column: 1 / -1; }
.ic-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(26,61,46,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.ic-icon svg { width: 15px; height: 15px; stroke: var(--forest); }
.ic-label { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ic-val { font-size: 0.8rem; font-weight: 500; color: var(--ink); margin-top: 3px; line-height: 1.4; }

/* ── CROISSANCE & TOXICITE ── */
.tox-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}
.tox-card.tox-safe { border-left: 3px solid #7ec87e; }
.tox-card.tox-irritant { border-left: 3px solid var(--gold); }
.tox-card.tox-toxique { border-left: 3px solid #f08080; }
.tox-card.tox-dangereux { border-left: 3px solid #e03030; }
.tox-header {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px 10px; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tox-header-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(26,61,46,0.08);
    display: flex; align-items: center; justify-content: center;
}
.tox-header-icon svg { width: 14px; height: 14px; stroke: var(--forest); }
.tox-header-lbl { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tox-items { display: flex; }
.tox-item {
    flex: 1; padding: 10px 14px;
    border-right: 1px solid rgba(0,0,0,0.04);
}
.tox-item:last-child { border-right: none; }
.tox-subject { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.tox-subject svg { width: 22px; height: 22px; fill: var(--forest); opacity: 1; }
.tox-niveau { font-size: 0.8rem; font-weight: 500; }
.tox-niveau.safe { color: #3a8a3a; }
.tox-niveau.irritant { color: #a07020; }
.tox-niveau.toxique { color: #c03030; }
.tox-niveau.dangereux { color: #900; }
.tox-details {
    padding: 10px 14px;
    border-top: 1px solid rgba(0,0,0,0.04);
    font-size: 0.75rem; color: var(--muted); line-height: 1.6;
}

/* Arrosage détail */
.arrosage-notes { display: flex; flex-direction: column; gap: 0; }
.arrosage-note {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 14px; border-top: 1px solid rgba(0,0,0,0.04);
}
.arrosage-note-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.arrosage-note.manque .arrosage-note-icon { color: #5294c2; }
.arrosage-note.exces .arrosage-note-icon { color: #64b4a0; }
.arrosage-note-label { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.arrosage-note-text { font-size: 0.75rem; color: var(--ink); line-height: 1.5; }

/* ── À PROPOS ── */
.about-card {
    background: white; border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 20px 18px;
}
.about-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.about-icon {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(26,61,46,0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-icon svg { width: 16px; height: 16px; }
.about-title { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--forest); }
.about-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem; font-weight: 300; font-style: italic;
    color: var(--ink); line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.about-text.expanded { display: block; overflow: visible; }
.about-read-more {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px; background: none; border: none;
    color: var(--muted); font-family: 'Jost', sans-serif;
    font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; cursor: pointer; padding: 0;
}
.about-read-more svg { transition: transform 0.3s; }
.about-read-more.open svg { transform: rotate(180deg); }

/* ── FAQ ── */
.faq-card {
    background: #fff; border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06); overflow: hidden;
}
.faq-header {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.faq-header-icon { width: 28px; height: 28px; border-radius: 8px; background: rgba(26,61,46,0.08); display: flex; align-items: center; justify-content: center; }
.faq-header-icon svg { width: 14px; height: 14px; stroke: var(--forest); }
.faq-header-title { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--forest); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.04); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
    padding: 13px 16px; background: none; border: none;
    cursor: pointer; text-align: left;
}
.faq-q-text { font-size: 0.87rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-chevron { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--muted); transition: transform 0.25s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 16px 14px; font-size: 0.82rem; color: var(--muted); line-height: 1.65; }

/* ── ERREURS COURANTES ── */
.erreur-section { display: none; margin-top: 24px; }
.erreur-card {
    background: rgba(220,38,38,0.04); border-radius: 14px;
    border: 1px solid rgba(220,38,38,0.10);
    border-left: 3px solid #D97706;
    padding: 14px 16px; margin-bottom: 10px;
}
.erreur-card:last-child { margin-bottom: 0; }
.erreur-titre {
    font-size: 0.87rem; font-weight: 600;
    color: var(--ink); margin-bottom: 6px; line-height: 1.35;
}
.erreur-row {
    display: flex; gap: 8px; align-items: flex-start; margin-top: 5px;
}
.erreur-row-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.erreur-row-text { font-size: 0.79rem; color: var(--muted); line-height: 1.55; }
.erreur-row-text strong { color: var(--ink); font-weight: 500; }

/* ── CONSEIL EXPERT ── */
.expert-card {
    background: var(--forest);
    border-radius: 14px; padding: 18px;
    position: relative; overflow: hidden;
}
.expert-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.expert-title {
    font-size: 0.56rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(201,168,76,0.7);
    font-weight: 500; margin-bottom: 10px;
}
.expert-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-weight: 300; font-style: italic;
    color: rgba(245,240,232,0.85); line-height: 1.7;
}

/* ── PLANTES SIMILAIRES ── */
.related-section { margin-top: 24px; }
.related-links {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 10px;
}
.related-link {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid rgba(15,46,30,0.18);
    background: var(--warm);
    color: var(--primary);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem; font-weight: 400;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.related-link:hover {
    background: var(--primary);
    color: var(--cream);
    border-color: var(--primary);
}
.related-link--all {
    border-style: dashed;
    color: var(--muted);
    font-size: 0.73rem;
}
.related-link--all:hover {
    background: var(--forest);
    color: var(--cream);
    border-color: var(--forest);
}

/* ── PARTAGE ── */
.share-section { padding: 0; }
.share-label {
    font-size: 0.56rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted);
    padding: 20px 0 10px;
}
.share-buttons {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    text-decoration: none; transition: transform 0.15s, opacity 0.15s;
}
.share-btn:hover { transform: scale(1.08); opacity: 0.85; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-btn.pinterest { background: #e60023; color: #fff; }
.share-btn.twitter { background: #000; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.copy {
    background: var(--warm); color: var(--forest);
    border: 1px solid rgba(0,0,0,0.08);
}
.share-btn.pdf {
    background: var(--forest); color: var(--gold);
    border: 1.5px solid rgba(212,175,55,0.45);
    cursor: pointer;
}
.share-btn.pdf:hover { opacity: 1; border-color: var(--gold); transform: scale(1.08); }
.share-toast {
    font-size: 0.75rem; color: var(--muted);
    padding: 6px 0; display: none;
}
.share-toast.show { display: block; }

/* ── FOOTER ── */
.page-footer {
    margin-top: 30px;
    background: var(--forest);
    padding: 20px 16px;
    text-align: center;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem; font-weight: 300; color: rgba(255,255,255,0.3);
}
.footer-logo em { font-style: italic; color: rgba(201,168,76,0.5); }
.footer-year {
    font-size: 0.6rem; color: rgba(255,255,255,0.15);
    letter-spacing: 0.1em; margin-top: 4px;
}

/* ── TOAST ── */
#details-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: var(--forest); color: #fff;
    font-size: 0.75rem; padding: 9px 20px;
    border-radius: 18px;
    border: 1px solid rgba(201,168,76,0.3);
    z-index: 9999;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0; pointer-events: none;
    white-space: nowrap; font-family: 'Jost', sans-serif;
}

/* Animations */
@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.anim { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.anim-1 { animation-delay: 0.05s; }
.anim-2 { animation-delay: 0.12s; }
.anim-3 { animation-delay: 0.2s; }
.anim-4 { animation-delay: 0.28s; }
.anim-5 { animation-delay: 0.36s; }

/* ── IMPRESSION / PDF (format lettre 8½ × 11) ── */
@media print {
    @page { size: letter; margin: 12mm 16mm; }

    /* Reset global */
    * { animation: none !important; opacity: 1 !important; transition: none !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body { background: #fff !important; color: #1a1a1a !important;
           font-size: 8pt; line-height: 1.4; }
    body::before { display: none; }

    /* ── MASQUÉS EN IMPRESSION ── */
    .back-btn, .jungle-btn, .hero-overlay, .hero-cat, .hero-diff,
    .score-pill, .score-drawer, .estimated-badge,
    .desc-more-btn, .about-read-more, .share-section, .page-footer,
    #details-toast, .share-toast,
    .erreur-section,
    .score-range { display: none !important; }

    /* ── HERO : photo compacte, coupure interdite ── */
    .hero {
        height: 165px !important; border-radius: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
        break-inside: avoid; page-break-inside: avoid;
    }
    .hero img { border-radius: 0 !important; object-position: center 30%; }

    /* ── EN-TÊTE ── */
    .page-header {
        padding: 10px 0 7px !important;
        border-bottom: 1px solid #d4af37 !important;
        margin-bottom: 0 !important;
        break-inside: avoid; page-break-inside: avoid;
    }
    .page-header h1 { font-size: 15pt !important; color: #0f2e1e !important;
                      margin: 0 0 2px !important; line-height: 1.2 !important; }
    .hero-latin { font-size: 9pt !important; color: #8e6d1c !important; }
    .divider { display: none !important; }

    /* ── CONTENU ── */
    .content { padding: 8px 0 0 !important; }

    /* Section titres */
    .sec-title { font-size: 7pt !important; letter-spacing: 0.2em !important;
                 text-transform: uppercase !important; color: #8e6d1c !important;
                 padding: 8px 0 4px !important; margin: 0 !important;
                 border-bottom: none !important; }

    /* Portrait */
    #description-block { break-inside: avoid; page-break-inside: avoid;
                         margin-bottom: 8px !important; }
    .desc-block { padding: 8px 10px !important; border-radius: 3px !important;
                  border: 1px solid #e8e0d0 !important; background: #fdfaf6 !important; }
    .desc-leaf { display: none !important; }
    .desc-label { font-size: 7pt !important; letter-spacing: 0.18em !important; }
    .desc-text { font-size: 8pt !important; max-height: none !important;
                 overflow: visible !important; margin: 4px 0 0 !important;
                 -webkit-line-clamp: unset !important; }

    /* ─────────────────────────────────────────
       COUPURE DE PAGE après Besoins en soins
       overflow:visible obligatoire — overflow:hidden
       bloque les break-after dans Chrome/Safari
    ───────────────────────────────────────── */
    .needs-card {
        overflow: visible !important;  /* ← corrige le blocage Chrome/Safari */
        border: 1px solid #e0d8cc !important; border-radius: 3px !important;
        background: #fdfaf6 !important; box-shadow: none !important;
        padding: 6px 10px !important;
        break-after: page;          /* syntaxe moderne */
        page-break-after: always;   /* ancienne syntaxe */
    }
    .need-row { padding: 5px 0 !important; border-bottom: 1px solid #f0ebe0 !important;
                break-inside: avoid; page-break-inside: avoid; }
    .need-row:last-child { border-bottom: none !important; }
    .need-icon { width: 28px !important; height: 28px !important; flex-shrink: 0; }
    .need-icon svg { width: 18px !important; height: 18px !important; }
    .need-label { font-size: 7.5pt !important; font-weight: 600 !important; }
    .need-val { font-size: 8pt !important; }
    .arrosage-notes { margin-top: 5px !important; }
    .arrosage-note { padding: 4px 8px !important; margin-bottom: 3px !important;
                     break-inside: avoid; page-break-inside: avoid; }
    .arrosage-note-label { font-size: 7pt !important; }
    .arrosage-note-text { font-size: 7.5pt !important; margin: 1px 0 0 !important; }
    .arrosage-note-icon { width: 22px !important; }

    /* ── PAGE 2 : Sol & entretien + Sécurité + À propos + Conseil + FAQ ── */

    /* Sol & Entretien — grille 2 colonnes conservée */
    .content > div[style*="grid"] { gap: 7px !important; }
    .info-card { padding: 7px 8px !important; border-radius: 3px !important;
                 border: 1px solid #e0d8cc !important; background: #fdfaf6 !important;
                 box-shadow: none !important;
                 break-inside: avoid; page-break-inside: avoid; }
    .ic-label { font-size: 6.5pt !important; letter-spacing: 0.12em !important; }
    .ic-val { font-size: 8pt !important; margin-top: 1px !important; }
    .ic-icon { width: 18px !important; height: 18px !important; margin-bottom: 3px !important; }
    .ic-icon svg { width: 12px !important; height: 12px !important; }

    /* Sécurité */
    .tox-card { border-radius: 3px !important; box-shadow: none !important;
                padding: 8px 10px !important; margin-top: 8px !important;
                break-inside: avoid; page-break-inside: avoid; }
    .tox-header { margin-bottom: 6px !important; }
    .tox-header-lbl { font-size: 7.5pt !important; }
    .tox-niveau { font-size: 7pt !important; padding: 2px 6px !important; }
    .tox-details p { font-size: 7.5pt !important; margin: 3px 0 0 !important; }

    /* À propos — masqué (line-clamp infiable en impression, risque de déborder) */
    #about-section { display: none !important; }

    /* Conseil expert */
    #expert-section { margin-top: 8px !important;
                      break-inside: avoid; page-break-inside: avoid; }
    .expert-card { border-radius: 3px !important; box-shadow: none !important;
                   padding: 7px 10px !important;
                   border: 1px solid #c9ddd5 !important;
                   background: rgba(27,77,62,0.04) !important; }
    .expert-title { font-size: 7pt !important; margin-bottom: 2px !important; }
    .expert-text { font-size: 8pt !important; margin: 0 !important; }

    /* FAQ — 2 questions max pour tenir sur la page 2 */
    .faq-section { display: block !important; margin-top: 8px !important; }
    .faq-item:nth-child(n+3) { display: none !important; } /* max 2 questions */
    .faq-card { border: 1px solid #e0d8cc !important; border-radius: 3px !important;
                background: #fdfaf6 !important; box-shadow: none !important;
                padding: 4px 8px !important; }
    .faq-item { border-bottom: 1px solid #f0ebe0 !important;
                break-inside: avoid; page-break-inside: avoid; }
    .faq-item:last-child { border-bottom: none !important; }
    .faq-question { pointer-events: none; background: transparent !important;
                    padding: 6px 0 !important; }
    .faq-q-text { font-size: 7.5pt !important; font-weight: 600 !important;
                  color: #1a1a1a !important; }
    .faq-chevron { display: none !important; }
    .faq-answer { display: block !important; max-height: none !important;
                  overflow: visible !important; padding: 0 0 5px !important; }
    .faq-answer p { font-size: 7.5pt !important; margin: 0 !important;
                    color: #333 !important; line-height: 1.35 !important; }

    /* Watermark footer */
    .page-footer-print {
        display: block !important;
        text-align: center;
        padding: 8px 0 4px;
        margin-top: 10px;
        border-top: 1px solid #e0d5c0;
        font-family: 'Cormorant Garamond', serif;
        font-size: 9.5pt; color: #0f2e1e;
        letter-spacing: 0.08em;
        break-inside: avoid; page-break-inside: avoid;
    }
    .page-footer-print em { font-style: italic; color: #d4af37; }
    .page-footer-print small { display: block; font-family: 'Jost', sans-serif;
                                font-size: 6pt; letter-spacing: 0.2em; color: #8e6d1c;
                                text-transform: uppercase; margin-top: 2px; }
}
