/* carlos-hunbero-music/css/style.css */

/* Importation de la police locale */
@font-face {
    font-family: 'Macondo Swash Caps';
    src: url('../fonts/MacondoSwashCaps-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Indispensable pour que le texte s'affiche avec une police de secours en attendant le chargement */
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Styles de l'en-tête */
.main-header {
    text-align: center;
    padding: 50px 20px;
    background-color: #000;
    position: relative;
    z-index: 10;
}

.main-header h1 {
    font-family: 'Macondo Swash Caps', cursive;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 6px; /* Espacement large pour un look artistique et élégant */
    color: #fff;
    margin: 0;
}

.artist-mantra {
    font-size: 1.2rem;
    font-weight: 300;
    color: #cccccc; /* Gris clair pour un contraste doux */
    margin-top: 15px;
    letter-spacing: 2px;
    font-style: italic;
    font-family: 'Helvetica Neue', Arial, sans-serif; /* On garde une police lisible et moderne */
}

/* Grille principale */
.platforms-grid {
    display: grid;
    /* Par défaut sur mobile : 1 seule colonne */
    grid-template-columns: 1fr;
    /* Aucune marge entre les éléments */
    gap: 0; 
    width: 100%;
}

/* Paramétrage d'un bloc plateforme */
.platform-link {
    display: block;
    position: relative;
    width: 100%;
    height: 50vh; /* Chaque bloc prend la moitié de la hauteur de l'écran sur mobile */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    text-decoration: none;
}

/* Couche d'assombrissement pour faire ressortir le logo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease;
}

/* Logo au centre */
.platform-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-width: 150px;
    max-height: 80px;
    z-index: 2;
    transition: transform 0.4s ease;
}

/* Effets au survol */
.platform-link:hover .overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.platform-link:hover .platform-logo {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Images de fond pour chaque plateforme */
.bg-spotify { background-image: url('../img/photo-1.webp'); }
.bg-apple { background-image: url('../img/photo-2.webp'); }
.bg-youtube { background-image: url('../img/photo-3.webp'); }
.bg-deezer { background-image: url('../img/photo-4.webp'); }
.bg-soundcloud { background-image: url('../img/photo-5.webp'); }
.bg-tidal { background-image: url('../img/photo-6.webp'); }

/* Animation d'apparition */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles du pied de page */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #000;
    color: #555; /* Gris sombre pour rester discret */
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Media Query pour les mobiles (ajustement du titre) */
@media screen and (max-width: 768px) {
    .main-header {
        padding: 40px 20px;
    }
    
    .main-header h1 {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .artist-mantra {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-top: 10px;
    }
}

/* Media Query pour la version ordinateur */
@media screen and (min-width: 768px) {
    .platforms-grid {
        /* 2 colonnes de taille égale */
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-link {
        /* Hauteur ajustée pour ordinateur */
        height: 60vh; 
    }
}