/**
 * main.css — base globale.
 * Toutes les valeurs viennent des tokens (var(--…)). Aucun hex en dur ici.
 */

/* ---- Reset minimal ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---- Typographie globale ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
    margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); }

/* ---- Layout ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ---- Header ---- */
.site-header {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    padding: var(--space-4) 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.site-logo {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
    text-decoration: none;
}
.site-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: var(--space-5);
}
.site-nav a {
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    transition: color var(--transition-fast);
}
.site-nav a:hover { color: var(--color-brand); }
.site-cart {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
}

/* ---- Footer ---- */
.site-footer {
    margin-top: var(--space-12);
    padding: var(--space-7) 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}
.footer-nav ul {
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
}
.footer-nav a {
    text-decoration: none;
    font-size: var(--text-sm);
    color: var(--color-muted);
}
.footer-nav a:hover { color: var(--color-text); }
.footer-copy {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* ---- Utilitaire screen reader ---- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================================
   Section : Mosaïque clients vérifiés (UGC photos + avis)
   ============================================================ */
.dropwp-mosaic {
    padding: 4rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}
.dropwp-mosaic__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}
.dropwp-mosaic__kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.5rem;
}
.dropwp-mosaic__title {
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 0.75rem;
}
.dropwp-mosaic__intro {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Grille : carrousel horizontal sur mobile/tablette, 4 colonnes en desktop */
.dropwp-mosaic__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}
@media (min-width: 640px) {
    .dropwp-mosaic__grid { grid-auto-columns: 42%; }
}
@media (min-width: 960px) {
    .dropwp-mosaic__grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: auto;
        overflow-x: visible;
        gap: 1.5rem;
        scroll-snap-type: none;
    }
}

.dropwp-mosaic__card {
    scroll-snap-align: start;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.dropwp-mosaic__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    margin-bottom: 0.85rem;
}
.dropwp-mosaic__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dropwp-mosaic__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #d1d5db;
}
.dropwp-mosaic__quote {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 0.5rem;
    font-weight: 500;
}
.dropwp-mosaic__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.dropwp-mosaic__handle { font-weight: 600; color: #374151; }
.dropwp-mosaic__sep { color: #9ca3af; }
.dropwp-mosaic__stars { color: #f59e0b; letter-spacing: 0.05em; }
