/* Trio ASA, feuille de style principale */

:root {
    --bg: #0f0d0c;
    --bg-alt: #161210;
    --surface: #1e1916;
    --line: rgba(243, 236, 228, .12);
    --text: #f3ece4;
    --muted: #b3a89c;
    --red: #c8282f;
    --red-hover: #e0353c;
    --gold: #d9b26f;
    --radius: 14px;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .9em;
}

/* Boutons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    padding: .95em 1.7em;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: 600 .95rem/1 var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn svg { fill: currentColor; stroke: none; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn-small { padding: .7em 1.2em; font-size: .85rem; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* En-tête */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 48px);
    transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
    background: rgba(15, 13, 12, .88);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a:not(.btn) {
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(243, 236, 228, .85);
    transition: color .2s;
}
.nav a:not(.btn):hover { color: #fff; }
.nav-icon svg { width: 20px; height: 20px; display: block; }
.nav-icon .fill { fill: currentColor; stroke: none; }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
    .nav-toggle {
        display: grid;
        place-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        background: none;
        border: 0;
        cursor: pointer;
        z-index: 2;
    }
    .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .3s; }
    .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 22px;
        background: rgba(15, 13, 12, .97);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .nav.open { opacity: 1; visibility: visible; }
    .nav a:not(.btn) { font-family: var(--serif); font-size: 1.6rem; }
}

/* Hero vidéo */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000 url("../images/back_asa.jpg") center / cover no-repeat;
}
.hero-video {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-video.ready { opacity: 1; }
/* iframe 16:9 qui couvre toujours tout l'écran (équivalent de object-fit: cover) */
.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78svh);
    height: max(56.25vw, 100svh);
    transform: translate(-50%, -50%) scale(1.15);
    border: 0;
    pointer-events: none;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(15, 13, 12, .25) 0%, rgba(15, 13, 12, .65) 75%),
        linear-gradient(to bottom, rgba(15, 13, 12, .55) 0%, transparent 25%, transparent 60%, var(--bg) 100%);
}

.hero-content {
    width: min(860px, 100% - 40px);
    padding: calc(var(--header-h) + 20px) 0 90px;
    animation: rise 1.1s .2s both cubic-bezier(.2, .7, .2, 1);
}
.hero h1 {
    font-size: clamp(3.6rem, 12vw, 8.5rem);
    font-weight: 300;
    letter-spacing: -.02em;
    margin-bottom: .2em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.hero h1 em { font-style: italic; color: var(--red); font-weight: 400; }
.hero-lead {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    max-width: 38em;
    margin: 0 auto 2em;
    color: rgba(243, 236, 228, .92);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.hero-lead em { font-family: var(--serif); color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-zone { margin-top: 2.2em; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 236, 228, .7); }

.sound-toggle {
    position: absolute;
    right: clamp(16px, 3vw, 36px);
    bottom: clamp(16px, 3vw, 36px);
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .6em 1em;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    color: #fff;
    font: 500 .82rem var(--sans);
    cursor: pointer;
}
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle svg path:not(.stroke) { fill: currentColor; stroke: none; }
.sound-toggle .ico-on, .sound-toggle[aria-pressed="true"] .ico-off { display: none; }
.sound-toggle[aria-pressed="true"] .ico-on { display: block; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Points forts */

.facts {
    width: min(1180px, 100% - 40px);
    margin: -40px auto 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(30, 25, 22, .8);
    backdrop-filter: blur(10px);
}
.fact { padding: 22px 24px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact strong { display: block; font: 400 1.45rem/1.2 var(--serif); }
.fact span { font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
    .facts { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(3) { border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-media { order: 2; }
.split-media { margin: 0; }
.split-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.split-text p { color: rgba(243, 236, 228, .86); }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split-reverse .split-media { order: 0; }
}

.members { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 2px; }
.members li { border-top: 1px solid var(--line); }

/* Un clic sur le nom déplie le descriptif, avec le lien vers le site du musicien */
.member summary {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 14px 32px 14px 0;
    position: relative;
    list-style: none;
    cursor: pointer;
}
.member summary::-webkit-details-marker { display: none; }
.member summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font: 300 1.5rem/1 var(--sans);
    color: var(--red-hover);
    transition: transform .25s;
}
.member[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.member-name { font: 400 1.25rem var(--serif); transition: color .2s; }
.member summary:hover .member-name { color: var(--red-hover); }
.member-role { font-size: .88rem; color: var(--muted); margin-left: auto; }
.member-bio { padding: 0 0 18px; animation: rise .4s both; }
.member-bio p { font-size: .95rem; margin-bottom: .8em; }
.member-link { font-size: .88rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.member-link:hover { text-decoration: underline; }

/* Cartes occasions */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(200, 40, 47, .7); transform: translateY(-4px); background: #241d19; }
.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: rgba(200, 40, 47, .14);
    color: var(--red-hover);
}
.card-icon svg { width: 24px; height: 24px; }
.card p { font-size: .94rem; color: var(--muted); flex: 1; }
.card-cta { font-size: .85rem; font-weight: 600; color: var(--gold); }

/* Répertoire */

.songs { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.songs li {
    padding: .35em .85em;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .84rem;
    color: rgba(243, 236, 228, .8);
}
.songs .hl { border-color: rgba(217, 178, 111, .5); color: var(--gold); }
.songs .more { border-style: dashed; font-style: italic; }

/* Vidéo */

.video-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galerie */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 12px;
}
.gallery a { position: relative; overflow: hidden; border-radius: 10px; background: var(--surface); }
.gallery .g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.9); }
.gallery a:hover img { transform: scale(1.05); filter: saturate(1.1); }

@media (max-width: 860px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

.lightbox {
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}
.lightbox::backdrop { background: rgba(8, 7, 6, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); border-radius: 6px; }
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: 300 2rem/1 var(--sans);
    cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .lightbox img { max-width: calc(100vw - 24px); }
    .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}

/* Témoignages */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.quote {
    position: relative;
    margin: 0;
    padding: 56px 30px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.quote::before {
    content: "“";
    position: absolute;
    top: 6px;
    left: 24px;
    font: italic 400 5rem/1 var(--serif);
    color: var(--red);
}
.quote blockquote { margin: 0 0 1.4em; font: italic 300 1.12rem/1.6 var(--serif); }
.quote figcaption { font-size: .86rem; color: var(--muted); }
.quote figcaption strong { color: var(--text); font-weight: 600; }

/* Tarif */

.price {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(36px, 6vw, 60px);
    border: 1px solid rgba(217, 178, 111, .3);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(200, 40, 47, .18), transparent 55%),
        var(--surface);
    text-align: center;
}
.price-from { margin: .8em 0 0; font: italic 400 1.2rem var(--serif); color: var(--muted); }
.price-value { font: 300 clamp(3.6rem, 9vw, 5.5rem)/1 var(--serif); margin: .1em 0 .2em; }
.price-value span { color: var(--gold); }
.price-list {
    list-style: none;
    padding: 0;
    margin: 2em auto;
    max-width: 480px;
    text-align: left;
}
.price-list li { position: relative; padding: .65em 0 .65em 30px; border-top: 1px solid var(--line); }
.price-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.05em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--red-hover);
    border-bottom: 2px solid var(--red-hover);
    transform: rotate(-45deg);
}

/* Contact */

.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } }

.contact-intro { position: sticky; top: calc(var(--header-h) + 30px); }
@media (max-width: 920px) { .contact-intro { position: static; } }
.contact-intro > p { color: rgba(243, 236, 228, .86); }

.contact-direct { list-style: none; padding: 0; margin: 2em 0; display: grid; gap: 14px; }
.contact-direct li { display: flex; align-items: center; gap: 12px; }
.contact-direct svg { width: 20px; height: 20px; color: var(--red-hover); flex: none; }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { color: var(--gold); }
.badge img { border-radius: 50%; opacity: .9; }

.booking {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}
.booking fieldset { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.booking legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
    font: 400 1.3rem var(--serif);
}
.step {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    font: 700 .85rem var(--sans);
    color: #fff;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: .65em 1.15em;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .92rem;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.chip span:hover { border-color: rgba(243, 236, 228, .4); }
.chip input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips.invalid span { border-color: rgba(224, 53, 60, .7); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.field em { font-weight: 400; font-style: normal; opacity: .7; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8em 1em;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    font: inherit;
    font-size: .98rem;
    color-scheme: dark;
    transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(0, 0, 0, .4); }
.field input:disabled { opacity: .4; }
.field input.invalid { border-color: var(--red-hover); }
.field select option { background: var(--surface); }

.check { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }

.hp { position: absolute; left: -9999px; }
.form-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.form-status { margin: 0; font-size: .92rem; }
.form-status.error { color: #ff8a8f; }

/* Page de remerciement (/merci) */

.thanks {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 40px) 20px 60px;
    text-align: center;
    background:
        linear-gradient(rgba(15, 13, 12, .78), var(--bg)),
        url("../images/fulls/trioasa_2025_ensemble1.jpg") center / cover no-repeat;
}
.thanks-box { max-width: 640px; animation: rise 1s .1s both cubic-bezier(.2, .7, .2, 1); }
.thanks h1 { font-size: clamp(2.8rem, 8vw, 4.5rem); font-weight: 300; }
.thanks h1 em { color: var(--red); }
.thanks p { color: rgba(243, 236, 228, .88); font-size: 1.1rem; }
.thanks .hero-actions { margin-top: 2.2em; }
.success-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 26px;
    border-radius: 50%;
    background: rgba(200, 40, 47, .18);
    color: var(--red-hover);
}
.success-icon svg { width: 30px; height: 30px; stroke-width: 2; }

/* Pied de page */

.site-footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }
.site-footer img { height: auto; margin-bottom: 14px; }
.site-footer h3 { font: 600 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer nav a { display: block; padding: 4px 0; font-size: .92rem; text-decoration: none; color: rgba(243, 236, 228, .8); }
.site-footer nav a:hover { color: var(--gold); }
.copyright { margin: 50px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }

/* Apparition au défilement */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .card.reveal.visible:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
