/* --- Variables et Reset --- */
:root {
    --primary-color: #0f2b23; /* Vert très sombre pour le fond */
    --accent-color: #d63031; /* Rouge vif */
    --gold-color: #f1c40f; /* Doré lumineux */
    --text-dark: #2c3e50;
    --text-light: #f4f4f4;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-color); /* Fond sombre pour faire ressortir le verre */
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* --- Animations Background (Blobs) --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #1b4d3e;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #5c1818; /* Rouge foncé */
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #8e6e18; /* Doré foncé */
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mixin Glassmorphism --- */
.glass-container, .card, .glass-panel, .floating-play-btn, .top-support-btn {
    background: rgba(255, 255, 255, 0.05); /* Très transparent */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* --- Bouton Support (Haut Droite) --- */
.top-support-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100; /* Au-dessus de tout */
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.top-support-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--gold-color);
    transform: translateY(2px);
}

/* --- Bouton Flottant (Jouer) --- */
.floating-play-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(192, 57, 43, 0.85); /* Rouge semi-transparent */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.4);
    animation: fadeInUp 1s ease-out 1s backwards;
}

.floating-play-btn:hover {
    transform: scale(1.05);
    background: rgba(192, 57, 43, 1);
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.6);
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 5rem; /* Espace pour le bouton support sur mobile si besoin */
}

.hero-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    background: rgba(0, 0, 0, 0.3); /* Un peu plus sombre pour lisibilité texte blanc */
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--gold-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.tagline {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.sub-tagline {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 90%;
    color: #ddd;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold-color), #f39c12);
    color: #0f2b23;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.6);
    background: white;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.5);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

/* --- Intro Section --- */
.intro-section {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.glass-panel {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85); /* Plus opaque pour la lecture */
    backdrop-filter: blur(20px);
}

.intro-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.intro-section p {
    font-size: 1.2rem;
    color: #333;
}

/* --- Contracts Grid --- */
.contracts-section {
    padding: 4rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3rem;
    color: var(--gold-color); /* Doré pour contraster sur le fond sombre */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-desc {
    margin-bottom: 4rem;
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* --- Card Styles (Glass) --- */
.card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.3s ease; /* Transition rapide pour JS */
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08); /* Blanc vitré sombre */
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.8s ease-out backwards;
    transform-style: preserve-3d; /* Pour l'effet 3D */
    perspective: 1000px;
}

.card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease;
    transform: translateZ(20px); /* L'image ressort en 3D */
}

.card-content {
    padding: 2rem;
    text-align: left;
    flex-grow: 1;
    color: white;
    transform: translateZ(30px); /* Le texte ressort encore plus */
}

.card-content h3 {
    color: var(--gold-color);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.card-content .summary {
    font-weight: bold;
    color: #ff7675; /* Rouge clair lisible sur fond sombre */
    margin-bottom: 1rem;
    font-size: 1rem;
}

.card-content .details {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    color: #aaa;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Réduit car moins d'éléments */
}

footer a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.version-tag {
    font-size: 0.8rem;
    opacity: 0.4;
    margin-top: 0.5rem;
    font-family: monospace;
}

/* --- Mobile Tweaks --- */
@media (max-width: 768px) {
    .hero-glass {
        padding: 2rem 1rem;
        flex-direction: column-reverse; 
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .floating-play-btn {
        width: calc(100% - 40px); 
        justify-content: center;
        bottom: 15px;
        left: 20px;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }

    /* Ajustement bouton support sur mobile */
    .top-support-btn {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}