/* LeCoinDuPro — Index.css : styles strictement limités à la page d’accueil. */
.lc-home {
    --lc-navy: #173f5d;
    --lc-ink: #243f56;
    --lc-muted: #66798c;
    --lc-border: #e2e9ee;
    --lc-orange: #e57f22;
    color: var(--lc-ink);
    padding: 10px 0 56px;
    /* Surface utile pour 4 cartes sur un viewport d'environ 1440 px CSS.
       On reste centré indépendamment du .container de Bootstrap. */
    width: min(1280px, calc(100vw - 32px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.lc-home *, .lc-home *::before, .lc-home *::after { box-sizing: border-box; }
.lc-home a { text-decoration: none; }
.lc-welcome { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 25px 0 30px; border-bottom: 1px solid var(--lc-border); margin-bottom: 29px; }
/* Largeur du texte : toute la place restante à côté du bouton. */
.lc-welcome-copy { flex: 1 1 auto; min-width: 0; max-width: none; }
.lc-welcome h1 { font-size: clamp(29px, 2.55vw, 38px); line-height: 1.17; letter-spacing: -.036em; font-weight: 800; color: var(--lc-navy); margin: 0 0 13px; }
.lc-welcome h1 span { color: var(--lc-orange); }
.lc-welcome-lead { font-size: 14.5px; line-height: 1.7; color: var(--lc-muted); margin: 0; max-width: none; }
.lc-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; padding: 14px 18px; border-radius: 10px; background: var(--lc-orange); color: #fff !important; font-size: 14px; font-weight: 750; box-shadow: 0 5px 14px rgba(174,90,23,.14); transition: background .18s ease, transform .18s ease; }
.lc-primary-action:hover { background: #c86d18; transform: translateY(-2px); }
.lc-section-title { font-size: clamp(23px,2.3vw,29px); letter-spacing: -.028em; line-height: 1.25; font-weight: 800; color: var(--lc-navy); margin: 0 0 20px; }

/* Deux textes d’introduction sur une ligne en grand écran uniquement. */
@media (min-width: 1200px) {
    .lc-welcome h1,
    .lc-welcome-lead { white-space: nowrap; }
}

/* Grille responsive : 4 cartes sur grand écran, puis 3, 2 et 1.
   Une carte mesure environ 306 px CSS sur un viewport de 1440 px CSS.
   Sur un écran Retina x2 cela représente environ 612 px physiques. */
.lc-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px 18px;
}
.lc-category-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 0;
    background: #fff;
    box-shadow: 0 0 0 1px var(--lc-border), 0 4px 14px rgba(23,64,95,.055);
    transition: box-shadow .2s ease, transform .2s ease;
}
.lc-category-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #9dbed2, 0 9px 22px rgba(23,64,95,.11); }
.lc-home a:focus-visible { outline: 2px solid #237daf; outline-offset: 2px; }
/* Image sans voile sombre : la photo garde ses couleurs originales. */
.lc-category-photo {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    flex: 0 0 auto;
    background-color: #e3ecf2;
}
.lc-category-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lc-category-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: #9b4e14;
    color: #fff;
    font-size: .875rem;
    font-weight: 750;
    line-height: 1.25;
}
.lc-category-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 15px;
}
/* Tous les titres ont exactement deux lignes de hauteur, même les plus courts.
   Le texte intégral est disponible via l'attribut title du lien. */
.lc-category-heading {
    display: flex;
    align-items: center;
    height: 44px;
    min-height: 44px;
    margin: 0 0 11px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    letter-spacing: -.01em;
}
.lc-category-heading a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--lc-navy);
    overflow-wrap: anywhere;
}
.lc-category-heading a:hover {
    color: #176b9e;
    text-decoration: underline;
}
.lc-category-cta { border-top: 1px solid #edf1f5; margin-top: auto; padding-top: 11px; font-size: 12.5px; line-height: 1.2; font-weight: 800; color: #246c98; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lc-category-cta > span { font-size: 19px; line-height: 1; }
.lc-category-cta:hover { color: #12507a; text-decoration: underline; }
.lc-category-cta-leaf { color: #9b4e14; }
.lc-category-cta-leaf:hover { color: #76370c; }

/* Le breakpoint porte sur la largeur en pixels CSS du navigateur. */
@media (max-width: 1199.98px) {
    .lc-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lc-welcome { gap: 20px; }
}
@media (max-width: 899.98px) {
    .lc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lc-welcome { align-items: flex-start; flex-direction: column; gap: 19px; }
}
@media (max-width: 619.98px) {
    .lc-category-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lc-category-heading { font-size: 14px; }
    .lc-category-info { padding: 14px 15px 15px; }
}
@media (max-width: 575.98px) {
    .lc-home { padding: 0 0 36px; }
    .lc-welcome { padding: 16px 0 24px; margin-bottom: 25px; }
    .lc-welcome h1 { font-size: clamp(26px,7vw,33px); }
    .lc-welcome-lead { font-size: 14px; }
    .lc-primary-action { width: 100%; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-category-card, .lc-primary-action { transition: none !important; }
}
