/* Carte de visite pierre-bertaud.fr : feuille de style autonome, sans dépendance */

:root {
    --bg: #0b1120;
    --card: #111a2e;
    --panel: rgba(255, 255, 255, 0.035);
    --line: rgba(255, 255, 255, 0.09);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #818cf8;
    --accent-strong: #4f46e5;
    --accent-hover: #4338ca;
    --green: #6ee7b7;
    --green-line: rgba(16, 185, 129, 0.4);
    --radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(900px 480px at 50% -120px, rgba(79, 70, 229, 0.28), transparent 70%),
        radial-gradient(700px 400px at 100% 100%, rgba(16, 185, 129, 0.08), transparent 70%),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.page {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: 48px 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Carte principale */

.card {
    background: linear-gradient(180deg, #16213a 0%, var(--card) 60%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

.avatar {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), var(--green));
    object-fit: cover;
}

.name {
    margin: 18px 0 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.role {
    margin: 6px 0 0;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--accent);
}

.place {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.pitch {
    margin: 18px auto 0;
    max-width: 24rem;
    font-size: 0.98rem;
    color: var(--soft);
}

.badges {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--soft);
    text-decoration: none;
}

.badge-cii {
    border-color: var(--green-line);
    background: rgba(16, 185, 129, 0.12);
    color: var(--green);
}

.badge-cii:hover {
    background: rgba(16, 185, 129, 0.2);
}

.cta {
    display: block;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s;
}

.cta:hover {
    background: var(--accent-hover);
}

.cta small {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #c7d2fe;
}

.contacts {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.contact:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Panneaux secondaires */

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px;
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.panel h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.panel p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--soft);
}

.offers {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.offers li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.offers li:first-child {
    border-top: 0;
}

.offer-name {
    color: var(--text);
}

.offer-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.16);
    font-size: 0.68rem;
    font-weight: 700;
    color: #c7d2fe;
    vertical-align: 1px;
}

.offer-price {
    flex-shrink: 0;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.more {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.more:hover {
    text-decoration: underline;
}

.stats {
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stats div {
    padding: 10px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    text-align: center;
}

.stats dt {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.stats dd {
    margin: 2px 0 0;
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--muted);
}

.panel-cii {
    border-color: var(--green-line);
    background: rgba(16, 185, 129, 0.07);
}

.panel-cii h2 {
    color: var(--green);
    font-size: 1rem;
}

.footer {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 360px) {
    .contacts {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

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