/* =========================================================
   STARCREW - FEUILLE DE STYLE PRINCIPALE
   ---------------------------------------------------------
   Cette feuille CSS est volontairement simple, claire et
   bien découpée pour rester accessible à un élève de 3e.

   Organisation :
   1. Variables globales
   2. Réinitialisation légère
   3. Mise en page générale
   4. Header et bannière
   5. Menu latéral
   6. Contenu principal
   7. Cartes et grilles
   8. Boutons
   9. Footer
   10. Responsive
   ========================================================= */

/* =========================================================
   1. VARIABLES GLOBALES
   Palette inspirée d'un univers spatial : bleu profond,
   lumière froide, accents dorés.
   ========================================================= */
:root {
    --color-bg: #0d1630;
    --color-bg-soft: #152347;
    --color-panel: #1c2d57;
    --color-panel-light: #243b72;
    --color-border: rgba(214, 196, 106, 0.28);
    --color-text: #eef4ff;
    --color-text-soft: #bfd0ee;
    --color-title: #f7e38a;
    --color-link: #9fcbff;
    --color-link-hover: #ffffff;
    --color-accent: #d6c46a;
    --color-accent-dark: #bfa73a;
    --color-shadow: rgba(0, 0, 0, 0.28);

    --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --radius-large: 20px;
    --radius-medium: 14px;
    --radius-small: 10px;

    --container-max-width: 1400px;
    --sidebar-width: 270px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.9rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 1.8rem;
    --spacing-xl: 2.5rem;
}

/* =========================================================
   2. RÉINITIALISATION LÉGÈRE
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(58, 110, 165, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(214, 196, 106, 0.10), transparent 22%),
        linear-gradient(180deg, #0c1430 0%, #0a1126 100%);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover,
a:focus {
    color: var(--color-link-hover);
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* =========================================================
   3. MISE EN PAGE GÉNÉRALE
   ========================================================= */
.site-shell {
    width: min(100% - 2rem, var(--container-max-width));
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.page-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: var(--spacing-lg);
    align-items: start;
    margin-top: var(--spacing-lg);
}

.site-content {
    background: rgba(16, 30, 63, 0.72);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: var(--spacing-xl);
    box-shadow: 0 18px 40px var(--color-shadow);
    min-height: 580px;
}

.content-section + .content-section {
    margin-top: var(--spacing-xl);
}

.section-intro {
    max-width: 850px;
    color: var(--color-text-soft);
}

.section-title {
    color: var(--color-title);
    margin-bottom: var(--spacing-sm);
}

/* =========================================================
   4. HEADER ET BANNIÈRE
   ========================================================= */
.site-header {
    display: grid;
    gap: var(--spacing-lg);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: rgba(19, 35, 71, 0.82);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: var(--spacing-lg);
    box-shadow: 0 15px 35px var(--color-shadow);
}

.brand-logo-link {
    flex: 0 0 110px;
}

.brand-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.brand-kicker {
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-title);
    font-size: 0.82rem;
}

.brand-text h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
}

.brand-tagline {
    margin: 0;
    color: var(--color-text-soft);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    min-height: 290px;
    background:
        linear-gradient(135deg, rgba(13, 22, 48, 0.9), rgba(36, 59, 114, 0.72)),
        url('../images/bannieres/banniere-starcrew.svg') center/cover no-repeat;
    box-shadow: 0 18px 40px var(--color-shadow);
}

.hero-overlay {
    width: min(100%, 760px);
    padding: 2rem;
}

.hero-overline {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: var(--color-title);
}

.hero-overlay h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero-overlay p {
    color: var(--color-text-soft);
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.2rem;
}

/* =========================================================
   5. MENU LATÉRAL
   ========================================================= */
.site-sidebar {
    position: sticky;
    top: 1rem;
}

.side-menu {
    background: rgba(19, 35, 71, 0.82);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: var(--spacing-lg);
    box-shadow: 0 15px 35px var(--color-shadow);
}

.side-menu-title {
    margin-bottom: var(--spacing-md);
    color: var(--color-title);
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li + li {
    margin-top: 0.55rem;
}

.side-menu a {
    display: block;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.side-menu a:hover,
.side-menu a:focus,
.side-menu a.is-active {
    transform: translateX(4px);
    background: rgba(214, 196, 106, 0.10);
    border-color: rgba(214, 196, 106, 0.30);
    color: #ffffff;
}

/* =========================================================
   6. CONTENU PRINCIPAL
   ========================================================= */
.lead {
    font-size: 1.08rem;
    color: var(--color-text-soft);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.highlight-box {
    background: rgba(28, 45, 87, 0.88);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
}

.highlight-box h3 {
    color: var(--color-title);
    margin-bottom: 0.8rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
}

.check-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-title);
}

/* =========================================================
   7. CARTES ET GRILLES
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.info-card,
.product-card,
.partner-card {
    background: rgba(28, 45, 87, 0.88);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: var(--spacing-lg);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.info-card h3,
.product-card h3,
.partner-card h3 {
    color: var(--color-title);
    margin-bottom: 0.75rem;
}

.product-visual,
.partner-logo {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-small);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(58, 110, 165, 0.18), rgba(214, 196, 106, 0.12));
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(214, 196, 106, 0.12);
    border: 1px solid rgba(214, 196, 106, 0.20);
    color: var(--color-title);
    font-size: 0.88rem;
}

/* =========================================================
   8. BOUTONS
   ========================================================= */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.button-primary {
    color: #101b3b;
    background: linear-gradient(135deg, var(--color-accent), #f3e49f);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.site-footer {
    margin-top: var(--spacing-lg);
    background: rgba(19, 35, 71, 0.82);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    padding: 1rem 1.4rem;
    box-shadow: 0 15px 35px var(--color-shadow);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem 1.2rem;
}

.footer-content p {
    margin: 0;
    color: var(--color-text-soft);
}

/* =========================================================
   10. RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: static;
    }

    .site-content {
        min-height: auto;
    }

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

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 1rem, var(--container-max-width));
    }

    .brand-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-logo-link {
        flex-basis: auto;
    }

    .hero-overlay,
    .site-content,
    .side-menu {
        padding: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
    }
}
