@font-face {
    font-family: 'Material Icons';
    src: url('/lib/MaterialIcons-Regular.woff2') format('woff2');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    vertical-align: middle;
}

/* --- VARIABLES & RESET --- */
:root {
    --bg-overlay: rgba(30, 33, 38, 0.92); /* Calque sombre sur l'image de fond */
    --bg-card: #282c34;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #00b4ff;
    --accent-hover: #0091cc;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* --- CUSTOM SCROLLBAR (Global) --- */

/* Pour Firefox (Standard moderne) */
html {
    /*scrollbar-color: #444 #1e2126;  Couleur de la poignée | Couleur du fond */
    /*scrollbar-width: thin;  Rend la barre plus fine */
}

/* Pour Chrome, Edge et Safari (Webkit) */
::-webkit-scrollbar {
    width: 10px; /* Largeur de la barre verticale */
    height: 10px; /* Hauteur de la barre horizontale (pour les screenshots par ex) */
}

::-webkit-scrollbar-track {
    background: #1e2126; /* Couleur du fond de la barre */
}

::-webkit-scrollbar-thumb {
    background: #444; /* Couleur de la poignée */
    border-radius: 10px; /* Arrondi */
    border: 2px solid #1e2126; /* Crée un petit espace autour de la poignée */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent); /* Change la couleur au survol pour plus d'interaction */
}

/* Optionnel : appliquer aussi aux conteneurs de screenshots */
.screenshots-container::-webkit-scrollbar {
    height: 6px; /* Plus fine pour les galeries horizontales */
}
body {
    /* CONFIGURATION DE L'IMAGE DE FOND */
    background-image: url('/img/background.jpg'); /* REMPLACE CECI */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* L'image couvre tout l'écran */
    background-attachment: fixed; /* L'image reste fixe au scroll */
    
    background-color: #1e2126; /* Couleur de repli */
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 60px; /* Ajoute ceci ! (Ajuste selon la hauteur de ton header) */
}

/* Calque sombre pour lisibilité du texte sur l'image */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /*background-color: var(--bg-overlay);*/
    z-index: -1;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
#svg-sprite {display: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* --- HEADER --- */
header {
    position: fixed; /* Reste accroché en haut */
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0; /* Un peu plus fin */
    margin: 10px 0;
    background-color: rgba(30, 33, 38, 0.5); /* Fond presque opaque */
    backdrop-filter: blur(8px); /* Petit effet flou moderne si supporté */
    z-index: 1000; /* Toujours au-dessus de tout */
    box-shadow: 0 2px 20px rgba(0,0,0,0.4); /* Ombre pour le détacher du fond */
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-muted);
    z-index: 101; /* Toujours au dessus du menu mobile */
    
    /* AJOUTS IMPORTANTS POUR UN LIEN */
    text-decoration: none; /* Enlève le soulignement */
    cursor: pointer;       /* Affiche la main au survol */
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo .app-logo-icon {
    height: 35px;
    width: 50px;
    color: var(--accent);
}

/* NAV DESKTOP */
.nav-menu { display: flex; gap: 25px; }
.nav-menu li {padding: 5px; }
.nav-menu a:hover { color: var(--accent); }
.nav-menu .selected { 
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    /*color: var(--accent);*/
}
/* Alignement de l'icône dans le menu */
.nav-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 5px;*/
}
.nav-icon-link svg {
    fill: var(--text-muted); /* Gris par défaut */
    transition: fill 0.3s, transform 0.2s;
}
.nav-icon-link:hover svg {
    fill: var(--accent); /* Bleu au survol */
    transform: scale(1.1); /* Petit effet de zoom */
}
/* HAMBURGER ICON (Caché sur PC) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}
.bar {
    display: block; width: 25px; height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: 0.3s;
}

/* --- BREADCRUMB --- */
.breadcrumb { margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb span { color: var(--accent); }

/* --- FOOTER --- */
footer {
    background-color: rgba(0,0,0,0.3);
    padding: 30px 0; margin-top: 50px; text-align: center; font-size: 0.9rem;
}

/* --- CARTE DONATION --- */
.donation-card {
    /* Fond légèrement différent pour se détacher du reste 
    background: linear-gradient(to right, rgba(30, 33, 38, 0.6), rgba(30, 33, 38, 0.3));*/
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* La petite touche élégante : une barre colorée à gauche */
    border-left: 4px solid var(--accent); 
    
    border-radius: 12px;
    padding: 25px;
    margin: 40px auto; /* Espace vertical automatique */
    
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    width: 70%;
}

.donation-card:hover {
    transform: translateY(-2px); /* Léger mouvement au survol */
    border-color: rgba(255,255,255,0.1);
}

/* L'icône (Cœur ou Café) */
.donation-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 60, 60, 0.1); /* Fond rouge très léger */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.donation-icon svg {
    width: 24px;
    height: 24px;
    fill: #ff4757; /* Rouge coeur (ou mets var(--accent) pour du bleu) */
}

/* Le texte */
.donation-content {
    flex-grow: 1;
}
.donation-content h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}
.donation-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Le bouton */
.btn-donate {
    flex-shrink: 0;
    background-color: #ffb142;
    color: #1e2126;
    /*border: 1px solid var(--accent);*/
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    /*gap: 8px;*/
}

.btn-donate:hover {
    background-color: #ffa502;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 177, 66, 0.4);
}

.icon-coffee {
    margin-right: 8px; /* Espace entre l'icône et le texte */
    display: inline-block;
    vertical-align: middle;
    margin-top: -2px; /* Petit ajustement optique pour être parfaitement aligné au texte */
}

/* =========================================
   RESPONSIVE (MOBILE & TABLETTE)
   ========================================= */
@media (max-width: 768px) {
    body { background-position: unset;}
    /* MENU HAMBURGER */
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%; top: 0;
        flex-direction: column;
        background-color: #15171a;
        width: 100%; height: 100vh; /* Tout l'écran */
        justify-content: center;
        align-items: center;
        transition: 0.3s;
        z-index: 100;
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 20px 0; }
    .nav-menu a { font-size: 1.5rem; }
    .donation-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        width: 100%;
    }
    
    .donation-card .donation-icon {
        margin: 0 auto; /* Centrer l'icone */
    }
    
    .btn-donate {
        width: 100%; /* Bouton pleine largeur sur mobile */
        justify-content: center;
    }
}
