/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Thème enfant Astra pour catalogue partitions
Author: Elphège
Template: astra
Version: 1.0
*/

/* ===========================
   Fiche Partition
=========================== */


.single-partition {
    font-family: "Roboto",
        Sans-serif;
}

.single-partition #masthead {
    display: none !important;
}

.partition-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 25px;
}

.partition-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

/* ==========================
   Image
========================== */

.partition-cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partition-cover img {
    width: 100%;
    max-width: 920px;
    min-width: 450px;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

/* ==========================
   Colonne infos
========================== */

.partition-infos {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partition-infos h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* ==========================
   Bloc méta
========================== */

.partition-meta {
    background: #f7f7f7;
    padding: 30px;
    border-left: 4px solid #8b0000;
    border-radius: 6px;
    margin-bottom: 35px;
}

.partition-meta p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.partition-meta p::before {
    margin-right: 12px;
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

/* Icônes infos */

.meta-compositeur::before {
    content: "🎼";
}

.meta-duree::before {
    content: "⏱";
}

.meta-niveau::before {
    content: "★";
}

.meta-formation::before {
    content: "🎺";
}

/* ==========================
   Description
========================== */

.partition-description {
    margin-top: 35px;
    line-height: 1.8;
}

/* ==========================
   Achat / Ressources
========================== */

.partition-request {
    font-style: italic;
}

.partition-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partition-buy {
    margin-top: 40px;
    padding: 30px;
    background: #faf7f0;
    border-radius: 8px;
}

.partition-buy h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

p.btn_partenaires {
    margin-bottom: 0.8rem;
}

.partition-buy a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-items: center;
    gap: 2px;
    padding: 5px 18px;
    background-color: #f2f5f8;
    color: #1e5a8a;
    border: 1px solid #1e5a8a;
    border-radius: 4px;
    text-decoration: none;
    width: 250px;
    transition: all .25s ease;
}

.partition-buy a:hover {
    background-color: #1e5a8a;
    color: white;
}

/* Icônes des liens */

.link-youtube::before {
    content: "▶️";
}

.link-audio::before {
    content: "🎧";
}

.link-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.link-pdf::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("https: //www.elphegeproisy.com/wp-content/uploads/2026/08/PDF_Bleu.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
}

.link-buy::before {
    content: "🛒";
}

/* ==========================
   Vidéo
========================== */

.partition-video {
    margin-top: 50px;
}

.single-partition .link-back {
    color: #7192FD;
    padding: 3px;
    font-size: 1.1rem;;    
}



/* ==========================
   Responsive
========================== */

@media (max-width: 768px) {

    .partition-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        text-align: left;
    }

    .partition-cover {
        order: -1;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .partition-cover img {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        margin: 0 auto;
    }

    .partition-infos {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .partition-infos h1 {
        font-size: 2rem;
        line-height: 1.2;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .partition-meta {
        text-align: left;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
   

}