/* ===== Skyline RP — Style global ===== */
:root {
    --tan: #d4a574;
    --tan-dark: #b88955;
    --tan-light: #e6c194;
    --dark: #060418;
    --dark-2: #0d0a25;
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #6b7280;
    --card-border: #e5e7eb;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header / Nav ===== */
.site-header {
    background: var(--tan);
    border-bottom: 1px solid var(--tan-dark);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    font-size: 14px;
    color: #2b2014;
}

.nav a {
    transition: color .15s ease;
}
.nav a:hover { color: #fff; }
.nav .nav-link.active { color: #fff; font-weight: 600; }

.nav .logo {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-weight: 700;
    font-size: 12px;
    color: var(--tan-dark);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: #c8c8d4;
    padding: 36px 24px 20px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}
.footer-inner h4 {
    color: var(--tan);
    margin-bottom: 12px;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: 6px; font-size: 14px; }
.footer-inner a:hover { color: var(--tan); }
.footer-bottom {
    max-width: 1200px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid #1c1840;
    font-size: 13px;
    text-align: center;
    color: #6e6a8a;
}

/* ===== Layout général ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.page-title {
    text-align: center;
    font-size: 44px;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 60px 0 50px;
    color: #111;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #111;
}

/* ===== Home grid ===== */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 320px 280px;
    gap: 14px;
    margin-top: 14px;
}
.home-grid .tile {
    background: #d9d9d9;
    border-radius: 4px;
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease;
}
.home-grid .tile:hover { transform: translateY(-3px); }
.home-grid .tile h3 {
    font-size: 22px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.home-grid .tile p {
    font-size: 14px;
    opacity: .9;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.home-grid .tile.big { grid-row: span 1; }
.home-grid .tile.bg-1 { background: linear-gradient(135deg, #4a3a2a, #d4a574); grid-column: 1; grid-row: 1; }
.home-grid .tile.bg-2 { background: linear-gradient(135deg, #1a1838, #4a3a6a); grid-column: 2; grid-row: 1; }
.home-grid .tile.bg-3 { background: linear-gradient(135deg, #2a1a1a, #8a5a3a); grid-column: 1; grid-row: 2; width: 48%; }
.home-grid .tile.bg-4 { background: linear-gradient(135deg, #2a3a4a, #5a7a9a); grid-column: 1; grid-row: 2; margin-left: calc(48% + 14px); width: calc(52% - 14px); }

/* simpler: rebuild grid */
.home-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 14px; }
.tile-1 { grid-column: 1 / span 4; grid-row: 1 / span 2; background: linear-gradient(135deg, #4a3a2a 0%, var(--tan) 100%); }
.tile-2 { grid-column: 5 / span 2; grid-row: 1 / span 2; background: linear-gradient(135deg, #1a1838, #4a3a6a); }
.tile-3 { grid-column: 1 / span 2; grid-row: 3 / span 2; background: linear-gradient(135deg, #2a1a1a, #8a5a3a); }
.tile-4 { grid-column: 3 / span 2; grid-row: 3 / span 2; background: linear-gradient(135deg, #2a3a4a, #5a7a9a); }
.tile-5 { grid-column: 5 / span 2; grid-row: 3; background: linear-gradient(135deg, #3a2a4a, #b88955); }
.tile-6 { grid-column: 5 / span 2; grid-row: 4; background: linear-gradient(135deg, #060418, #2a2a4a); }

/* ===== Pricing / Boutique cards ===== */
.boutique-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.cat-btn {
    background: #fff;
    border: 1.5px solid var(--card-border);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
}
.cat-btn:hover { border-color: var(--tan); color: var(--tan-dark); }
.cat-btn.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.pricing-card.featured {
    border-color: var(--dark);
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.plan-desc {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}
.plan-price {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1;
}
.plan-price .per {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}
.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}
.plan-features li {
    padding: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-features li::before {
    content: "✓";
    color: #2b2014;
    font-weight: 700;
}

.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1.5px solid var(--card-border);
    background: #fff;
    color: var(--text);
    transition: all .2s ease;
    font-family: inherit;
    text-decoration: none;
}
.btn:hover { border-color: var(--dark); }
.btn-primary {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
.btn-primary:hover { background: #1a1640; }

.btn-tan {
    background: var(--tan);
    border-color: var(--tan-dark);
    color: #2b2014;
}
.btn-tan:hover { background: var(--tan-dark); color: #fff; }

/* ===== News / Updates ===== */
.section {
    margin: 70px 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.news-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); }
.news-cover {
    height: 160px;
    background: linear-gradient(135deg, var(--tan-dark), var(--tan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}
.news-card.dark .news-cover { background: linear-gradient(135deg, #1a1838, #4a3a6a); }
.news-card.brown .news-cover { background: linear-gradient(135deg, #2a1a1a, #8a5a3a); }
.news-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-date {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.news-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}
.news-excerpt {
    color: var(--muted);
    font-size: 14px;
    flex: 1;
}

/* ===== Updates timeline ===== */
.updates {
    display: grid;
    gap: 14px;
}
.update-item {
    background: #fff;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--tan);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    align-items: center;
}
.update-item.major { border-left-color: var(--dark); }
.update-version {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}
.update-date {
    color: var(--muted);
    font-size: 12px;
}
.update-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
}
.update-content p {
    color: var(--muted);
    font-size: 13.5px;
}
.tag {
    background: var(--tan-light);
    color: #2b2014;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tag.fix { background: #e0e7ff; color: #1e40af; }
.tag.new { background: #dcfce7; color: #166534; }

/* ===== Forms (Contact) ===== */
.form-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fafafa;
    transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--tan);
    background: #fff;
}
.form-row textarea { resize: vertical; min-height: 130px; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== Reglement ===== */
.rules {
    max-width: 900px;
    margin: 0 auto;
}
.rule-block {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.rule-block h3 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 18px;
    border-bottom: 2px solid var(--tan);
    padding-bottom: 8px;
    display: inline-block;
}
.rule-block ol, .rule-block ul {
    padding-left: 22px;
    color: #333;
}
.rule-block li {
    margin-bottom: 8px;
    font-size: 14.5px;
}

/* ===== Skyline RP page ===== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1640 60%, var(--tan-dark) 140%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
    border-radius: var(--radius);
    margin-top: 24px;
}
.hero h1 {
    font-size: 52px;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero p {
    font-size: 17px;
    opacity: .85;
    max-width: 700px;
    margin: 0 auto 28px;
}
.hero .btn-tan { display: inline-block; width: auto; padding: 14px 32px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 50px;
}
.feature {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.feature .icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--tan-light);
    color: #2b2014;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.feature h4 { margin-bottom: 6px; font-size: 16px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 760px) {
    .nav { gap: 18px; flex-wrap: wrap; padding: 12px 16px; font-size: 13px; }
    .page-title { font-size: 32px; margin: 36px 0 28px; }
    .home-grid { grid-template-columns: 1fr; grid-auto-rows: 160px; }
    .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6 {
        grid-column: 1; grid-row: auto;
    }
    .update-item { grid-template-columns: 1fr; gap: 8px; }
    .hero h1 { font-size: 34px; letter-spacing: 2px; }
}
