/* ===== Lamamaloca — feuille de style ===== */

/* Polices hébergées localement (sous-ensemble latin) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/static/fonts/inter.woff2') format('woff2');
}

@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/static/fonts/permanent-marker.woff2') format('woff2');
}

:root {
    --bg: #121110;
    --bg-alt: #1b1917;
    --surface: #242120;
    --border: #35302d;
    --text: #f3eee8;
    --text-muted: #b5aca3;
    --orange: #f2572b;
    --jaune: #f7c531;
    --vert: #7bd23f;
    --turquoise: #2fb8b4;
    --radius: 14px;
    --font-titre: 'Permanent Marker', 'Comic Sans MS', cursive;
    --font-texte: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-texte);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--jaune);
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Titres */
h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 16px;
}

h2 {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: 0.5px;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-intro {
    max-width: 640px;
    color: var(--text-muted);
    margin: 0 0 40px;
}

/* Petit trait multicolore sous les titres de section */
.titre-deco::after {
    content: '';
    display: block;
    width: 96px;
    height: 5px;
    margin-top: 10px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange), var(--jaune), var(--vert), var(--turquoise));
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}

.btn-primary:hover {
    background: #ff6a3d;
}

.btn-outline {
    border: 2px solid var(--turquoise);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--turquoise);
    color: var(--bg);
}

/* ===== En-tête ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 17, 16, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    font-family: var(--font-titre);
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
}

.header-logo span:nth-child(1) { color: var(--orange); }
.header-logo span:nth-child(2) { color: var(--jaune); }
.header-logo span:nth-child(3) { color: var(--turquoise); }

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: var(--jaune);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

/* ===== Bandeau d'accueil ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 80px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(242, 87, 43, 0.18), transparent 45%),
        radial-gradient(circle at 80% 40%, rgba(47, 184, 180, 0.16), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(123, 210, 63, 0.10), transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
}

.hero-logo {
    width: min(600px, 100%);
    margin: 0 auto 8px;
    border-radius: var(--radius);
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at center, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 70% at center, #000 60%, transparent 100%);
}

.hero h1 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero h1 strong {
    color: var(--text);
}

.hero-lieu {
    color: var(--text-muted);
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ===== Le groupe ===== */
.groupe-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.groupe-photo {
    border-radius: var(--radius);
    box-shadow: 10px 10px 0 var(--turquoise);
}

.musiciens {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    gap: 10px;
}

.musiciens li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.musiciens li::before {
    content: '';
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c, var(--orange));
}

.repertoire-titre {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 28px 0 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

/* ===== Prestations ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--c);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.card-icone {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 12px;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 15%, transparent);
}

.card-icone svg {
    width: 28px;
    height: 28px;
}

.card p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== Vidéos ===== */
.videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-cadre {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
}

.video-cadre iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Vignette cliquable : la vidéo YouTube n'est chargée qu'au clic */
.video-lancer {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
}

.video-lancer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.video-lancer:hover img {
    opacity: 1;
}

.video-lancer .play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--orange);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.video-lancer:hover .play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-lancer .play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    fill: #fff;
}

.video h3 {
    margin: 18px 0 6px;
}

.video p {
    color: var(--text-muted);
    margin: 0;
}

.lien-chaine {
    margin-top: 36px;
    text-align: center;
}

/* ===== Galerie ===== */
.galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.galerie figure {
    margin: 0;
}

.galerie button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
    background: none;
}

.galerie img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerie button:hover img {
    transform: scale(1.04);
}

.galerie figcaption {
    margin-top: 10px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Visionneuse plein écran */
.visionneuse {
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 94vw;
    max-height: 92vh;
}

.visionneuse::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.visionneuse img {
    max-width: 94vw;
    max-height: 86vh;
    border-radius: 8px;
}

.visionneuse p {
    margin: 10px 0 0;
    color: #ddd;
    text-align: center;
}

.visionneuse-fermer {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

/* ===== Contact ===== */
.contact {
    text-align: center;
}

.contact .titre-deco::after {
    margin-left: auto;
    margin-right: auto;
}

.contact .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.05rem, 3.5vw, 1.4rem);
    padding: 16px 32px;
    word-break: break-all;
}

.contact-mail svg {
    width: 24px;
    height: 24px;
    flex: none;
}

.contact-infos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 32px;
    margin-top: 36px;
    color: var(--text-muted);
}

.contact-infos a {
    color: var(--text-muted);
}

.contact-infos a:hover {
    color: var(--jaune);
}

.carte {
    max-width: 760px;
    margin: 40px auto 0;
}

.carte iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    filter: grayscale(0.3);
}

.carte a {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Pied de page ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.footer a {
    color: var(--text-muted);
}

/* ===== Page de texte (mentions légales) ===== */
.page-texte {
    max-width: 760px;
    padding-top: 64px;
    padding-bottom: 88px;
}

.page-texte h2 {
    font-family: var(--font-texte);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 40px;
}

.page-texte h1 {
    font-family: var(--font-titre);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.page-texte p,
.page-texte li {
    color: var(--text-muted);
}

.page-texte strong {
    color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .groupe-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .groupe-photo {
        box-shadow: 6px 6px 0 var(--turquoise);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .videos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .container {
        padding: 0 16px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 20px;
        border-top: 1px solid var(--border);
    }

    .galerie {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
