/* ======================================================
   CHARTE GRAPHIQUE V1 – CSPS.AS-IST.FR
   Sobriété – Lisibilité – Crédibilité réglementaire
   ====================================================== */

/* ---------- Variables de couleur ---------- */

:root {
    --color-text: #2F3439;          /* Graphite technique */
    --color-structure: #1F3A44;     /* Bleu pétrole sombre */
    --color-vigilance: #C78A2B;     /* Ambre (usage rare) */
    --color-bg-main: #F7F7F5;       /* Blanc cassé */
    --color-bg-secondary: #E4E6E8;  /* Gris clair */
    --color-border: #D1D3D5;
}

/* ---------- Reset minimal ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Base typographique ---------- */

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-main);
}

p {
    margin-bottom: 1rem;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ---------- Titres ---------- */

h1, h2, h3 {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* ---------- Liens ---------- */

a {
    color: var(--color-structure);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- Conteneur ---------- */

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* ---------- Header ---------- */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* ---------- Identité de marque ---------- */

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: #666;
}

.brand img {
    height: 48px;
    width: auto;
    display: block;
}

/* ---------- Navigation ---------- */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
}

/* ---------- Bannière ---------- */

.hero {
    width: 100%;
}

.hero-image {
    height: 320px;
    background-color: var(--color-bg-secondary);
    background-size: cover;
    background-position: center;
}

/* ---------- Sections ---------- */

section {
    padding: 3rem 0;
}

section:nth-of-type(even) {
    background-color: #ffffff;
}

/* ---------- Grilles ---------- */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: 1fr 1fr;
}

/* ---------- Introduction ---------- */

.intro-text {
    font-size: 1.1rem;
    max-width: 700px;
}

/* ---------- Listes internes ---------- */

.internal-links {
    list-style: none;
    margin-left: 0;
}

.internal-links li {
    margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-note {
    color: #666;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-image {
        height: 220px;
    }

    .brand img {
        height: 44px;
    }
}

@media (max-width: 900px) {
    .grid.two {
        grid-template-columns: 1fr;
    }
}