/* ==========================================================================
   Mon Petit Hortillon — Page vitrine SEO (style cohérent bleu pastel & sauge)
   ========================================================================== */

:root {
    --bg: #f4f8fc;
    --bg-card: #ffffff;
    --bg-soft: #eaf2fa;
    --bg-cream: #f8fbfe;
    --primary: #4b86be;
    --primary-dark: #2f6191;
    --primary-soft: #e3effa;
    --sage: #4f8c55;
    --sage-dark: #2f6636;
    --sage-soft: #e6f4e8;
    --amber-soft: #fef6e4;
    --ink: #1e2d3b;
    --ink-muted: #52677b;
    --border: #d4e2ef;
    --border-strong: #b8cde2;
    --radius: 14px;
    --shadow-sm: 0 4px 14px rgba(30, 58, 95, 0.06);
    --shadow-md: 0 14px 36px rgba(30, 58, 95, 0.11);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

.mph-wrap {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

/* --- HEADER COLLANT --- */
.mph-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.mph-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 62px;
}

.mph-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.2px;
}

.mph-brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7ec257, #4b86be);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(75, 134, 190, 0.25);
}

.mph-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.mph-links a {
    text-decoration: none;
    color: var(--ink-muted);
    font-weight: 600;
    font-size: 14.5px;
    transition: color 0.15s;
}

.mph-links a:hover {
    color: var(--primary-dark);
}

/* --- BOUTONS --- */
.mph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
    white-space: nowrap;
}

.mph-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    background: var(--bg-soft);
}

.mph-btn-primary {
    background: linear-gradient(135deg, #5da064, #3e7c45);
    color: #fff;
    border-color: #366f3d;
    box-shadow: 0 6px 18px rgba(79, 140, 85, 0.28);
}

.mph-btn-primary:hover {
    background: linear-gradient(135deg, #4f8c55, #336939);
    color: #fff;
    box-shadow: 0 8px 22px rgba(79, 140, 85, 0.36);
}

.mph-btn-lg {
    padding: 13px 24px;
    font-size: 15.5px;
    border-radius: 12px;
}

/* --- HERO --- */
.mph-hero {
    padding: 46px 0 54px 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(126, 194, 87, 0.14), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(75, 134, 190, 0.16), transparent 44%),
        linear-gradient(180deg, #f8fbfe 0%, #eef5fc 100%);
    border-bottom: 1px solid var(--border);
}

.mph-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    gap: 36px;
    align-items: center;
}

.mph-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    border: 1px solid #bfe0c3;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 14px;
}

.mph-hero h1 {
    margin: 0 0 14px 0;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.6px;
    color: #16324f;
}

.mph-hero h1 span {
    color: var(--sage-dark);
}

.mph-lead {
    margin: 0 0 22px 0;
    font-size: 16.5px;
    color: var(--ink-muted);
    max-width: 540px;
}

.mph-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.mph-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-dark);
}

.mph-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Fenêtre illustrée du potager */
.mph-preview-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mph-preview-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
}

.mph-dots {
    display: inline-flex;
    gap: 5px;
}

.mph-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
    background: #b8cde2;
}

.mph-dots i:first-child { background: #7ec257; }
.mph-dots i:nth-child(2) { background: #f5b942; }
.mph-dots i:nth-child(3) { background: #6aa2d4; }

.mph-preview-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mph-preview-pill {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

/* --- SECTIONS --- */
.mph-section {
    padding: 58px 0;
}

.mph-section-alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mph-sec-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 34px auto;
}

.mph-sec-head h2 {
    margin: 0 0 8px 0;
    font-size: clamp(23px, 2.7vw, 31px);
    color: #16324f;
    letter-spacing: -0.3px;
}

.mph-sec-head p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 15.5px;
}

/* --- 4 FONCTIONNALITÉS --- */
.mph-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mph-feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mph-feat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    padding: 6px;
}

.mph-feat-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.mph-feat-card h3 {
    margin: 2px 0 0 0;
    font-size: 16.5px;
    color: var(--primary-dark);
}

.mph-feat-card p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* --- DÉMO VIDÉO --- */
.mph-demo-box {
    background: var(--bg-cream);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.mph-video-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.mph-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.mph-demo-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--ink-muted);
}

/* --- GALERIE DES 20 CULTURES --- */
.mph-crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}

.mph-crop-chip {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(30, 58, 95, 0.04);
}

.mph-crop-chip img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

/* --- FAQ --- */
.mph-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mph-faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.04);
}

.mph-faq-item summary {
    font-weight: 700;
    font-size: 15.5px;
    color: var(--primary-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mph-faq-item summary::-webkit-details-marker {
    display: none;
}

.mph-faq-item summary::after {
    content: '+';
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.mph-faq-item[open] summary::after {
    content: '−';
}

.mph-faq-item p {
    margin: 10px 0 2px 0;
    font-size: 14.5px;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* --- BANDEAU CTA FINAL --- */
.mph-final-cta {
    background: linear-gradient(135deg, #e7f4e8 0%, #e3effa 100%);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mph-final-cta h2 {
    margin: 0 0 10px 0;
    font-size: clamp(22px, 2.5vw, 28px);
    color: #16324f;
}

.mph-final-cta p {
    margin: 0 auto 20px auto;
    max-width: 560px;
    color: var(--ink-muted);
    font-size: 15.5px;
}

/* --- FOOTER --- */
.mph-footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: #fff;
    font-size: 13.5px;
    color: var(--ink-muted);
}

.mph-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mph-footer-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* --- MODALE MENTIONS LÉGALES --- */
.mph-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(24, 38, 52, 0.45);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.mph-modal-bg.open {
    display: flex;
}

.mph-modal {
    position: relative;
    width: min(520px, 94vw);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: var(--shadow-md);
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.55;
}

.mph-modal h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: var(--primary-dark);
}

.mph-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-muted);
    font-size: 16px;
    cursor: pointer;
}

.mph-modal-close:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
    .mph-hero-grid {
        grid-template-columns: 1fr;
    }
    .mph-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mph-links {
        display: none;
    }
    .mph-hero {
        padding: 30px 0 38px 0;
    }
    .mph-features {
        grid-template-columns: 1fr;
    }
    .mph-section {
        padding: 40px 0;
    }
}

/* ==========================================================================
   PAGES GUIDES & FICHES CULTURES (COCON SÉMANTIQUE)
   ========================================================================== */
.mph-crop-chip-link {
    text-decoration: none;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.mph-crop-chip-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
}

.mph-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.mph-guide-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.mph-guide-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.mph-guide-card strong {
    color: var(--primary-dark);
    font-size: 15px;
}

.mph-guide-card span {
    font-size: 13.5px;
    color: var(--ink-muted);
    line-height: 1.45;
}

.mph-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--ink-muted);
    margin: 0 0 18px 0;
}

.mph-breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.mph-breadcrumb a:hover {
    text-decoration: underline;
}

.mph-article-hero {
    padding: 34px 0 38px 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(126, 194, 87, 0.13), transparent 42%),
        linear-gradient(180deg, #f8fbfe 0%, #eef5fc 100%);
    border-bottom: 1px solid var(--border);
}

.mph-article-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mph-article-sprite {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 8px;
}

.mph-article-sprite img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.mph-article-hero h1 {
    margin: 0 0 8px 0;
    font-size: clamp(24px, 3vw, 35px);
    line-height: 1.18;
    color: #16324f;
}

.mph-article-hero .mph-lead {
    margin: 0;
    max-width: 740px;
    font-size: 15.5px;
}

.mph-article-body {
    padding: 40px 0 54px 0;
}

.mph-article-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 28px;
    align-items: start;
}

.mph-prose {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.mph-prose h2 {
    margin: 26px 0 10px 0;
    font-size: 21px;
    color: #16324f;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bg-soft);
}

.mph-prose h2:first-child {
    margin-top: 0;
}

.mph-prose p {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--ink);
}

.mph-prose ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
    font-size: 15px;
}

.mph-prose li {
    margin-bottom: 6px;
}

.mph-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 16px 0 22px 0;
}

.mph-kpi-box {
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 10px 12px;
}

.mph-kpi-box span {
    display: block;
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 600;
}

.mph-kpi-box strong {
    font-size: 15px;
    color: var(--primary-dark);
}

.mph-tip-box {
    background: var(--sage-soft);
    border-left: 4px solid var(--sage);
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    margin: 16px 0;
    font-size: 14.5px;
    color: #1e3a24;
}

.mph-table-scroll {
    overflow-x: auto;
    margin: 12px 0 18px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.mph-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.mph-data-table th {
    background: var(--bg-soft);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: left;
    padding: 9px 11px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.mph-data-table td {
    padding: 9px 11px;
    border-bottom: 1px solid #eef3f8;
    vertical-align: middle;
}

.mph-data-table tr:last-child td {
    border-bottom: none;
}

.mph-data-table a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.mph-data-table a:hover {
    text-decoration: underline;
}

.mph-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px 0;
}

.mph-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.mph-tag.good {
    background: var(--sage-soft);
    color: #166534;
    border-color: #bfe0c3;
}

.mph-tag.bad {
    background: #fff1e6;
    color: #9a3412;
    border-color: #fed7aa;
}

.mph-tag.neutral {
    background: var(--bg-soft);
    color: var(--primary-dark);
    border-color: var(--border);
}

a.mph-tag:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.mph-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 78px;
}

.mph-aside-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.mph-aside-card.accent {
    background: linear-gradient(155deg, #e7f4e8 0%, #e3effa 100%);
    border-color: var(--border-strong);
}

.mph-aside-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #16324f;
}

.mph-aside-card p {
    margin: 0 0 12px 0;
    font-size: 13.5px;
    color: var(--ink-muted);
}

.mph-aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mph-aside-links a {
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--bg-cream);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.mph-aside-links a:hover {
    background: var(--bg-soft);
    border-color: var(--primary);
}

@media (max-width: 960px) {
    .mph-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mph-article-layout {
        grid-template-columns: 1fr;
    }
    .mph-aside {
        position: static;
    }
    .mph-kpi-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .mph-guide-grid {
        grid-template-columns: 1fr;
    }
    .mph-article-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .mph-prose {
        padding: 18px 16px;
    }
}
