:root {
    --ink: #22303c;
    --ink-soft: #5a6b78;
    --slate: #2c3e50;
    --gold: #c5a059;
    --ochre: #b8651b;
    --paper: #fbf8f3;
    --card: #ffffff;
    --line: #e7e0d5;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-title: 'Crimson Pro', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    background-image:
        radial-gradient(60rem 40rem at 12% -10%, #f4ece0 0%, rgba(244,236,224,0) 60%),
        radial-gradient(50rem 36rem at 95% 0%, #eef1f4 0%, rgba(238,241,244,0) 55%);
    background-attachment: fixed;
    line-height: 1.65;
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 2rem) 3rem;
}

/* ---------- Intro ---------- */

.intro {
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    text-align: center;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.intro h1 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(2rem, 5.5vw, 3rem);
    line-height: 1.15;
    color: var(--slate);
    margin-bottom: 1.1rem;
}

.intro h1::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 2px;
    margin: 1.1rem auto 0;
    background: var(--gold);
    opacity: 0.7;
}

.lede {
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    color: var(--ink-soft);
    text-wrap: pretty;
}

/* ---------- Cartes ---------- */

.cards {
    max-width: 62rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* Deux colonnes seulement quand chaque carte reste confortable à lire. */
@media (min-width: 56rem) {
    .cards { grid-template-columns: 1fr 1fr; }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(34, 48, 60, 0.04), 0 10px 24px -18px rgba(34, 48, 60, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-4px);
    border-color: #d9cdb8;
    box-shadow: 0 2px 4px rgba(34, 48, 60, 0.05), 0 22px 40px -22px rgba(34, 48, 60, 0.45);
}

.card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.banner {
    position: relative;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    background: #e9e2d6;
}

/* Sur téléphone, une bannière moins écrasée. */
@media (max-width: 34rem) {
    .banner { aspect-ratio: 16 / 10; }
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.card:hover .banner img { transform: scale(1.04); }

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(20, 28, 36, 0.80) 0%,
        rgba(20, 28, 36, 0.62) 24%,
        rgba(20, 28, 36, 0.30) 50%,
        rgba(20, 28, 36, 0.08) 76%,
        rgba(20, 28, 36, 0) 100%);
}

.banner-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.1rem 1.35rem;
    color: #fff;
}

.kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f0d9a8;
    margin-bottom: 0.3rem;
}

.banner-text h2 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.6vw, 1.9rem);
    line-height: 1.1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.body {
    padding: 1.35rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.body p {
    font-size: 0.96rem;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.go {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ochre);
}

.go::after {
    content: "→";
    display: inline-block;
    margin-left: 0.4em;
    transition: transform 0.25s ease;
}

.card:hover .go::after { transform: translateX(4px); }

/* ---------- Pied ---------- */

footer {
    max-width: 62rem;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: #8b98a3;
}

footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer a:hover { color: var(--ochre); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
