/* =========================================================================
   Home page
   Loaded only on: home (render_page meta 'styles'). Shared rules: site.css.
   ========================================================================= */

/* =========================================================================
   Home page: blue hero, ranges, expertise, best sellers, mission (navy),
   private label, newsletter. Brand blue #4D67B5 (+ darker shades), green
   #8BC53F, navy #0F172A. Section titles share the "À propos" rhythm.
   ========================================================================= */

.home-hero,
.home-mission {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #E2E8F5;
}
.home-hero h1, .home-mission h2 { color: var(--white); }
.home-hero::before,
.home-mission::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Footer right after the last tinted section: no white strip between them. */
body:has(main > .home-hero) .site-footer { margin-top: 0; }

/* --- Eyebrows, heads, grids, links (shared) ----------------------------------- */

.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-dark);
}
.home-eyebrow::before,
.home-eyebrow-center::after {
    content: "";
    flex: none;
    width: 32px; height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}
.home-eyebrow-center { justify-content: center; text-align: center; }
/* On the blue hero / navy mission: a lighter green that keeps AA contrast. */
.home-eyebrow-light, .home-mission .home-eyebrow { color: #A5D65E; }
.home-eyebrow-light::before { background: rgba(255, 255, 255, 0.55); opacity: 1; }

.home-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.home-head h2 { margin-bottom: 0.35em; text-wrap: balance; }
.home-intro { margin: 0; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

.home-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 20px; max-width: 400px; }

.home-more { margin: 40px 0 0; text-align: center; }
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--blue-dark);
    text-decoration: none;
}
.home-link:hover { color: var(--blue); text-decoration: underline; }
.home-link .icon, .home-buttons .btn .icon, .btn-soft .icon, .home-product-more .icon { flex: none; transition: transform 0.2s; }
.home-link:hover .icon, .home-buttons .btn:hover .icon, .btn-soft:hover .icon, .home-product:hover .home-product-more .icon { transform: translateX(3px); }
.home-buttons { margin-top: 32px; }

/* Outline pill on a light background */
.btn-soft { border: 1.5px solid #C9D2EE; background: var(--white); color: var(--ink); font-size: 0.95rem; padding: 12px 26px; }
.btn-soft:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Photos: 4:5, rounded, with a green dot and a thin ring */
.home-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background: var(--blue-soft);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}
.home-photo picture { display: contents; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.home-dot {
    position: absolute;
    z-index: 2;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 6px rgba(139, 197, 63, 0.22), 0 8px 18px rgba(79, 122, 28, 0.35);
}
.home-dot-tr { top: -14px; right: -14px; }
.home-dot-tl { top: -14px; left: -14px; }
.home-ring {
    position: absolute;
    z-index: 2;
    width: 76px; height: 76px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    pointer-events: none;
}
.home-ring-bl { left: -30px; bottom: -30px; }
.home-ring-br { right: -26px; bottom: 26px; border-color: rgba(122, 146, 214, 0.55); width: 56px; height: 56px; }

/* Split sections (mission, private label, newsletter): text | media */
.home-split { display: grid; gap: 56px; align-items: center; }
.home-split-text h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); text-wrap: balance; }
.home-split-text > p:not(.home-eyebrow) { max-width: 540px; color: var(--muted); }
.home-split-media { width: 100%; max-width: 440px; margin: 0 auto; padding: 14px; }

/* --- 1. Hero ----------------------------------------------------------------- */

.home-hero {
    padding: 56px 0 72px;
    /* Darkest where the text is (top on mobile, left on wide screens): AA for every text. */
    background: linear-gradient(170deg, #24356E 0%, #2E4384 40%, #3A4F92 70%, #4D67B5 100%);
}
.home-hero::before {
    background:
        radial-gradient(circle at 78% 52%, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(139, 197, 63, 0.12), transparent 30%);
}
.home-hero-grid { display: grid; gap: 56px; align-items: center; }
.home-hero h1 {
    font-size: clamp(2.4rem, 7vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 0.45em;
    text-wrap: balance;
}
.home-hero-lead { max-width: 540px; margin: 0 0 24px; font-size: 1.06rem; color: #EEF1FA; }
.home-hero-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 0.9rem;
    color: #EEF1FA;
}
.home-hero-checks li { display: inline-flex; align-items: center; gap: 8px; }
.home-hero-checks .icon { flex: none; color: #A5D65E; }
.home-hero .btn-white { color: var(--blue-dark); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25); }

.home-hero-media { width: 100%; max-width: 440px; margin: 0 auto; padding: 16px 16px 30px 30px; }
.home-hero-photo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 90px rgba(255, 255, 255, 0.2), 0 40px 80px rgba(10, 18, 48, 0.4); }
.home-hero-pin {
    position: absolute;
    z-index: 2;
    right: -7px; bottom: 54px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
}
.home-glass {
    position: absolute;
    z-index: 3;
    left: -18px; bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}
.home-glass-small { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.home-glass-main { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* --- 2. Ranges ------------------------------------------------------------- */

.home-range {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blue-soft);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    transition: box-shadow 0.3s;
}
.home-range picture { display: contents; }
.home-range img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.home-range::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 32%, rgba(15, 23, 42, 0) 62%);
}
a.home-range:hover { color: var(--white); box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2); }
a.home-range:hover img { transform: scale(1.06); }
.home-range-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 22px 22px 24px; }
.home-range-eyebrow {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #A5D65E;
}
.home-range-title { margin: 0; font-size: 1.25rem; line-height: 1.25; color: var(--white); text-wrap: balance; }

/* --- 3. Expertise ------------------------------------------------------------ */

.home-card {
    padding: 26px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(28, 36, 52, 0.04);
    transition: box-shadow 0.25s;
}
.home-card:hover { box-shadow: var(--shadow); }
.home-card h3 { font-size: 1.05rem; margin-bottom: 0.45em; }
.home-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
}
.home-card:nth-child(even) .home-icon { background: var(--green-soft); color: var(--green-dark); }

/* --- 4. Best sellers ------------------------------------------------------- */

.home-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tint);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
}
.home-product:hover { color: var(--ink); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.home-product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--white); }
.home-product-media picture { display: contents; }
.home-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
.home-product:hover .home-product-media img { transform: scale(1.04); }
.home-product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.home-product-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--blue);
    color: var(--white);
}
.home-product-badge.is-festin { background: var(--green); color: var(--ink); }
.home-product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.home-product-label {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.home-product-name { margin: 4px 0 14px; font-size: 1rem; line-height: 1.35; flex: 1; }
.home-product-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-dark);
}

/* --- 5. Mission (navy) ------------------------------------------------------------ */

.home-mission { background: #0F172A; color: #CBD5E1; }
.home-mission::before {
    background:
        radial-gradient(circle at 24% 38%, rgba(77, 103, 181, 0.32), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(139, 197, 63, 0.08), transparent 30%);
}
.home-mission .home-split-text > p:not(.home-eyebrow) { color: #CBD5E1; }
.home-mission-photo { box-shadow: 0 0 80px rgba(77, 103, 181, 0.35), 0 40px 80px rgba(0, 0, 0, 0.4); }
.home-mission .btn-green { box-shadow: 0 10px 26px rgba(139, 197, 63, 0.28); }
.home-stats {
    list-style: none;
    margin: 64px 0 0;
    padding: 36px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 28px 32px;
}
.home-stats li { display: flex; flex-direction: column; gap: 4px; }
.home-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--white);
}
.home-stat-label { font-size: 0.9rem; color: #A9B8E8; }

/* --- 6. Private label ------------------------------------------------------- */

.home-private { isolation: isolate; }
.home-private .home-split-media { position: relative; max-width: 480px; }
.home-private .home-split-media::before {
    content: "";
    position: absolute;
    inset: 8% 4%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 103, 181, 0.16), transparent 70%);
    filter: blur(20px);
}
.home-tiles-card {
    position: relative;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
}
.home-tiles-card .home-ring { border-color: rgba(77, 103, 181, 0.35); width: 64px; height: 64px; left: -26px; bottom: -26px; }
.home-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-tiles li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 18px 12px;
    text-align: center;
    border-radius: var(--radius);
    background: var(--tint);
    border: 1px solid #EEF0F6;
}
.home-tiles h3 { margin: 0; font-size: 0.88rem; line-height: 1.3; letter-spacing: -0.01em; }
.home-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    box-shadow: 0 4px 12px rgba(28, 36, 52, 0.08);
}
.home-private .btn-primary { box-shadow: 0 10px 24px rgba(77, 103, 181, 0.3); }

/* --- 7. Newsletter ---------------------------------------------------------------- */

.home-newsletter { background: #F7FBF1; scroll-margin-top: 80px; }
.home-newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; max-width: 520px; }
.home-newsletter-form input[type="email"] {
    flex: 1 1 240px;
    min-width: 0;
    padding: 14px 22px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid #DCE2EE;
    border-radius: 999px;
}
.home-newsletter-form input[type="email"]::placeholder { color: #737B8C; }
.home-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(77, 103, 181, 0.15); }
.home-newsletter-form input[aria-invalid="true"] { border-color: #B42318; }
.home-newsletter-form .btn { flex: 0 0 auto; box-shadow: 0 10px 24px rgba(77, 103, 181, 0.25); }
.home-newsletter-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 520px;
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}
.home-newsletter-status .icon { flex: none; margin-top: 2px; }
.home-newsletter-status.is-ok { background: var(--green-soft); color: var(--green-dark); }
.home-newsletter-status.is-error { background: #FEF3F2; color: #B42318; }
.home-newsletter-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }
.home-newsletter-photo { aspect-ratio: 1; box-shadow: 0 0 80px rgba(139, 197, 63, 0.2), 0 30px 60px rgba(15, 23, 42, 0.14); }
.home-newsletter .home-split-media { max-width: 400px; }

.unsubscribe-back { margin-top: 28px; }

/* --- Scroll reveal: cards of a grid arrive one after the other ------------------- */

@media (prefers-reduced-motion: no-preference) {
    .home-grid > .is-visible:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s; }
    .home-grid > .is-visible:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s; }
    .home-grid > .is-visible:nth-child(n+4) { transition-delay: 0.22s, 0.22s, 0s; }
    .home-split .home-split-media.is-visible { transition-delay: 0.12s, 0.12s, 0s; }
}

/* --- Wider screens ------------------------------------------------------------------ */

@media (min-width: 640px) {
    .home-grid { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-range-title { font-size: 1.12rem; }
}

@media (min-width: 900px) {
    .home-hero {
        padding: 96px 0 112px;
        background: linear-gradient(105deg, #24356E 0%, #2E4384 36%, #3A4F92 54%, #4D67B5 100%);
    }
    .home-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 72px; }
    .home-hero-media { margin-right: 0; }
    .home-grid { max-width: 1000px; gap: 24px; }
    .home-range-title { font-size: 1.25rem; }
    .home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
    .home-mission .home-split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
    .home-mission .home-split-media { margin-left: 0; }
    .home-private .home-split-media, .home-newsletter .home-split-media { margin-right: 0; }
    .home-mission { padding: 104px 0 88px; }
    .home-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

