:root {
    color-scheme: light;
    --ink: #23262b;
    --muted: #6b7280;
    --line: #e2e2df;
    --accent: #2f5d50;
    --accent-ink: #ffffff;
    --bg: #faf9f6;
    --card: #ffffff;
    --danger: #a3372f;
    --danger-bg: #fbeceb;
    --ok-bg: #eaf3ee;
    --hero-bg: #0d2c34;
    --hero-gold: #c19b76;
    --hero-teal: #0c7c8a;
    --hero-coral: #ff8c61;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    flex-wrap: wrap;
    gap: .75rem;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-accroche {
    font-weight: 400;
    font-size: .75rem;
    color: var(--muted);
}

nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
nav a:hover { text-decoration: underline; }

.link-button {
    background: none; border: none; padding: 0; margin: 0;
    color: var(--ink); font-size: .92rem; cursor: pointer; text-decoration: underline;
}

.inline-form { display: inline; }

.container { max-width: 880px; margin: 0 auto; padding: 1.5rem; }

.site-footer {
    max-width: 880px; margin: 3rem auto 1.5rem; padding: 0 1.5rem;
    font-size: .85rem; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.footer-note { margin-top: .5rem; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash-ok { background: var(--ok-bg); }
.flash-erreur { background: var(--danger-bg); color: var(--danger); }
.flash-erreur ul { margin: 0; padding-left: 1.2rem; }

h1 { font-size: 1.5rem; margin-top: 0; }
h2 { font-size: 1.15rem; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem; }
.field .aide { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
    width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; font: inherit;
}
textarea { min-height: 5rem; }
.checkbox-field { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .75rem; }
.checkbox-field input { margin-top: .3rem; }

button, .btn {
    display: inline-block;
    background: var(--accent); color: var(--accent-ink);
    border: none; padding: .55rem 1rem; border-radius: 6px;
    font: inherit; cursor: pointer; text-decoration: none;
}
button.secondaire, .btn.secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.danger, .btn.danger { background: var(--danger); }

.annonce-carte {
    display: flex; gap: 1rem; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; background: var(--card);
}
.annonce-carte img.avatar, .avatar-placeholder {
    width: 84px; height: 84px; border-radius: 8px; object-fit: cover; background: #ddd; flex-shrink: 0;
}
.badge { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: var(--ok-bg); margin-right: .3rem; }
.badge-attente { background: #fff2d9; }
.badge-rejetee { background: var(--danger-bg); color: var(--danger); }

.message-liste { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.message-bulle { max-width: 70%; padding: .5rem .75rem; border-radius: 10px; background: #eee; }
.message-bulle.moi { background: var(--accent); color: var(--accent-ink); align-self: flex-end; }

.avertissement {
    background: #fff2d9; border: 1px solid #e8c77a; border-radius: 8px; padding: 1rem; margin-bottom: 1.5rem; font-size: .9rem;
}

table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); font-size: .9rem; }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(at 12% 10%, rgba(12, 124, 138, .35) 0%, rgba(13, 44, 52, 0) 55%),
        radial-gradient(at 92% 95%, rgba(255, 140, 97, .18) 0%, rgba(13, 44, 52, 0) 55%),
        var(--hero-bg);
    color: #fff;
    border-radius: 18px;
    padding: 3rem 2.25rem;
    margin-bottom: 2rem;
}
.hero-inner { max-width: 620px; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
    padding: .4rem .9rem; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85);
    margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hero-gold); display: inline-block; }
.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 3.1rem;
    line-height: 1.05;
    margin: 0 0 .4rem;
    color: #fff;
}
.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.45rem;
    color: var(--hero-gold);
    margin: 0 0 1.5rem;
}
.hero-desc {
    font-size: .98rem;
    color: rgba(255, 255, 255, .72);
    max-width: 540px;
    margin: 0 0 1.85rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-hero-primary, .btn-hero-secondary {
    display: inline-block; padding: .7rem 1.5rem; border-radius: 999px;
    font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
}
.btn-hero-primary { background: var(--hero-gold); color: var(--hero-bg); border: none; }
.btn-hero-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.hero-note { font-size: .82rem; color: rgba(255, 255, 255, .5); margin: 0; }

@media (max-width: 640px) {
    .hero { padding: 2.25rem 1.5rem; }
    .hero h1 { font-size: 2.3rem; }
}
