/* Coup de Pouce Local — cartes projets. CSS standard, sans compilation. */

.projects-section {
    --projects-cream: #faf8f1;
    --projects-paper: #fffefa;
    --projects-green: #245d45;
    --projects-ink: #243b30;
    --projects-muted: #526657;
    --projects-honey: #d4a43a;
    --projects-border: #dedfce;
    border-top: 1px solid var(--projects-border);
    background: var(--projects-cream);
    color: var(--projects-ink);
}

.projects-section .section-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .45rem .9rem;
    border: 1px solid #e5d39f;
    border-radius: 50rem;
    background: #f6ebc9;
    color: #665023;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.projects-section .section-title {
    margin-bottom: 1.25rem;
    color: var(--projects-ink);
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.projects-section .section-title em {
    color: var(--projects-green);
    font-style: normal;
}

.projects-section .section-description {
    color: var(--projects-muted);
    line-height: 1.8;
}

.projects-section .project-card {
    --project-accent: #245d45;
    --project-surface: #eaf0e2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--projects-border);
    border-radius: 1rem;
    background: var(--projects-paper);
    box-shadow: 0 6px 20px rgba(36, 59, 48, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.projects-section .project-card:hover,
.projects-section .project-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--project-accent);
    box-shadow: 0 12px 28px rgba(36, 59, 48, .09);
}

.projects-section .project-card--green,
.projects-section .project-card--blue,
.projects-section .project-card--violet {
    --project-accent: #245d45;
    --project-surface: #eaf0e2;
}

.projects-section .project-card--honey,
.projects-section .project-card--orange {
    --project-accent: #8a671a;
    --project-surface: #f6edcf;
}

.projects-section .project-card--sage,
.projects-section .project-card--cyan,
.projects-section .project-card--pink {
    --project-accent: #526c4c;
    --project-surface: #edf0e4;
}

.projects-section .project-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 1.75rem;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--projects-border);
    background: var(--project-surface);
}

.projects-section .project-card__pattern,
.projects-section .project-card__glow {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 150px;
    height: 150px;
    border: 1px solid var(--project-accent);
    border-radius: 0;
    background: transparent;
    clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
    filter: none;
    opacity: .12;
    pointer-events: none;
    background: var(--project-accent);
}

.projects-section .project-card__logo {
    position: relative;
    display: block;
    width: auto;
    max-width: 100%;
    height: 110px;
    object-fit: contain;
    padding: .75rem;
    border: 1px solid rgba(36, 59, 48, .08);
    border-radius: .85rem;
    background: #fff;
}

.projects-section .project-card__initial {
    position: relative;
    color: var(--project-accent);
    font-family: Georgia, serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.2;
}

.projects-section .project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 1.5rem;
}

.projects-section .project-card__eyebrow {
    color: var(--project-accent);
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.projects-section .project-card__title {
    margin: .65rem 0 .75rem;
    color: var(--projects-ink);
    font-family: Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.projects-section .project-card__content {
    color: var(--projects-muted);
    font-size: .9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    overflow-wrap: anywhere;
}

.projects-section .project-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 46px;
    margin-top: auto;
    padding: .75rem 1rem;
    border: 1px solid var(--projects-green);
    border-radius: .55rem;
    background: var(--projects-green);
    color: #fff;
    font-size: .85rem;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
}

.projects-section .project-card__link:hover {
    color: #fff;
    background: #194632;
    border-color: #194632;
}

.projects-section .project-card__link:focus-visible {
    outline: 3px solid #a57616;
    outline-offset: 4px;
}

.projects-section .project-card__soon {
    margin-top: auto;
    padding: .45rem .7rem;
    border-radius: .5rem;
    background: #f1f2e9;
    color: var(--projects-muted);
    font-size: .8rem;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .projects-section .project-card__visual {
        min-height: 160px;
        padding: 1.4rem;
    }

    .projects-section .project-card__logo {
        height: 95px;
    }

    .projects-section .project-card__body {
        padding: 1.25rem;
    }

    .projects-section .project-card__title {
        font-size: 1.45rem;
    }

    .projects-section .project-card__link {
        width: 100%;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .projects-section .project-card {
        transition: none;
    }

    .projects-section .project-card:hover,
.projects-section .project-card:focus-within {
        transform: none;
    }
}
