/* =========================================
   RESET & BASES
   ========================================= */
body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    /* On ajoute une texture de fond subtile sur tout le site pour éviter le "noir plat" derrière la boite */
    background-image: radial-gradient(circle at top, #1a1a1a, #0a0a0a); 
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul, ol {
    margin: 0;
    padding: 0;
}

/* =========================================
   LAYOUT & CONTAINER
   ========================================= */
.container {
    max-width: 1200px; /* Un peu plus large pour respirer */
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    color: #ffd100;
    font-size: 2em;
    border-bottom: 1px solid rgba(255, 209, 0, 0.3); /* Bordure plus fine */
    padding-bottom: 10px;
    margin-bottom: 40px;
    margin-top: 60px;
    display: inline-block; /* Le souligné s'arrête au texte */
}

/* =========================================
   NAVIGATION
   ========================================= */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Effet verre dépoli sur le menu */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    letter-spacing: 2px;
}

.logo .gold {
    color: #ffd100;
}

.links a {
    margin-left: 25px;
    font-size: 0.9em;
    text-transform: uppercase;
    color: #ccc;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.links a:hover, .links a.active {
    color: #ffd100;
}

/* =========================================
   HERO HEADER (ACCUEIL)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(18,18,18,1)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #222;
}

.hero h1 {
    font-size: 4.5em;
    color: #ffd100;
    margin: 0;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

.hero p {
    font-size: 1.4em;
    color: #f1f1f1;
    max-width: 700px;
    margin: 15px auto 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

/* SOURIS ANIMÉE */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    cursor: pointer;
    z-index: 10;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ffd100;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnimate 2s infinite;
}

@keyframes scrollAnimate {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* =========================================
   HEADER DES PAGES INTERNES (Addon, Contact)
   Modifié pour être plus joli qu'un fond noir
   ========================================= */
.small-hero {
    /* On reprend l'image mais plus sombre */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(18,18,18,1)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center top; 
    padding: 120px 0 60px 0; /* Plus d'espace en haut à cause du menu fixe */
    text-align: center;
    border-bottom: 1px solid #333;
}

.small-hero h1 {
    font-size: 3.5em;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,1);
    margin-bottom: 5px;
}

.small-hero p {
    color: #ffd100;
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    letter-spacing: 2px;
}

/* =========================================
   GRILLE ACCUEIL
   ========================================= */
.addons-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 30px; 
}

.addon-card { 
    background: #1a1a1a; 
    border: 1px solid #333; 
    border-radius: 12px; /* Coins plus arrondis */
    overflow: hidden; 
    transition: 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.addon-card:hover { 
    transform: translateY(-8px); 
    border-color: #555; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}

.addon-card:hover .card-title {
    color: #ffd100;
}

.card-img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
    border-bottom: 1px solid #222; 
    transition: 0.4s;
}

.addon-card:hover .card-img {
    filter: brightness(1.1);
}

.card-body { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-title { 
    margin: 0 0 10px 0; 
    font-size: 1.5em; 
    color: white; 
    transition: 0.3s;
}

.card-desc { 
    color: #bbb; 
    font-size: 0.95em; 
    line-height: 1.6; 
    margin-bottom: 25px; 
    flex-grow: 1; 
}

.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
}

.btn-view { 
    background: transparent; 
    color: #ffd100; 
    padding: 8px 20px; 
    border: 1px solid #ffd100;
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 0.9em; 
    transition: 0.3s;
}

.btn-view:hover { 
    background: #ffd100; 
    color: black;
    box-shadow: 0 0 15px rgba(255, 209, 0, 0.4);
}

/* =========================================
   PAGE ADDON : LA FICHE (Le Gros Changement)
   ========================================= */
.card.full-width {
    /* Fini le gris triste ! Place au Glassmorphism */
    background: rgba(30, 30, 30, 0.6); /* Semi-transparent */
    backdrop-filter: blur(15px); /* Floutage de l'arrière plan */
    -webkit-backdrop-filter: blur(15px); /* Pour Safari */
    
    padding: 40px; 
    border-radius: 16px; 
    
    /* Bordure très subtile */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 50px rgba(0,0,0,0.5); /* Grosse ombre douce */
}

/* Les titres dans la fiche */
.card.full-width h2 {
    color: #ffd100;
    text-transform: uppercase;
    font-size: 1.8em;
    border-bottom: 1px solid rgba(255, 209, 0, 0.2);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Le texte de description */
.features {
    font-size: 1.05em;
    color: #ddd;
    line-height: 1.8;
}

/* Zone de téléchargement stylée */
.download-area {
    margin-top: 40px; 
    padding: 25px; 
    background: rgba(0,0,0,0.3); 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-btn {
    background: linear-gradient(45deg, #ffd100, #ffb300);
    color: #000;
    padding: 15px 35px;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1.1em;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 209, 0, 0.6);
}

/* =========================================
   GUIDE INSTALLATION (EN BAS)
   ========================================= */
.install-guide {
    margin-top: 40px; 
    padding: 30px; 
    background: rgba(10, 10, 10, 0.8); 
    border-radius: 12px; 
    border-left: 4px solid #ffd100;
}

.install-guide h3 {
    margin-top: 0;
    color: #fff;
}

.install-guide ol {
    color: #ccc;
    margin-left: 20px;
    line-height: 2;
}

/* =========================================
   FORMULAIRES (CONTACT)
   ========================================= */
.form-box { 
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px; 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.08); 
    max-width: 700px; 
    margin: 0 auto; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

input, textarea, select { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 25px; 
    background: rgba(0,0,0,0.4); 
    border: 1px solid #444; 
    color: white; 
    border-radius: 8px; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}

input:focus, textarea:focus {
    border-color: #ffd100;
    outline: none;
    background: rgba(0,0,0,0.6);
}

textarea { height: 150px; resize: vertical; }

label { display: block; margin-bottom: 10px; color: #ffd100; font-weight: bold; letter-spacing: 1px; font-size: 0.9em; text-transform: uppercase;}

button[type="submit"] { 
    background: #ffd100; 
    color: black; 
    padding: 15px 30px; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    width: 100%; 
    font-size: 1.1em; 
    transition: 0.3s; 
    border-radius: 50px;
    text-transform: uppercase;
}

button[type="submit"]:hover { 
    background: #ffea00; 
    box-shadow: 0 0 20px rgba(255, 209, 0, 0.4);
}

/* =========================================
   BOUTONS DE PARTAGE
   ========================================= */
.share-container {
    margin-top: 0; /* Intégré dans la zone de download */
    padding-top: 0;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Pousse les boutons à droite */
}

@media (max-width: 768px) {
    .share-container { margin-left: 0; margin-top: 20px; width: 100%; justify-content: center;}
}

.share-label {
    font-size: 0.85em;
    color: #888;
    font-weight: bold;
    text-transform: uppercase;
}

a.share-btn, button.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Boutons ronds, plus modernes */
    background: rgba(255,255,255,0.1);
    color: #ccc !important; 
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}

a.share-btn:hover, button.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff !important;
}

.share-btn.x:hover { background: #000; border-color: #fff; } 
.share-btn.fb:hover { background: #4267B2; border-color: #4267B2; } 
.share-btn.link:hover { background: #ffd100; color: #000 !important; border-color: #ffd100; }

.copy-feedback { color: #4caf50; font-weight: bold; font-size: 0.8em; margin-left: 10px; opacity: 0; transition: opacity 0.5s;}

/* =========================================
   MODAL
   ========================================= */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(10px); }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; margin-top: 5vh; border: 1px solid #333; box-shadow: 0 0 50px black; animation: zoom 0.3s; border-radius: 8px;}
@keyframes zoom { from {transform:scale(0.9); opacity:0} to {transform:scale(1); opacity:1} }

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {
    .hero { height: 100vh; background-attachment: scroll; }
    .hero h1 { font-size: 2.8em; }
    .small-hero { padding-top: 100px; }
    .small-hero h1 { font-size: 2.5em; }
    .addons-grid { grid-template-columns: 1fr; } 
    nav .container { flex-direction: column; gap: 15px; }
    .links a { margin: 0 10px; font-size: 0.8em; }
    .card.full-width { padding: 20px; }
    .card.full-width > div { flex-direction: column; }
    .download-area { flex-direction: column; text-align: center; }
}

/* =========================================
   SECTION SOUTIEN (KO-FI)
   ========================================= */
.support-section {
    text-align: center;
    padding: 60px 20px;
    /* Un fond légèrement différent pour séparer visuellement du catalogue */
    background: linear-gradient(to bottom, rgba(18,18,18,0), rgba(0,0,0,0.4));
    margin-bottom: 20px;
}

.kofi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Couleur officielle Ko-fi pour la reconnaissance */
    background-color: #29abe0; 
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 35px;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #29abe0;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 12px;
}

.kofi-button img.kofi-icon {
    height: 24px;
    width: auto;
    animation: kofi-wiggle 3s infinite;
}

.kofi-button:hover {
    background-color: #1a94c4;
    border-color: #1a94c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(41, 171, 224, 0.4);
    color: white;
}

/* Petite animation de la tasse */
@keyframes kofi-wiggle {
    0% { transform: rotate(0) scale(1); }
    60% { transform: rotate(0) scale(1); }
    75% { transform: rotate(0) scale(1.15); }
    80% { transform: rotate(0) scale(1.1); }
    84% { transform: rotate(-10deg) scale(1.1); }
    88% { transform: rotate(10deg) scale(1.1); }
    92% { transform: rotate(-10deg) scale(1.1); }
    96% { transform: rotate(10deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
}