/* ============================================================
   LM Auto Moto École — Homepage
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --lm-accent:    #E85D04;
    --lm-accent-dk: #C44D00;
    --lm-dark:      #111111;
    --lm-dark-2:    #1C1C1C;
    --lm-text:      #1A1A1A;
    --lm-muted:     #6B7280;
    --lm-border:    #E5E7EB;
    --lm-head:      'Barlow Condensed', sans-serif;
    --lm-body:      'Source Sans 3', sans-serif;
    --lm-wrap:      1160px;
    --lm-radius:    6px;
}


/* ── Smooth scroll ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Utilitaires ───────────────────────────────────────────── */
.lm-wrap {
    max-width: var(--lm-wrap);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.lm-btn {
    display: inline-block;
    padding: .65em 1.6em;
    background: var(--lm-accent);
    color: #fff;
    font-family: var(--lm-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: var(--lm-radius);
    transition: background .2s;
    text-decoration: none;
}
.lm-btn:hover { background: var(--lm-accent-dk); color: #fff; }

.lm-btn--outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.4);
    color: #fff;
}
.lm-btn--outline:hover {
    background: rgba(255,255,255,.08);
    border-color: #fff;
    color: #fff;
}

.lm-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--lm-border);
    padding-bottom: .75rem;
}
.lm-section-head h2 {
    font-family: var(--lm-head);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0;
}
.lm-section-head__link {
    font-size: .875rem;
    color: var(--lm-accent);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.lm-section-head__link:hover { color: var(--lm-accent-dk); }

/* ── Héro ──────────────────────────────────────────────────── */
.lm-hero {
    background: var(--lm-dark);
    color: #fff;
    padding: 4rem 0;
}
.lm-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.lm-hero--no-img .lm-hero__grid { grid-template-columns: 1fr; max-width: 720px; }

.lm-hero__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lm-accent);
    margin: 0 0 .75rem;
}
.lm-hero__label a { color: inherit; text-decoration: none; }
.lm-hero__title {
    font-family: var(--lm-head);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
}
.lm-hero__title a { color: inherit; text-decoration: none; }
.lm-hero__title a:hover { color: var(--lm-accent); }
.lm-hero__excerpt { color: rgba(255,255,255,.7); line-height: 1.7; margin: 0 0 1.5rem; }
.lm-hero__meta { font-size: .825rem; color: rgba(255,255,255,.45); margin: 0 0 2rem; }

.lm-hero__img {
    border-radius: var(--lm-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}
.lm-hero__img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ── Présentation ──────────────────────────────────────────── */
.lm-intro {
    background: var(--lm-dark-2);
    color: #fff;
    padding: 5rem 0;
    overflow: hidden;
}
.lm-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lm-intro__eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lm-accent);
    margin-bottom: 1rem;
}
.lm-intro__title {
    font-family: var(--lm-head);
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.01em;
    margin: 0 0 1.25rem;
    color: #fff !important;
}
.lm-intro__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    margin: 0 0 1.25rem;
    max-width: 46ch;
}
.lm-intro__lead {
    font-size: .975rem;
    line-height: 1.7;
    color: rgba(255,255,255,.62);
    margin: 0 0 1.75rem;
    max-width: 46ch;
}
.lm-intro__tags {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.lm-intro__tags a {
    display: inline-block;
    padding: .3em .85em;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.lm-intro__tags a:hover {
    border-color: var(--lm-accent);
    color: #fff;
    background: rgba(232,93,4,.12);
}
.lm-intro__visual { display: flex; align-items: center; justify-content: center; }
.lm-intro__svg {
    width: 100%; max-width: 420px; height: auto;
    filter: drop-shadow(0 0 40px rgba(232,93,4,.18));
}
.lm-intro__photo {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--lm-radius);
    object-fit: cover;
    display: block;
}

/* ── Thématiques ───────────────────────────────────────────── */
.lm-categories { padding: 4rem 0; }
.lm-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.lm-cat-card {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.5rem 1.25rem;
    border: 1.5px solid var(--lm-border);
    border-radius: var(--lm-radius);
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lm-cat-card:hover {
    border-color: var(--lm-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(232,93,4,.12);
}
.lm-cat-card__name {
    font-family: var(--lm-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lm-text);
    letter-spacing: .01em;
}
.lm-cat-card__count { font-size: .8rem; color: var(--lm-muted); }

/* ── Derniers articles ─────────────────────────────────────── */
.lm-latest { padding: 4rem 0; background: #F9FAFB; }
.lm-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.lm-card {
    background: #fff;
    border-radius: var(--lm-radius);
    overflow: hidden;
    border: 1px solid var(--lm-border);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.lm-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }

.lm-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.lm-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lm-card:hover .lm-card__thumb img { transform: scale(1.04); }

.lm-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.lm-card__cat {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--lm-accent); margin: 0 0 .5rem;
}
.lm-card__cat a { color: inherit; text-decoration: none; }
.lm-card__title {
    font-family: var(--lm-head);
    font-size: 1.15rem; font-weight: 700;
    line-height: 1.25; margin: 0 0 auto; padding-bottom: .75rem;
}
.lm-card__title a { color: var(--lm-text); text-decoration: none; }
.lm-card__title a:hover { color: var(--lm-accent); }
.lm-card__meta { font-size: .775rem; color: var(--lm-muted); margin: 0; }

/* ── Pagination ────────────────────────────────────────────── */
.lm-latest .pagination { margin-top: 2.5rem; }
.lm-latest .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}
.lm-latest .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .6rem;
    font-family: var(--lm-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--lm-text);
    background: #fff;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
}
.lm-latest a.page-numbers:hover {
    border-color: var(--lm-accent);
    color: var(--lm-accent);
}
.lm-latest .page-numbers.current {
    background: var(--lm-accent);
    border-color: var(--lm-accent);
    color: #fff;
}
.lm-latest .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ── Auteur ─────────────────────────────────────────────── */
.lm-author {
    padding: 4.5rem 0;
    background: #fff;
    border-top: 1px solid #E5E7EB;
}
.lm-author .lm-author__inner {
    display: grid !important;
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 740px;
    margin-inline: auto;
}
.lm-author .lm-author__figure {
    margin: 0;
    flex-shrink: 0;
    line-height: 0;
}
.lm-author .lm-author__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid #E5E7EB;
    display: block;
}
.lm-author .lm-author__placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #1C1C1C;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: .05em;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lm-author .lm-author__eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #E85D04;
    display: block;
    margin: 0 0 .5rem;
}
.lm-author .lm-author__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .875rem;
    letter-spacing: .01em;
    line-height: 1.1;
}
.lm-author .lm-author__text {
    font-size: .9625rem;
    line-height: 1.75;
    color: #6B7280;
    margin: 0;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .lm-cat-grid        { grid-template-columns: repeat(2, 1fr); }
    .lm-article-grid    { grid-template-columns: repeat(2, 1fr); }
    .lm-hero__grid      { grid-template-columns: 1fr; }
    .lm-hero__img       { display: none; }
    .lm-intro__inner    { grid-template-columns: 1fr; gap: 2.5rem; }
    .lm-intro__visual   { display: none; }
}
@media (max-width: 640px) {
    .lm-cat-grid                        { grid-template-columns: 1fr 1fr; }
    .lm-article-grid                    { grid-template-columns: 1fr; }
    .lm-intro                           { padding: 3.5rem 0; }
    .lm-intro__desc                     { font-size: 1rem; }
    .lm-author .lm-author__inner        { grid-template-columns: 1fr !important; text-align: center; }
    .lm-author .lm-author__figure       { justify-self: center; }
    .lm-author .lm-author__placeholder  { margin-inline: auto; }
}
