/* ============================================================
   DOMAINE DE LA P'TITE TERRE — Design v2
   "Terroir Numérique" : culture nouvelle génération
   ============================================================ */

/* ── Google Fonts chargées dans header.php ── */

:root {
    --forest-deep:  #0c1a0f;
    --forest:       #1a3a24;
    --sage:         #3a6b4a;
    --leaf:         #68a876;
    --golden:       #c8953a;
    --golden-lt:    #e4b25a;
    --cream:        #f7f2e9;
    --warm-white:   #fdfaf5;
    --bark:         #2a1e0e;
    --text-main:    #1b2c1f;
    --text-muted:   #5a7262;
    --border:       rgba(58, 107, 74, 0.15);
    --shadow-sm:    0 2px 12px rgba(15, 30, 18, 0.08);
    --shadow-md:    0 8px 32px rgba(15, 30, 18, 0.12);
    --shadow-lg:    0 20px 60px rgba(15, 30, 18, 0.18);
    --radius-sm:    10px;
    --radius-md:    18px;
    --radius-lg:    28px;
    --font-head:    'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--warm-white);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { transition: color var(--transition); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* ── Utility ─────────────────────────────────────────────────── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: 100px 28px; }
.section-sm { padding: 60px 28px; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--golden);
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--golden);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    text-align: center;
}

.section-title-left {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 52px;
    text-align: center;
    line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--golden);
    color: #fff;
    box-shadow: 0 4px 20px rgba(200, 149, 58, 0.35);
}
.btn-primary:hover {
    background: var(--golden-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 149, 58, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--sage);
    border: 2px solid var(--sage);
}
.btn-outline:hover {
    background: var(--sage);
    color: #fff;
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--forest-deep);
    color: #fff;
}
.btn-dark:hover {
    background: var(--forest);
    transform: translateY(-2px);
    color: #fff;
}

.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ── Header ───────────────────────────────────────────────────── */
#main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 0 5%;
}

.header-transparent {
    background: transparent;
}

.header-scrolled {
    background: rgba(253, 250, 245, 0.98); /* var(--warm-white) */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(104, 168, 118, 0.12);
    box-shadow: 0 4px 30px rgba(12, 26, 15, 0.08);
    padding: 0 5%;
}
.header-scrolled .nav-container {
    height: 140px;
}
.header-scrolled .logo img {
    height: 100px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    height: 220px;
}

.logo img {
    height: 180px;
    object-fit: contain;
    transition: transform var(--transition);
    filter: drop-shadow(0 4px 12px rgba(12, 26, 15, 0.25));
}
.logo:hover img { transform: scale(1.04); }

.nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--forest); /* Vert foncé par défaut pour lisibilité sur blanc/crème */
    font-size: 0.92rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    transition: all var(--transition);
}

/* Cas des pages avec bannière sombre (header transparent) */
.header-white-links:not(.header-scrolled) .nav-links li a {
    color: #ffffff;
}
.header-white-links:not(.header-scrolled) .nav-cart {
    color: #ffffff !important;
}

/* Au scroll, tout redevient vert foncé sur fond clair */
.header-scrolled .nav-links li a,
.header-scrolled .nav-cart {
    color: var(--forest) !important;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--golden) !important;
    background: rgba(58, 107, 74, 0.05);
}

.header-white-links:not(.header-scrolled) .nav-links li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    font-size: 1rem;
    transition: all var(--transition);
}
.nav-cart:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--golden);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--forest-deep);
}

.menu-burger {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    order: 3;
    z-index: 3000;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--forest-deep);
}

.slider-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slider-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out, transform 10s ease-out;
    transform: scale(1.06);
}
.slider-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Dark gradient overlay — bottom-heavy so text pops */
.slider-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(10, 20, 12, 0.88) 0%,
        rgba(10, 20, 12, 0.45) 45%,
        rgba(10, 20, 12, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--golden-lt);
    background: rgba(200, 149, 58, 0.15);
    border: 1px solid rgba(200, 149, 58, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 760px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--golden-lt);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hero-scroll::before {
    content: '';
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.25);
}

/* ── Features Strip ──────────────────────────────────────────── */
.features-strip {
    background: var(--forest);
    padding: 28px 40px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
}
.feature-item i {
    color: var(--leaf);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Bento Grid (home) ────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
}

.bento-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.bento-wide { grid-column: span 7; }
.bento-narrow { grid-column: span 5; }
.bento-full { grid-column: span 12; }
.bento-third { grid-column: span 4; }
.bento-half { grid-column: span 6; }

.bento-dark {
    background: var(--forest);
    border-color: transparent;
    color: #fff;
}
.bento-dark h3, .bento-dark p { color: rgba(255,255,255,0.9); }

.bento-golden {
    background: var(--golden);
    border-color: transparent;
    color: #fff;
}
.bento-golden h3, .bento-golden p { color: rgba(255,255,255,0.95); }

.bento-leaf {
    background: var(--cream);
    border-color: transparent;
}

.bento-img {
    padding: 0;
    overflow: hidden;
}
.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.bento-img:hover img { transform: scale(1.04); }

.bento-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.bento-stat .stat-number {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--golden);
    line-height: 1;
    margin-bottom: 4px;
}
.bento-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.bento-icon {
    width: 56px; height: 56px;
    background: rgba(104, 168, 118, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--sage);
    transition: all 0.4s ease;
}
.bento-card:hover .bento-icon {
    transform: scale(1.1) rotate(8deg);
    background: var(--leaf);
    color: #fff;
}
.bento-dark .bento-icon {
    background: rgba(255,255,255,0.12);
    color: var(--leaf);
}
.bento-dark:hover .bento-icon {
    background: #fff;
    color: var(--forest);
}

.bento-golden .bento-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.bento-golden:hover .bento-icon {
    background: #fff;
    color: var(--golden);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.bento-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Mission Premium Cards ───────────────────────────────────── */
.section-mission {
    padding: 120px 0;
    background: var(--warm-white);
}

.mission-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mission-premium-card {
    position: relative;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-md);
}

.mission-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease;
    z-index: 0;
}

.mission-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 51, 36, 0) 0%, rgba(27, 51, 36, 0.95) 100%);
    z-index: 1;
    transition: opacity 0.6s ease;
}

.mission-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.mission-premium-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.mission-premium-card:hover .mission-card-img {
    transform: scale(1.1);
}

.mission-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.6rem;
    color: #fff;
    transition: all 0.4s ease;
}

.mission-premium-card:hover .mission-card-icon {
    background: var(--leaf);
    transform: scale(1.1) rotate(10deg);
}

.mission-card-content h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.mission-card-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1100px) {
    .mission-premium-grid {
        grid-template-columns: 1fr;
    }
    .mission-premium-card {
        height: 400px;
    }
}
.about-section {
    background: var(--forest-deep);
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}
.about-section::before {
    content: '';
    position: absolute;
    right: -200px; top: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(104,168,118,0.08) 0%, transparent 70%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text .section-label { color: #fff; }
.about-text .section-label::before { background: #fff; }

.about-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #ffffff !important;
    margin-bottom: 24px;
    font-weight: 700;
}
.about-text p {
    font-size: 1.1rem;
    color: #ffffff !important;
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 36px;
}
.pillar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(104,168,118,0.15);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.pillar i {
    color: var(--leaf);
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 1rem;
}
.pillar-text strong {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.pillar-text span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.about-badge {
    position: absolute;
    bottom: 28px; left: -28px;
    background: var(--golden);
    color: #fff;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.about-badge .badge-num {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.about-badge .badge-text {
    font-size: 0.78rem;
    opacity: 0.9;
}

/* ── Shop ─────────────────────────────────────────────────────── */
.shop-section {
    background: var(--cream);
    padding: 100px 40px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(104, 168, 118, 0.3);
}

.product-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cream);
    position: relative;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.07); }

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0e9 0%, #d0e4d2 100%);
    font-size: 3rem;
    color: var(--leaf);
}

.product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--forest);
    color: rgba(255,255,255,0.9);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.product-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--forest);
}

.product-stock {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}
.stock-ok { background: rgba(104,168,118,0.12); color: var(--sage); }
.stock-low { background: rgba(200,149,58,0.12); color: var(--golden); }
.stock-out { background: rgba(180,60,60,0.10); color: #b43c3c; }

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--forest);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-add-cart:hover {
    background: var(--sage);
    transform: translateY(-1px);
    color: #fff;
}
.btn-add-cart:disabled,
.btn-add-cart.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ── Course Cards ─────────────────────────────────────────────── */
.course-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.course-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--forest);
}
.course-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.85;
}
.course-card:hover .course-img img { transform: scale(1.05); opacity: 1; }

.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage);
    margin-bottom: 8px;
}
.course-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.course-body p { font-size: 0.88rem; color: var(--text-muted); flex: 1; margin-bottom: 18px; }

.course-price {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--golden);
}
.course-price.free { color: var(--sage); }

/* ── Wiki ──────────────────────────────────────────────────────── */
.wiki-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.wiki-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--leaf);
    color: inherit;
}
.wiki-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage);
    background: rgba(104,168,118,0.1);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.wiki-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.wiki-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Page Banner ───────────────────────────────────────────────── */
.page-banner {
    background: var(--forest);
    padding: 220px 40px 60px;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--warm-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-banner-dark {
    background: var(--forest-deep);
}
.page-banner-cream {
    background: var(--cream);
}
.page-banner-cream .page-banner-title,
.page-banner-cream .page-banner-sub {
    color: var(--text-main);
}
.page-banner-cream::after { background: var(--warm-white); }

.page-banner-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 14px;
    text-align: center;
}
.page-banner-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Forms ─────────────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e0e7e2;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--text-main);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(104,168,118,0.12);
}
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── Checkout / Cart ───────────────────────────────────────────── */
.checkout-container {
    max-width: 1200px;
    margin: 220px auto 60px;
    padding: 0 28px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.checkout-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.checkout-panel-head {
    padding: 22px 28px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-panel-head i { color: var(--sage); }
.checkout-panel-body { padding: 28px; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--cream);
    flex-shrink: 0;
}
.cart-item-name { font-weight: 600; font-size: 0.94rem; }
.cart-item-sub { font-size: 0.82rem; color: var(--text-muted); }
.cart-item-price { margin-left: auto; font-weight: 700; font-family: var(--font-head); }

/* ── Login / Auth ──────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 220px 20px 40px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo img { height: 288px; margin: 0 auto; }
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}
.auth-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ── Footer ────────────────────────────────────────────────────── */
footer {
    background: var(--forest-deep);
    color: rgba(255,255,255,0.75);
    padding: 72px 40px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 56px;
    max-width: 1240px;
    margin: 0 auto 56px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand img {
    height: 240px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 18px;
}
.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--leaf); }

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.6);
}
.footer-contact i {
    color: var(--leaf);
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}

/* ── Alerts / Messages ─────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success {
    background: rgba(104,168,118,0.1);
    color: var(--sage);
    border: 1px solid rgba(104,168,118,0.2);
}
.alert-error {
    background: rgba(180,60,60,0.08);
    color: #b43c3c;
    border: 1px solid rgba(180,60,60,0.15);
}
.alert-info {
    background: rgba(58,107,74,0.08);
    color: var(--forest);
    border: 1px solid rgba(58,107,74,0.15);
}
.alert-warning {
    background: rgba(200,149,58,0.1);
    color: #7a5a10;
    border: 1px solid rgba(200,149,58,0.2);
}

/* ── Account & Checkout Pages ───────────────────────────────────── */
.account-wrap,
.checkout-container {
    max-width: 1200px;
    margin: 220px auto 100px; /* Décalage pour le grand logo */
    padding: 0 28px;
}

.account-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .account-wrap,
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .account-wrap,
    .checkout-container {
        margin-top: 180px; /* Un peu moins sur mobile */
    }
}

.account-sidebar {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.account-sidebar-head {
    background: var(--forest);
    padding: 24px;
    color: #fff;
}
.account-sidebar-head h3 { font-size: 1rem; color: #fff; margin-bottom: 2px; }
.account-sidebar-head p { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

.account-nav { list-style: none; padding: 10px 0; }
.account-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all var(--transition);
}
.account-nav li a i { color: var(--sage); width: 18px; }
.account-nav li a:hover,
.account-nav li a.active {
    background: rgba(104,168,118,0.08);
    color: var(--sage);
}

.account-content-area {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

/* ── Table ─────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}
.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(104,168,118,0.04); }

/* Status badges */
.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}
.badge-green { background: rgba(104,168,118,0.12); color: var(--sage); }
.badge-gold  { background: rgba(200,149,58,0.12); color: var(--golden); }
.badge-red   { background: rgba(180,60,60,0.1); color: #b43c3c; }
.badge-gray  { background: rgba(90,114,98,0.1); color: var(--text-muted); }

/* ── Abonnements ───────────────────────────────────────────────── */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}
.sub-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}
.sub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sub-card.featured {
    border-color: var(--golden);
    box-shadow: 0 0 0 2px rgba(200,149,58,0.15);
}
.sub-card-head {
    background: var(--forest);
    padding: 28px 28px 24px;
    color: #fff;
}
.sub-card.featured .sub-card-head { background: var(--golden); }
.sub-card-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sub-card-price {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.sub-card-period { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.sub-card-body { padding: 24px 28px; }
.sub-features { list-style: none; margin-bottom: 24px; }
.sub-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.sub-features li i { color: var(--leaf); margin-top: 2px; flex-shrink: 0; }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .bento-wide { grid-column: span 12; }
    .bento-narrow { grid-column: span 12; }
    .bento-third { grid-column: span 6; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img-wrap { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .account-wrap { grid-template-columns: 1fr; }
    .features-strip { gap: 28px; padding: 22px 20px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 20px; }
    .about-section { padding: 72px 20px; }
    .shop-section { padding: 64px 20px; }
    .page-banner { padding: 100px 20px 50px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .hero-content { padding: 0 24px 64px; }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
    .hero-scroll { display: none; }

    .bento-third { grid-column: span 12; }
    .bento-half { grid-column: span 12; }

    .menu-burger { display: block; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: rgba(12, 26, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.16,1,0.3,1);
        z-index: 4000;
        display: flex;
    }
    .nav-links.mobile-active { right: 0; }
    .nav-links li a {
        font-size: 1.3rem;
        padding: 12px 20px;
        color: rgba(255,255,255,0.9);
    }
    .nav-links li a:hover { background: rgba(255,255,255,0.1); }

    .nav-container { height: 220px; }
    .logo img { height: 192px; }

    .auth-card { padding: 32px 24px; }
    .form-card { padding: 24px; }
    .checkout-container { margin-top: 90px; padding: 0 16px; }
    .account-wrap { margin-top: 90px; padding: 0 16px; }

    .about-pillars { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
}
