/* ============================================================
   Maki Apporteurs — Design premium
   Palette : crème / marine / or
   ============================================================ */

:root {
    --marine: #16223D;
    --marine-light: #223559;
    --or: #C9A24B;
    --or-light: #E4C878;
    --creme: #F7F3EA;
    --creme-dark: #ECE4D2;
    --blanc: #FFFFFF;
    --texte: #1E2430;
    --texte-clair: #6B7280;
    --succes: #2F9E6E;
    --danger: #C0503E;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(22, 34, 61, 0.08);
    --shadow-lg: 0 20px 50px rgba(22, 34, 61, 0.14);
    font-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--creme);
    color: var(--texte);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--marine);
    line-height: 1.25;
    margin: 0 0 0.5em;
}

a { color: var(--marine); text-decoration: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--marine);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--creme);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav__logo span { color: var(--or); }

.nav__menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav__menu a {
    color: var(--creme);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.nav__menu a:hover { opacity: 1; }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.btn-or {
    background: linear-gradient(135deg, var(--or-light), var(--or));
    color: var(--marine);
    box-shadow: 0 8px 20px rgba(201, 162, 75, 0.35);
}
.btn-or:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 162, 75, 0.45); }
.btn-marine {
    background: var(--marine);
    color: var(--creme);
}
.btn-marine:hover { background: var(--marine-light); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: var(--marine);
    border: 1.5px solid var(--marine);
}
.btn-outline:hover { background: var(--marine); color: var(--creme); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
    background: radial-gradient(ellipse at top right, var(--marine-light), var(--marine) 60%);
    color: var(--creme);
    padding: 100px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23C9A24B' opacity='0.25'/%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero__content { position: relative; z-index: 1; }
.hero h1 {
    color: var(--creme);
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 780px;
    margin: 0 auto 18px;
}
.hero h1 span { color: var(--or-light); }
.hero p {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: 1.1rem;
    opacity: 0.85;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections & cartes ---------- */

.section { padding: 80px 0; }
.section-alt { background: var(--blanc); }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-title p { color: var(--texte-clair); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--or-light), var(--or));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.step__num {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--marine);
    color: var(--or-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ---------- Formulaires ---------- */

.form-card {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 520px;
    margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
    color: var(--marine);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #E3DECE;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--creme);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--or);
    background: var(--blanc);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--texte-clair); }
.form-check input { width: auto; margin-top: 3px; }

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-success { background: #E4F5EC; color: var(--succes); }
.alert-error { background: #FBEAE7; color: var(--danger); }

/* ---------- Dashboard ---------- */

.dash-header {
    background: var(--marine);
    color: var(--creme);
    padding: 40px 0 60px;
}
.dash-header h1 { color: var(--creme); margin-bottom: 4px; }
.dash-header p { opacity: 0.75; margin: 0; }

.dash-body { margin-top: -40px; padding-bottom: 60px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}
.stat-card {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.stat-card__label { font-size: 0.85rem; color: var(--texte-clair); font-weight: 600; }
.stat-card__value { font-family: 'Poppins', sans-serif; font-size: 2rem; color: var(--marine); font-weight: 700; margin-top: 6px; }
.stat-card__value.or { color: var(--or); }

.code-box {
    background: linear-gradient(135deg, var(--or-light), var(--or));
    border-radius: var(--radius);
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
    color: var(--marine);
}
.code-box strong { font-family: 'Poppins', sans-serif; font-size: 1.4rem; letter-spacing: 1px; }

.panel {
    background: var(--blanc);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}
.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; font-size: 0.9rem; }
thead th { color: var(--texte-clair); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--creme-dark); }
tbody tr { border-bottom: 1px solid var(--creme-dark); }
tbody tr:hover { background: var(--creme); }

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-new { background: #E7EEF9; color: #3A5A9B; }
.badge-progress { background: #FDF2DE; color: #B8802B; }
.badge-success { background: #E4F5EC; color: var(--succes); }
.badge-lost { background: #FBEAE7; color: var(--danger); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--marine);
    color: var(--creme);
    text-align: center;
    padding: 30px 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .nav__menu { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 22px; }
    .hero { padding: 70px 0 60px; }
    .section { padding: 56px 0; }
}
