/**
 * Drop WP — design des 9 sections de la home.
 * Tokens issus de tokens.css. Aucune valeur hex en dur ici.
 * Vibe zeemono : outdoor, vert saturé, bleu accent (ballon), photos lifestyle.
 */

/* ============================================================
   Layout commun (containers, espacements, headings)
   ============================================================ */
.dropwp-home > section {
    padding: var(--space-12) var(--container-pad);
}
.dropwp-home > section > * {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}
.dropwp-home > section:nth-of-type(even) {
    background: var(--color-surface);
}

/* Heading commun pour toutes les sections home */
.dropwp-home h2,
.dropwp-home-hero__title,
.dropwp-home-trust__heading,
.dropwp-home-usps__heading,
.dropwp-home-featured__title,
.dropwp-home-cats__title,
.dropwp-home-testimonials__title,
.dropwp-home-blog__title,
.dropwp-home-faq__title,
.dropwp-home-newsletter__title {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin: 0 0 var(--space-7);
    text-align: center;
}
.dropwp-home h2 { font-size: var(--text-3xl); line-height: var(--leading-tight); }

/* ============================================================
   1. HERO
   ============================================================ */
.dropwp-home-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-10) var(--container-pad) !important;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
@media (min-width: 860px) {
    .dropwp-home-hero {
        grid-template-columns: 1.05fr 1fr;
        gap: var(--space-10);
        min-height: 560px;
    }
}
.dropwp-home-hero__text { display: flex; flex-direction: column; gap: var(--space-4); }
.dropwp-home-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-brand);
    margin: 0;
}
.dropwp-home-hero__title {
    font-size: var(--text-4xl) !important;
    text-align: left !important;
    margin: 0 !important;
}
.dropwp-home-hero__subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: var(--color-muted);
    margin: 0;
    max-width: 36rem;
}
.dropwp-home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cta);
    color: var(--color-cta-text);
    padding: var(--space-4) var(--space-7);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    margin-top: var(--space-3);
    width: fit-content;
    transition: transform var(--transition-base), background var(--transition-base);
}
.dropwp-home-hero__cta:hover { background: var(--color-cta-hover); transform: translateY(-2px); }
.dropwp-home-hero__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   2. TRUST BAR (logos presse / "vu dans")
   ============================================================ */
.dropwp-home-trust { text-align: center; padding-block: var(--space-8) !important; }
.dropwp-home-trust__heading {
    font-family: var(--font-body) !important;
    font-size: var(--text-xs) !important;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-muted) !important;
    margin: 0 0 var(--space-5) !important;
    font-weight: var(--weight-semibold) !important;
}
.dropwp-home-trust__logos {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: var(--space-7);
    justify-content: center; align-items: center;
}
.dropwp-home-trust__logo img {
    max-height: 32px; width: auto;
    filter: grayscale(1) opacity(0.6);
    transition: filter var(--transition-base);
}
.dropwp-home-trust__logo:hover img { filter: grayscale(0) opacity(1); }

/* ============================================================
   3. USPs (Pourquoi nous)
   ============================================================ */
.dropwp-home-usps__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dropwp-home-usps__item {
    text-align: center;
    padding: var(--space-5);
}
.dropwp-home-usps__icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 64px; height: 64px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-soft);
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
}
.dropwp-home-usps__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}
.dropwp-home-usps__text {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: var(--leading-normal);
    margin: 0;
}

/* ============================================================
   4. FEATURED PRODUCTS (utilise le loop WC standard pour les cards)
   ============================================================ */
.dropwp-home-featured__title { margin-bottom: var(--space-2) !important; }
.dropwp-home-featured__subtitle {
    text-align: center;
    color: var(--color-muted);
    margin: 0 auto var(--space-8);
    max-width: var(--container-narrow);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
}
.dropwp-home-featured__grid ul.products {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dropwp-home-featured__grid ul.products li.product { width: auto !important; margin: 0 !important; }
.dropwp-home-featured__grid ul.products li.product a img {
    border-radius: var(--radius-lg);
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform var(--transition-base);
}
.dropwp-home-featured__grid ul.products li.product:hover a img { transform: scale(1.03); }
.dropwp-home-featured__grid .woocommerce-loop-product__title {
    font-family: var(--font-display);
    font-size: var(--text-lg) !important;
    font-weight: var(--weight-semibold) !important;
    color: var(--color-text);
    padding: var(--space-3) 0 var(--space-1) !important;
}
.dropwp-home-featured__grid .price {
    color: var(--color-text);
    font-weight: var(--weight-semibold);
}
.dropwp-home-featured__grid .price del { color: var(--color-muted); margin-right: var(--space-2); font-weight: var(--weight-regular); }
.dropwp-home-featured__grid .price ins { text-decoration: none; }

/* ============================================================
   5. CATÉGORIES PHARES
   ============================================================ */
.dropwp-home-cats__grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.dropwp-home-cats__link {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    text-decoration: none;
    background: var(--color-surface-2);
    isolation: isolate;
    transition: transform var(--transition-base);
}
.dropwp-home-cats__link:hover { transform: translateY(-4px); }
.dropwp-home-cats__link img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: transform var(--transition-base);
}
.dropwp-home-cats__link:hover img { transform: scale(1.05); }
.dropwp-home-cats__link::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.dropwp-home-cats__name {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
    padding: var(--space-5);
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
}

/* ============================================================
   6. TÉMOIGNAGES
   ============================================================ */
.dropwp-home-testimonials__grid {
    display: grid; gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.dropwp-home-testimonials__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex; flex-direction: column; gap: var(--space-3);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.dropwp-home-testimonials__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dropwp-home-testimonials__stars { display: inline-flex; gap: 2px; }
.dropwp-home-testimonials__card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin: 0;
    color: var(--color-text);
}
.dropwp-home-testimonials__card p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
}
.dropwp-home-testimonials__card footer {
    display: flex; align-items: center; gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-divider);
}
.dropwp-home-testimonials__card footer img {
    width: 40px; height: 40px;
    border-radius: var(--radius-pill);
    object-fit: cover;
}
.dropwp-home-testimonials__card footer span {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
}

/* ============================================================
   7. BLOG (derniers articles)
   ============================================================ */
.dropwp-home-blog__grid {
    display: grid; gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.dropwp-home-blog__card a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base);
}
.dropwp-home-blog__card a:hover { transform: translateY(-4px); }
.dropwp-home-blog__card img {
    width: 100%; height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.dropwp-home-blog__card h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin: var(--space-3) 0 var(--space-2);
    line-height: var(--leading-snug);
}
.dropwp-home-blog__card p {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/* ============================================================
   8. FAQ
   ============================================================ */
.dropwp-home-faq__list {
    list-style: none; padding: 0;
    max-width: var(--container-narrow);
    margin: 0 auto;
}
.dropwp-home-faq__item {
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}
.dropwp-home-faq__item details {
    padding: var(--space-5) 0;
}
.dropwp-home-faq__item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
    color: var(--color-text);
}
.dropwp-home-faq__item summary::-webkit-details-marker { display: none; }
.dropwp-home-faq__item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: var(--weight-regular);
    color: var(--color-muted);
    transition: transform var(--transition-base);
    line-height: 1;
}
.dropwp-home-faq__item details[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-accent);
}
.dropwp-home-faq__answer {
    margin: var(--space-3) 0 0;
    color: var(--color-text-soft);
    line-height: var(--leading-normal);
}

/* ============================================================
   9. NEWSLETTER
   ============================================================ */
.dropwp-home-newsletter {
    text-align: center;
    background: var(--color-brand) !important;
    color: var(--color-cta-text);
    border-radius: var(--radius-xl);
    margin: var(--space-10) var(--container-pad) !important;
    padding: var(--space-10) var(--container-pad) !important;
    max-width: calc(var(--container-max) - 2rem);
}
.dropwp-home-newsletter__title { color: #fff !important; margin: 0 0 var(--space-3) !important; }
.dropwp-home-newsletter__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-base);
    max-width: var(--container-narrow);
    margin: 0 auto var(--space-6);
    line-height: var(--leading-normal);
}
.dropwp-home-newsletter__form {
    display: flex; gap: var(--space-3);
    max-width: 480px; margin: 0 auto;
    flex-wrap: wrap;
}
.dropwp-home-newsletter__form label { flex: 1; min-width: 220px; }
.dropwp-home-newsletter__form input[type="email"] {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-pill);
    border: 0;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
    font-size: var(--text-base);
}
.dropwp-home-newsletter__form button {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-pill);
    border: 0;
    background: var(--color-cta);
    color: var(--color-cta-text);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    cursor: pointer;
    transition: background var(--transition-base);
}
.dropwp-home-newsletter__form button:hover { background: var(--color-accent); }
