/* ============================================================
   L'pieces — Design System Niveau 1
   ------------------------------------------------------------
   Doctrine : docs/DESIGN_SYSTEM.md §1
   Mantra : "Prévisible avant joli. Clair avant malin. Rapide avant riche."
   Profil cible : garagiste 55 ans Android 3G + cadre flotte iPhone 15
   → comprendre l'écran en 3 secondes.

   5 classes canoniques V1 (un concept = une classe) :
   - .lp-btn--primary   bouton CTA principal
   - .lp-card           carte de contenu
   - .lp-input          champ de saisie
   - .lp-section        section de page (espacement vertical cohérent)
   - .lp-grid           grille responsive auto-fill

   Variables CSS :root définies dans base.html. On les RÉUTILISE,
   on ne les redéclare pas (cohérence garantie).
   ============================================================ */

/* ---- Section de page : espacement vertical cohérent --------- */
.lp-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
}
.lp-section--tight { padding: 16px 20px; }
.lp-section--loose { padding: 56px 20px; }

/* ---- Grille responsive auto-fill ---------------------------- */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.lp-grid--tight { gap: 10px; }
.lp-grid--narrow { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---- Carte de contenu --------------------------------------- */
.lp-card {
    background: var(--bg-card, #faf9f7);
    border: 1.5px solid var(--border-subtle, #e5e7eb);
    border-radius: 16px;
    padding: 22px 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.lp-card:hover {
    border-color: var(--accent, #e85d4c);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.lp-card--clickable { cursor: pointer; }
.lp-card--clickable:hover { transform: translateY(-2px); }

/* ---- Bouton CTA principal ----------------------------------- */
.lp-btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent, #e85d4c);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    min-height: 48px; /* Apple HIG / Android — cible tactile ≥ 44px */
    transition: background 0.15s ease, transform 0.1s ease;
}
.lp-btn--primary:hover {
    background: var(--accent-hover, #d94c3b);
}
.lp-btn--primary:active {
    transform: scale(0.98);
}
.lp-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.lp-btn--primary--block { width: 100%; }

/* ---- Champ de saisie ---------------------------------------- */
.lp-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-subtle, #e5e7eb);
    border-radius: 12px;
    background: var(--bg-elevated, #fff);
    color: var(--text-primary, #1d1d1f);
    font-size: 16px; /* anti-zoom iOS */
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s ease;
}
.lp-input:focus {
    outline: none;
    border-color: var(--accent, #e85d4c);
}
.lp-input::placeholder {
    color: var(--text-muted, #999);
}

/* ---- Helpers texte sobres ---------------------------------- */
.lp-text-muted { color: var(--text-muted, #999); font-size: 0.85rem; }
.lp-text-soft  { color: var(--text-secondary, #555); font-size: 0.92rem; }

/* ============================================================
   Mobile-first : ajustements compact pour < 600px
   ============================================================ */
@media (max-width: 600px) {
    .lp-section { padding: 20px 14px; }
    .lp-section--loose { padding: 36px 14px; }
    .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .lp-grid--narrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-card { padding: 16px 14px; border-radius: 12px; }
    .lp-btn--primary { padding: 12px 16px; font-size: 0.95rem; }
}

/* ============================================================
   Tablette : 600px à 1024px
   ============================================================ */
@media (min-width: 600px) and (max-width: 1024px) {
    .lp-section { padding: 28px 24px; }
}
