/* =========================================
   Exercice CSS - p_1201_JohnDoe
   Mise en forme moderne d'une biographie
   ========================================= */

:root {
    --hotpink: hotpink;
    --purple: purple;
    --bg: #faf7f2;
    --surface: #ffffff;
    --ink: #1a1a1f;
    --ink-soft: #5a5a66;
    --line: #ececef;
    --accent-soft: #fce7f3;
}

/* --- Reset léger --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    padding: 1em;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.65;
    /* Petit fond travaillé : dégradé subtil + pointillé */
    background-image:
        radial-gradient(ellipse at top right, rgba(255, 105, 180, 0.08), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(128, 0, 128, 0.06), transparent 55%);
}

/* --- Carte principale --- */
.card {
    background-color: var(--surface);
    width: 100%;
    max-width: 720px;
    padding: 64px 72px;
    border-radius: 4px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* Petit accent décoratif en haut à droite */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 4px;
    background: linear-gradient(90deg, var(--hotpink), var(--purple));
}

/* --- En-tête --- */
.hero {
    margin-bottom: 48px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 500;
    margin-bottom: 24px;
}

/* === H1 : hotpink + bordure inférieure 10px dotted purple === */
h1 {
    color: var(--hotpink);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 18px 0;
    border-bottom: 10px dotted var(--purple);
    padding-bottom: 24px;
}

/* --- Sous-titre métier --- */
.job-title {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* --- Bio --- */
.bio {
    margin-bottom: 48px;
}

.bio p {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 18px 0;
    max-width: 60ch;
}

.bio p:first-of-type::first-letter {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 3.4rem;
    font-weight: 600;
    float: left;
    line-height: 0.85;
    margin: 6px 12px 0 0;
    color: var(--purple);
}

/* === H2 : italique === */
h2 {
    font-size: 1.5em;
    font-style: italic;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
}

/* === Liste : fond gris clair, bordure 5px solid purple, padding === */
ul {
    background-color: lightgray;
    border: 5px solid var(--purple);
    padding: 28px 32px;
    list-style: none;
    margin: 0;
    border-radius: 2px;
}

ul li {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(128, 0, 128, 0.25);
    font-size: 1rem;
}

ul li:last-child {
    border-bottom: none;
}

.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple);
    font-weight: 600;
    min-width: 60px;
}

.value {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* === Liens en rouge === */
a {
    color: red;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

/* === Survol : pas de soulignement + couleur verte === */
a:hover {
    text-decoration: none;
    color: green;
}

/* --- Footer + lien Home --- */
.page-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.home-link:hover {
    transform: translateX(-3px);
    transition: transform 0.25s ease, color 0.25s ease;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .card {
        padding: 40px 28px;
    }

    ul li {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    h1 {
        border-bottom-width: 8px;
    }
}
