/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Raleway:wght@400;700&display=swap');


/* --- Keyframes pour les animations --- */
/* Animation d'apparition en douceur (pour hero-intro et header) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation d'apparition pour les éléments avec un léger délai (pour les sections de contenu) */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Général --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding-top: 60px;
    background: url('images/background.png') no-repeat center center fixed; /* <-- C'est ici ! */
    background-size: cover;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed; /* Le voile reste fixe par rapport au viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: -1; /* Le voile est derrière le contenu mais devant l'image de fond */
}

/* --- Nouvelle section d'introduction (non fixe, contient photo + nom/desc) --- */
#hero-intro {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    animation: fadeIn 0.8s ease-out; /* Animation appliquée ici */
}

#hero-intro h1 {
    font-family: 'Raleway', sans-serif;
    margin: 10px 0 5px 0;
    font-size: 2.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    color: #333;
}

#hero-intro p {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    font-size: 1.1em;
    color: #555;
}

.profile-picture-container {
    margin-bottom: 20px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #6a0dad;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    animation: fadeIn 1s ease-out; /* Animation appliquée ici */
}

/* --- Header principal (contient la navigation fixe) --- */
header.main-header {
    background: rgba(30, 30, 30, 0.95);
    padding: 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-out; /* Animation appliquée ici */
}

/* --- Navigation --- */
nav {
    background: transparent;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

nav a {
    font-family: 'Raleway', sans-serif;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    margin: 0 8px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 0.95em;
}

nav a:hover {
    background: #6a0dad;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Styles pour les icônes dans la navigation */
nav a i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}


/* --- Sections Générales (s'applique à #about, #donations, #schedule, #portfolio-gallery, #commissions-intro, #commission-services) --- */
section {
    padding: 30px 20px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    max-width: 900px;
    /* La règle animation est déplacée aux IDs spécifiques ci-dessous */
    /* L'opacité initiale est aussi déplacée aux IDs spécifiques */
}

/* Appliquer l'animation et l'opacité initiale aux sections de contenu spécifiques */
/* NE PAS APPLIQUER À #hero-intro */
#about,
#social-media,
#donations,
#schedule,
#portfolio-gallery,
#commissions-intro,
#commission-services {
    animation: fadeInSlideUp 0.8s ease-out forwards;
    opacity: 0; /* Important pour que l'animation commence bien */
}


/* Appliquer un délai aux sections pour un effet d'escalier */
/* Les délais sont relatifs à l'animation de chaque section */
#about { animation-delay: 0.2s; }
#social-media { animation-delay: 0.4s; }
#donations { animation-delay: 0.6s; }

/* Pour les pages secondaires, la première section aura aussi un délai */
#schedule { animation-delay: 0.2s; }
#portfolio-gallery { animation-delay: 0.2s; }
#commissions-intro { animation-delay: 0.2s; }
#commission-services { animation-delay: 0.4s; }


section h2 {
    font-family: 'Raleway', sans-serif;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
    font-size: 2em;
    position: relative;
}

/* --- Section About --- */
#about p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}


/* --- Social Media --- */
#social-media {
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.social-icon i {
    margin-right: 8px;
    font-size: 1.3em;
}

/* Couleurs spécifiques pour les réseaux sociaux */
.social-icon.tiktok { background: #000; }
.social-icon.tiktok:hover { background: #222; transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); }

.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon.instagram:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); opacity: 0.9; }

.social-icon.twitch { background: #9146FF; }
.social-icon.twitch:hover { background: #6441A5; transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); }

.social-icon.discord { background: #7289DA; }
.social-icon.discord:hover { background: #6A7DD9; transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.3); }


/* --- Donations --- */
#donations {
    text-align: center;
}

#donations p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.donate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.donate-button i {
    margin-right: 10px;
    font-size: 1.4em;
}

.donate-button.paypal {
    background: #0070BA;
    color: #fff;
}

.donate-button.paypal:hover {
    background: #00457C;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/* --- Planning --- */
#schedule {
    text-align: center;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.stream-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stream-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stream-item h3 {
    font-family: 'Raleway', sans-serif;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stream-item p {
    margin-bottom: 8px;
    color: #555;
}

.stream-item strong {
    color: #000;
}

.stream-item a {
    display: inline-block;
    margin-top: 15px;
    background: #9146FF;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.stream-item a:hover {
    background: #6441A5;
}

.note {
    margin-top: 40px;
    font-style: italic;
    color: #666;
}


/* --- Portfolio --- */
#portfolio-gallery {
    text-align: center;
}

#portfolio-gallery h2 {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.gallery-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.gallery-item h3 {
    font-family: 'Raleway', sans-serif;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
}

.gallery-item p {
    color: #666;
    font-size: 0.95em;
    flex-grow: 1;
    margin-bottom: 15px;
}

.gallery-item .view-details {
    display: inline-block;
    background: #6a0dad;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.9em;
    margin-top: auto;
}

.gallery-item .view-details:hover {
    background: #5a0a9c;
    transform: translateY(-2px);
}


/* --- Commissions --- */
#commissions-intro {
    text-align: center;
}

#commissions-intro h2 {
    margin-bottom: 20px;
}

#commissions-intro p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px 15px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-button i {
    margin-right: 8px;
    font-size: 1.1em;
}

.contact-button.discord-contact {
    background: #7289DA;
    color: #fff;
}

.contact-button.discord-contact:hover {
    background: #6A7DD9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.contact-button.email-contact {
    background: #FF5722;
    color: #fff;
}

.contact-button.email-contact:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


#commission-services {
    text-align: center;
}

#commission-services h2 {
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.service-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-item .service-icon {
    font-size: 3.5em;
    color: #6a0dad;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.service-item h3 {
    font-family: 'Raleway', sans-serif;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.service-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: #444;
}

.service-item ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
}

.service-item ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #28a745;
}

.service-item .starting-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #000;
    margin-top: auto;
    text-align: right;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.9);
    color: #fff;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}


/* --- Responsive design --- */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    #hero-intro h1 {
        font-size: 2.2em;
    }
    nav a {
        padding: 8px 15px;
        margin: 0 4px;
        font-size: 0.85em;
    }
    section {
        margin: 20px 10px;
        padding: 15px;
    }
    .social-icon {
        width: 100%;
        justify-content: center;
    }
    .gallery-grid, .service-grid, .schedule-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .gallery-item img {
        height: 180px;
    }
    .contact-button {
        display: block;
        width: calc(100% - 20px);
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px;
    }
    #hero-intro h1 {
        font-size: 1.8em;
    }
    nav {
        flex-wrap: wrap;
    }
    nav a {
        flex-basis: 45%;
        margin: 5px 2%;
        text-align: center;
    }
    .gallery-item img {
        height: 200px;
    }
    .donate-button {
        width: 90%;
    }
}
/* --- Formulaire de Contact sur la page Commissions --- */
#contact-form {
    text-align: center; /* Centre le titre et la description */
}

.commission-form {
    max-width: 600px; /* Largeur maximale du formulaire */
    margin: 30px auto 0; /* Centre le formulaire */
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: left; /* Réaligne le texte du formulaire à gauche */
}

.form-group {
    margin-bottom: 20px; /* Espace entre les groupes de champs */
}

.form-group label {
    display: block; /* Chaque label sur sa propre ligne */
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: calc(100% - 20px); /* Largeur du champ, moins le padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6a0dad; /* Bordure violette au focus */
    box-shadow: 0 0 8px rgba(106, 13, 205, 0.2); /* Ombre au focus */
    outline: none; /* Supprime l'outline par défaut du navigateur */
}

.form-group textarea {
    resize: vertical; /* Permet de redimensionner verticalement */
    min-height: 100px;
}

.submit-button {
    display: block; /* Le bouton prend toute la largeur */
    width: 100%;
    padding: 15px 20px;
    background: #6a0dad; /* Couleur d'accentuation */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 30px; /* Espace au-dessus du bouton */
}

.submit-button:hover {
    background: #5a0a9c; /* Couleur plus foncée au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive pour le formulaire */
@media (max-width: 600px) {
    .commission-form {
        padding: 20px;
        margin: 20px auto 0;
    }
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        width: calc(100% - 20px); /* Ajustement pour les petits écrans */
    }
}
/* --- Bouton Call to Action (CTA) --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px; /* Espace au-dessus du bouton */
    padding: 18px 35px; /* Plus grand padding pour un bouton plus grand */
    background: #FF5722; /* Une couleur vive pour attirer l'attention (orange) */
    color: #fff;
    border: none;
    border-radius: 30px; /* Bords très arrondis */
    font-size: 1.3em; /* Taille de police plus grande */
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2); /* Ombre plus prononcée */
    letter-spacing: 0.5px; /* Légère augmentation de l'espacement des lettres */
}

.cta-button i {
    margin-right: 12px; /* Espace entre l'icône et le texte */
    font-size: 1.4em; /* Taille de l'icône plus grande */
}

.cta-button:hover {
    background: #E64A19; /* Couleur orange plus foncée au survol */
    transform: translateY(-5px); /* Effet de soulèvement plus prononcé */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Ombre plus grande au survol */
}

/* Ajustement pour les petits écrans */
@media (max-width: 600px) {
    .cta-button {
        padding: 15px 25px;
        font-size: 1.1em;
        width: calc(100% - 40px); /* Ajuster la largeur pour petits écrans */
    }
}