:root {
    --bg-main: #0b1c26;
    --bg-secondary: #122f3d;
    --bg-tertiary: #1a3d4f;

    --text-main: #f5e6c8;
    --text-secondary: #c7b299;

    --accent: #e1a95f;
    --border: #8b5a2b;

    --radius: 8px;
}

/* Global */
* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, "Segoe UI", sans-serif;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
	padding-bottom: 2rem;
}

h1.titre_principal {
    font-size: 2.6rem;
    margin: 2rem 0 1.5rem;
}

h2.sous_titre,
h2.titre_projet {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3.soustitre_part,
h3.titre_card {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

section {
    margin-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.post, .card, .projet {
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 0.8rem;
}

img {
    max-width: 100%;
    height: auto;
}



/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


.menu_barre nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.menu_barre nav a {
    font-size: 1.05rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    transition: 0.2s;
}

.menu_barre nav a:hover {
    color: #f3c27d;
    text-shadow: 0 0 6px rgba(225,169,95,0.5);
}

.menu_barre nav a.active {
    background: rgba(225,169,95,0.15);
    border: 1px solid var(--accent);
}

.menu_barre a:hover {
    color: var(--accent);
}

/* Titres */
.titre_principal {
    text-align: center;
    margin: 2rem 0 1rem;
    font-size: 2.4rem;
    color: var(--accent);
}

.sous_titre {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Liens d’accueil */
.home_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.home_link {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.home_link img {
    width: 32px;
    height: 32px;
}

.home_link a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

/*Liens*/
a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #f3c27d;
    text-shadow: 0 0 4px rgba(225,169,95,0.4);
}


/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.5rem;
	display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

footer .col_foot {
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    header nav ul {
        flex-direction: column;
        gap: 0.6rem;
    }

    .friend_card {
        padding: 1rem;
    }

    .friend_logo {
        width: 70px;
        height: 70px;
    }

    .cards_grid {
        grid-template-columns: 1fr;
    }
}


/* Cartes */
.cards_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card .titre_card {
    margin-bottom: 0.4rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.cards_grid a {
    text-decoration: none;
    color: inherit;
}


/*Amis*/
.intro_text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.friends_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.friend_card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.friend_logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
	border-radius: 6px;
}

.friend_links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.friend_links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius);
    transition: 0.2s;
}

.friend_links a:hover {
    background: var(--bg-tertiary);
}

.friend_links img {
    width: 20px;
    height: 20px;
}

/*Listes*/
.sources_list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sources_list li {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
}

.sources_list a {
    color: var(--accent);
    text-decoration: none;
}

.sources_list a:hover {
    text-decoration: underline;
}


.card, .friend_card, .post, .projet {
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover,
.friend_card:hover,
.post:hover,
.projet:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.45);
}

/*burgir*/
.burger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    color: var(--accent);
}

@media (max-width: 700px) {

    .burger {
        display: block;
    }

    .menu_barre nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
    }

    body.menu-open .menu_barre nav ul {
        display: flex;
    }
}


/*Boutons*/
.intro_home {
    text-align: center;
    margin: 2rem 0 2.5rem;
}

.home_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.home_button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: var(--bg-secondary);
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
}

.home_button:hover {
    background: var(--accent);
    color: #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}



body, html {
    height: 100%;
}

main {
    min-height: calc(100vh - 160px); /* header + footer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
