/* public/css/home_modern.css */

/* === Block 1: Hero Banner === */
.hero-banner-section {
    position: relative;
    height: 70vh; /* Prend 70% de la hauteur de l'écran */
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box; /* Important pour que le padding n'ajoute pas à la taille */

    /* L'effet parallaxe */
    background-image: url('../images/home/hero_background.jpg'); /* Votre image de fond */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* C'est la clé de l'effet ! */
}

#hero-banner > canvas {
    display: block;
    position: absolute ; /* Force la position absolue */
    top: 0;
    left: 0;
    width: 100% ;  /* Force la taille */
    height: 100% ; /* Force la taille */
    z-index: 1; /* Il se place au-dessus du fond, mais en dessous du contenu */
}

/* Superposition sombre pour la lisibilité du texte */
.hero-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    position: relative; /* Pour être au-dessus de la superposition */
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem; /* Grosse taille de police */
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn-primary {
    background-color: #2ECC71; /* Notre vert signature */
    color: #000;
    border: 2px solid #2ECC71;
}
.hero-buttons .btn-primary:hover {
    background-color: #45a049;
	color: #fff;
    transform: translateY(-2px);
}

.hero-buttons .btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.hero-buttons .btn-secondary:hover {
    background-color: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* === Ajouts au Block 1: Hero Banner === */
.hero-play-button-container {
    margin-top: 40px;
}
.hero-play-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 10px;
    transition: color 0.3s ease;
}
.hero-play-btn:hover {
    color: #2ECC71;
}
.hero-play-btn .material-symbols-outlined {
    font-size: 3rem; /* Icône plus grande */
    margin-right: 10px;
}

/* === NOUVEAU : Styles pour la Modale Vidéo === */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* === Lecteur Radio === */
#soundcloud-player-container {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: auto; /* La largeur s'adaptera au contenu */
    height: 60px;
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: inherit;
    
    /* La magie de l'animation */
    transform: translateX(-105%); /* Caché sur la gauche */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animation douce */
}
#soundcloud-player-container:not(.is-hidden) {
    transform: translateX(0); /* Révélé */
}
#soundcloud-player-container:not(.is-hidden) .soundcloud-toggler .material-symbols-outlined {
    transform: rotate(180deg);
}
#sc-widget-container {
    position: absolute;
    top: -9999px; /* Le lecteur reste caché */
}

.player-controls {
    display: flex;
    align-items: center;
}
.player-controls button {
    background: none;
    border: none;
    color: #b3b3b3; /* Gris clair */
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}
.player-controls button:hover {
    color: #ffffff; /* Blanc au survol */
}
#sc-play-pause-btn .material-symbols-outlined {
    font-size: 36px;
    background-color: #fff;
    color: #181818;
    border-radius: 50%;
    padding: 4px;
}
#sc-play-pause-btn:hover .material-symbols-outlined {
    transform: scale(1.05);
}

.track-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 220px;
    margin: 0 15px;
}
#sc-track-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
}
#sc-track-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-overflow: ellipsis;
    overflow: hidden;
}
#sc-track-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
#sc-time-current, #sc-time-total {
    font-size: 0.7rem;
    color: #b3b3b3;
}
#sc-progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: #535353;
    border-radius: 2px;
    cursor: pointer;
}
#sc-progress-bar-played {
    height: 100%;
    width: 0%;
    background-color: #fff; /* Barre blanche */
    border-radius: 2px;
}
#sc-progress-bar:hover #sc-progress-bar-played {
    background-color: #2ECC71; /* Vert au survol */
}

.volume-control {
    display: flex;
    align-items: center;
}
.volume-control .material-symbols-outlined {
    color: #b3b3b3;
    cursor: pointer;
}
#sc-volume-slider {
    /* Style de base pour l'input range */
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: #444;
    outline: none;
    border-radius: 2px;
    margin-left: 8px;
    cursor: pointer;
}
/* Style de la "poignée" du slider pour Chrome/Safari */
#sc-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #2ECC71;
    border-radius: 50%;
}
/* Style de la "poignée" pour Firefox */
#sc-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #2ECC71;
    border-radius: 50%;
    border: none;
}
/* STYLE POUR LE BOUTON DÉCLENCHEUR FLOTTANT */
/* Le bouton déclencheur, maintenant positionné PAR RAPPORT au conteneur */
.soundcloud-toggler {
    position: absolute; /* Positionné par rapport à #soundcloud-player-container */
    right: -50px; /* Il dépasse sur la droite */
    top: 50%;
    transform: translateY(-50%);
    
    width: 50px;
    height: 50px;
    background-color: #2ECC71; /* Vert signature, pas de transparence */
    color: #fff;
    border: 1px solid #3a3a3a;
	border-left: none;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
	
}
.soundcloud-toggler:hover {
    transform: translateY(-50%) scale(1.1);
	background-color: #181818; /* Vert signature, pas de transparence */
    color: #2ECC71;
	border: 2px solid #3a3a3a;

}

/* On peut faire tourner l'icône quand le lecteur est ouvert */
#soundcloud-player-container:not(.is-hidden) .soundcloud-toggler .material-symbols-outlined {
    transform: rotate(360deg) scale(1.1) ;
    transition: transform 0.5s ease;
}

/* Le sous-conteneur pour le reste de l'interface */
.player-interface {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.soundcloud-toggler .material-symbols-outlined {
    font-size: 24px;
}
/* === Section Générique === */

.section-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2ECC71; /* Notre vert signature */
    border-radius: 2px;
}

/* === Block 2: Carousel Section === */
.carousel-section {
	padding: 10px 0;
    background-color: #1c1c1c;
    position: relative; /* IMPORTANT : Pour confiner les flèches de navigation */
	border-radius: 0 0 5px 5px;
	margin-bottom : 5px;
}

/* On cible le conteneur Swiper DANS la section carousel */
.carousel-section .gacha-carousel {
    width: 100%;
    padding: 10px 0 40px 0;
}

/* On s'assure que le conteneur du Swiper ne déborde pas de la section */
.carousel-section .swiper-container {
    max-width: 100%; /* S'assure qu'il ne dépasse pas la largeur de .section-container */
    overflow-x: hidden; /* Cache les slides qui pourraient dépasser avant que JS ne les positionne */
    padding: 10px 40px; /* Ajoute de l'espace sur les côtés pour que les flèches ne soient pas collées */
    box-sizing: border-box;
}
.carousel-section .swiper-wrapper {
    display: flex;
    align-items: stretch; /* HARMONISE LA HAUTEUR DES CARTES */
}
.carousel-section .swiper-slide {
    height: auto; /* Permet à la slide de s'étirer */
}

.gacha-carousel {
    width: 100%;
    padding: 10px 0 40px 0; /* Espace pour la pagination en bas */
}

.carousel-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3a3a3a;
	height: 90%; /* Important : la carte doit remplir toute la hauteur de la slide */
    display: flex;
    flex-direction: column;
}
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;

}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* S'assure que l'image remplit l'espace sans se déformer */
	
}

.card-content {
    padding: 20px;
    display: flex; /* Utilisation de flexbox pour l'alignement vertical */
    flex-direction: column;
    height: 100%; /* S'assurer que le contenu prend toute la hauteur de la carte */
}
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.card-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin-bottom: 20px;
    height: auto; /* Hauteur auto */
    flex-grow: 1; /* Le plus important : la description prend tout l'espace disponible */
}
.card-buttons {
    display: flex; /* Aligner les boutons horizontalement */
    gap: 10px; /* Espace entre les boutons */
}

/* On réutilise les styles de boutons du héros mais en version plus petite */
.card-buttons .btn {
    padding: 8px 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-grow: 1; /* Pour que les boutons prennent la même largeur */
    text-align: center;
}
.card-buttons .btn-primary { /* Bouton "Télécharger" */
    background-color: #2ECC71;
    color: #fff;
    border: 1px solid #2ECC71;
}
.card-buttons .btn-outline { /* Bouton "Découvrir" */
    background-color: transparent;
    color: #2ECC71;
    border: 1px solid #2ECC71;
}
.card-buttons .btn:hover {
    transform: translateY(-2px);
}
.card-buttons .btn-outline:hover {
    background-color: #2ECC71;
    color: #fff;
}
.btn-sm.btn-outline {
    padding: 8px 20px;
    font-size: 0.8rem;
    color: #2ECC71;
    border: 1px solid #2ECC71;
    background-color: transparent;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-sm.btn-outline:hover {
    background-color: #2ECC71;
    color: #fff;
}

/* Styles pour la navigation Swiper - CORRECTIONS D'ADRESSAGE */
.carousel-section .swiper-pagination-bullet-active {
    background-color: #2ECC71 !important;
}

/* On cible les flèches DANS la section carousel pour les positionner correctement */
.carousel-section .swiper-button-next,
.carousel-section .swiper-button-prev {
    color: #2ECC71 !important;
    top: 50%; /* Centrage vertical */
    transform: translateY(-50%); /* Ajustement fin du centrage vertical */
    height: 44px; /* Hauteur explicite */
}

/* Positionnement précis pour éviter qu'elles soient sur le hero banner */
.carousel-section .swiper-button-prev {
    left: 10px; /* Un peu de marge du bord gauche */
}
.carousel-section .swiper-button-next {
    right: 10px; /* Un peu de marge du bord droit */
}

/* === Block 3: Stats Section === */
.stats-section {
    background-color: #1f1f1f;
    padding: 20px 0; /* Un peu plus de padding vertical que 10px pour mieux respirer */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    margin-top: 20px; /* Un peu plus de marge pour séparer du carrousel */
    margin-bottom: 20px; /* Ajouter une marge en bas aussi */
}
.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.stat-item {
    text-align: center;
    min-width: 180px;
}
.stat-value {
    font-size: 3.8rem; /* Un peu plus grand, comme demandé */
    font-weight: 700;
    color: #2ECC71;
    margin: 0 0 5px 0;
    line-height: 1;
}
.stat-label {
    font-size: 0.9rem; /* Légèrement plus petit pour contraster */
    color: #8899a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px; /* Un peu plus d'espace */
}

/* CARTE SERVEUR */
.stat-item.server-status {
    background-color: #25282a;
    padding: 20px 25px;
    border-radius: 12px;
    min-width: 300px;
    border: 1px solid #383b3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex; /* Votre code était bon, mais il manquait dans ma version précédente */
    flex-direction: column;
}

.server-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.server-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}
.server-pop {
    font-size: 1rem;
    color: #8899a6;
    margin: 0 0 15px 0;
}

.server-bonuses-container {
    margin-top: auto; /* Pousse les bonus en bas de la carte */
    padding-top: 15px;
    border-top: 1px solid #4a4a4a;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.server-bonus {
    color: #e1e8ed;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
}

.server-bonus.rate-bonus {
    background-color: #3a3f44;
    border: 1px solid #4a4f54;
}
.server-bonus.rate-bonus:hover {
    background-color: #4a4f54;
}

.server-bonus.event-active {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ECC71;
    color: #2ECC71;
}
.server-bonus.event-active:hover {
    background-color: rgba(46, 204, 113, 0.4);
}

.server-bonus.normal-rate { /* Conservé pour les taux x1 */
    background-color: #555;
    color: #ccc;
}

/* Indicateur de statut */
.status-indicator {
    display: inline-block;
    width: 10px; /* Légèrement plus petit et discret */
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.status-indicator.online { 
    background-color: #2ECC71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.7);
}
.status-indicator.offline { background-color: #e74c3c; }

/* === Block 4: Feature Cloud === */
.feature-cloud-section {
    background-color: #1c1c1c;
	padding: 20px 0; /* Un peu plus de padding vertical que 10px pour mieux respirer */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 1px solid #3a3a3a;
    border-radius: 5px;

}
.feature-grid {
    display: flex;
    flex-wrap: wrap; /* Pour la réactivité sur mobile */
    gap: 30px;
}
.feature-slider-column {
    flex: 3; /* Prend 3 parts de l'espace */
    min-width: 300px; /* Largeur minimale pour le contenu */
}
.feature-cloud-column {
    flex: 1; /* Prend 1 part de l'espace */
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajout pour rendre la slide cliquable */
.feature-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
    text-decoration: none;
}

/* Style du slider de features */
.feature-slider {
    width: 100%;
    height: 400px; /* Hauteur fixe pour le slider */
    border-radius: 12px;
    overflow: hidden;
}
.feature-slide {
    position: relative;
    color: #fff;
}
.feature-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}
.feature-slide-content h3 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 5px #000;
}
.feature-slide-content p {
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 3px #000;
}

/* Style du nuage de tags */
#feature-canvas-container {
    max-width: 320px;
    width: 100%;
}
#featureCanvas {
    width: 100%;
    height: auto;
}

/* === Block 5: Announcements Section === */
.announcements-section {
    background-color: #1a1c1d; /* Fond très sombre, comme les stats */
	    padding: 20px 0; /* Un peu plus de padding vertical que 10px pour mieux respirer */
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    margin-top: 20px; /* Un peu plus de marge pour séparer du carrousel */
    margin-bottom: 20px; /* Ajouter une marge en bas aussi */
}
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grille responsive */
    gap: 25px;
}
.announcement-card {
    background-color: #25282a;
    border: 1px solid #383b3d;
    border-radius: 12px;
    display: flex;
    flex-direction: column; /* Organise le contenu verticalement */
	min-height: 320px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.announcement-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #383b3d;
}
.card-category {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 15px;
    text-transform: uppercase;
}
/* Styles par catégorie pour la couleur */
.card-category.category-event { background-color: #e74c3c; color: #fff; }
.card-category.category-update { background-color: #3498db; color: #fff; }
.card-category.category-maintenance { background-color: #f39c12; color: #fff; }
.card-category.category-news { background-color: #2ecc71; color: #1a1a1a; }
.card-category.category-notice { background-color: #9b59b6; color: #fff; }

.card-date {
    font-size: 0.8rem;
    color: #8899a6;
}
.announcement-card .card-body {
    padding: 20px;
    flex-grow: 1; /* Permet à cette section de grandir pour aligner les footers */
}
.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #fff;
}
.card-excerpt {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}
.announcement-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #383b3d;
    background-color: #2a2c2d;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.card-author {
    font-size: 0.8rem;
    font-style: italic;
    color: #8899a6;
}