/* ==========================================================================
   Page Album gratuit (template-album-gratuit.php) — body .free-album-page
   ========================================================================== */

.free-album-page {
    background: #070707;
}

/* Haut de page : l'album à gauche, le formulaire à droite */

.free-album-hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 52px;
    background: #080808;
    border-bottom: 1px solid #4f3c00;
}

.free-album-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--dg-fond, url("../images/fond.webp")) center 70% / cover no-repeat;
    opacity: .22;
    pointer-events: none;
}

.free-album-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.free-album-title {
    font-size: clamp(46px, 6vw, 80px);
}

.free-album-title span,
.free-album-heading span {
    color: var(--yellow);
}

.free-album-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
}

.free-album-cover {
    flex: 0 0 auto;
    width: clamp(110px, 14vw, 160px);
    height: auto;
    border: 1px solid #6f5700;
}

.free-album-name {
    margin: 0 0 6px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    text-transform: uppercase;
}

.free-album-meta {
    margin: 0;
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
}

.free-album-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.free-album-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 800;
}

.free-album-checks li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--yellow);
    color: #080808;
    font-size: 12px;
    font-weight: 900;
}

/* Formulaire */

.free-album-panel {
    padding: 28px;
    border: 2px solid var(--yellow);
    background: #0c0c0c;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .35);
    scroll-margin-top: 110px;
}

.free-album-panel-title {
    margin: 0 0 16px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 32px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--yellow);
}

.free-album-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.free-album-field.is-wide {
    grid-column: 1 / -1;
}

.free-album-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
}

.free-album-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #4c4c4c;
    background: #050505;
    color: #fff;
    font-size: 16px;
}

.free-album-field input:focus-visible,
.free-album-submit:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.free-album-submit {
    width: 100%;
    min-height: 60px;
    margin-top: 18px;
    font-size: 16px;
    cursor: pointer;
}

.free-album-privacy {
    margin: 14px 0 0;
    color: #a9a9a9;
    font-size: 12px;
    line-height: 1.5;
}

.free-album-privacy a {
    color: var(--yellow);
    text-decoration: underline;
}

.free-album-errors {
    margin: 0 0 16px;
    padding: 12px 14px 12px 30px;
    border: 1px solid #b3261e;
    background: #210b09;
    color: #ffd9d6;
    font-size: 14px;
}

.free-album-sent p {
    margin: 0 0 12px;
    color: #e6e6e6;
    font-size: 16px;
    line-height: 1.6;
}

.free-album-sent .free-album-panel-title {
    color: var(--yellow);
    font-size: 40px;
}

.free-album-unavailable {
    margin: 0;
    color: #cfcfcf;
}

/* Champ piège hors de l'écran */

.free-album-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Sections */

.free-album-section {
    padding: 56px 0;
}

.free-album-section.is-alt {
    padding: 32px 0;
    background: var(--panel);
    border-top: 1px solid #1d1d1d;
    border-bottom: 1px solid #1d1d1d;
}

.free-album-heading {
    margin: 0 0 14px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.free-album-section-copy {
    margin: 0 0 22px;
    color: #bdbdbd;
    font-size: 15px;
}

.free-album-tracks {
    columns: 2;
    column-gap: 40px;
    margin: 0;
    padding: 0 0 0 26px;
    color: var(--yellow);
    font-size: 14px;
    font-weight: 800;
}

.free-album-tracks li {
    padding: 9px 0;
    border-bottom: 1px solid #1f1f1f;
    break-inside: avoid;
}

.free-album-track-title {
    color: #f0f0f0;
    font-size: 15px;
    font-weight: 700;
}

.free-album-track-duration {
    float: right;
    color: #9a9a9a;
    font-weight: 400;
}

.free-album-repeat {
    margin: 28px 0 0;
}

/* Écoute : volontairement discrète, le téléchargement reste l'action principale */

.free-album-listen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 28px;
    align-items: center;
}

.free-album-listen-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.free-album-listen .free-album-section-copy {
    margin: 0;
    font-size: 14px;
}

.free-album-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}

.free-album-platforms .platform-tile {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 8px 12px;
}

.free-album-platforms img {
    max-width: 100%;
    max-height: 26px;
    width: auto;
    height: auto;
}

/* Tablette */

@media (max-width: 980px) {
    .free-album-hero-inner,
    .free-album-listen {
        grid-template-columns: 1fr;
    }

    .free-album-hero-inner {
        gap: 30px;
    }
}

/* Mobile */

@media (max-width: 680px) {
    .free-album-hero {
        padding: 30px 0 36px;
    }

    .free-album-title {
        font-size: 44px;
    }

    .free-album-panel {
        padding: 20px;
    }

    .free-album-fields {
        grid-template-columns: 1fr;
    }

    .free-album-tracks {
        columns: 1;
    }

    .free-album-section {
        padding: 40px 0;
    }

    .free-album-repeat .cta-primary {
        width: 100%;
    }
}
