/* Fonts */

@font-face {
    font-family: 'Amoria';
    src: url('../fonts/amoria/AMORIA.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url('../fonts/nexa/Nexa-ExtraLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Variables & reset */

:root {
    --noir:          #060607;
    --rose-fonce:    #CF8ABA;
    --rose-vif:      #FD82D7;
    --rose-pale:     #FED9F3;
    --rose-doux:     #FED0EF;

}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Body & background */

body {
    font-family: 'Nexa', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(
            160deg,
            #060607 0%,
            #1a0a14 30%,
            #3d1430 55%,
            #7a2d5e 75%,
            #CF8ABA 100%
    );
    background-attachment: fixed;
    color: #FED9F3;
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Header & navigation */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 0, 20, 0.50);
    backdrop-filter: blur(10px);
}

nav[aria-label="Navigation principale"] {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    justify-self: start;
}

.nav-logo img {
    height: 58px;
    width: auto;
    display: block;
}

nav[aria-label="Navigation principale"] ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    justify-self: center;
}

nav a {
    color: #FED9F3;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    transition: opacity 0.25s ease, color 0.25s ease;
    position: relative;
}

.nav-logo {
    opacity: 1;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #FD82D7;
    transition: width 0.25s ease;
}

.nav-logo::after {
    display: none;
}

nav a:not(.nav-logo):hover {
    opacity: 1;
    color: #FD82D7;
}

nav a:not(.nav-logo):hover::after {
    width: 100%;
}

/* Main & sections */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid #FED9F326;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-family: 'Amoria', serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: normal;
    color: #FD82D7;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-align: center;
}

h3 {
    font-family: 'Nexa', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FED9F3;
    margin-bottom: 0.5rem;
    text-align: center;
}

p {
    font-family: 'Nexa', 'Segoe UI', system-ui, sans-serif;
    font-weight: 300;
    color: #FED0EF;
    max-width: 65ch;
    font-size: 1rem;
}

/*
   Section accueil — hero */

#accueil {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 5rem 0;
}

/* Titre site */

.hero-titre {
    display: flex;
    flex-direction: column;
    transform-origin: center center;
    pointer-events: none;
    user-select: none;
    margin-bottom: 3rem;
}

.hero-titre span {
    display: block;
    font-family: 'Amoria', serif;
    font-size: clamp(2.5rem, 7.5vw, 6.5rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.hero-titre span:nth-child(1) {
    color: #ffffff;
}

/* Bannière défilante */

.ticker {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    background: #FD82D7;
    border-top: 1px solid #FED9F333;
    border-bottom: 1px solid #FED9F333;
    padding: 0.75rem 0;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 22s linear infinite;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #060607;
    white-space: nowrap;
    padding: 0 1.5rem;
}

.ticker-sep {
    color: #06060766;
    font-size: 0.7rem;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Hero — Bouton billets */

.hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-billets {
    display: inline-block;
    background: #FD82D7;
    color: #060607;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.85rem 3rem;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-billets:hover {
    background: transparent;
    color: #FD82D7;
    border-color: #FD82D7;
    transform: translateY(-2px);
}

/* Section programmation */

/*titre*/

#programmation h2 {
    line-height: 1.2;
}

.programmation-date {
    display: block;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #FED9F3;
    letter-spacing: -0.01em;
}

/* Cartes artistes et affichage */

.cartes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.rangee--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 740px;
    margin: 0 auto;
    width: 100%;
}

.rangee--featured {
    display: flex;
    justify-content: center;
}

.rangee--featured .carte {
    width: 340px;
}

/* Photos cartes artistes background */

.carte {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
}

.carte-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.carte-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.carte-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.carte-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    display: inline-block;
}

.btn-infos {
    display: inline-block;
    background: #FD82D7;
    color: #060607;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s ease;
    margin-top: 0.25rem;
}

.btn-infos:hover {
    background: #FED9F3;
    transform: scale(1.04);
}

/* Carte centrale */

.carte--featured {
    border: 1px solid #FD82D7AA;
}

.carte--featured .carte-overlay {
    background: linear-gradient(
            to top,
            #06060799 0%,
            #06060733 35%,
            transparent 55%
    );
}

.carte--featured .carte-tag {
    background: #FD82D7;
    color: #060607;
}

.carte--featured h3 {
    font-size: 1.15rem;
    color: #FED9F3;
}

.carte--featured .btn-infos {
    background: #FED9F3;
    color: #060607;
}

.carte--featured .btn-infos:hover {
    background: #FD82D7;
    color: #060607;
}

/* Cartes duo (ZK × Unterschrift) */

.carte--duo-violet {
    border: 1px solid #CF8ABA66;
}

.carte--duo-violet .carte-overlay {
    background: linear-gradient(
            to top,
            #060607CC 0%,
            #1a0a3055 45%,
            transparent 65%
    );
}

.carte--duo-violet .carte-tag {
    background: #CF8ABA33;
    color: #FED9F3;
    border: 1px solid #CF8ABA66;
}

.carte--duo-violet h3 {
    color: #FED9F3;
}

.carte--duo-violet .btn-infos {
    background: #CF8ABA;
    color: #060607;
}

.carte--duo-violet .btn-infos:hover {
    background: #FED9F3;
    color: #060607;
}

/* Cartes duo (Tist × Meluria) */

.carte--duo-rose {
    border: 1px solid #FD82D766;
}

.carte--duo-rose .carte-overlay {
    background: linear-gradient(
            to top,
            #060607CC 0%,
            #3d143055 45%,
            transparent 65%
    );
}

.carte--duo-rose .carte-tag {
    background: #FD82D733;
    color: #FED9F3;
    border: 1px solid #FD82D766;
}

.carte--duo-rose h3 {
    color: #FED9F3;
}

.carte--duo-rose .btn-infos {
    background: #FD82D7;
    color: #060607;
}

.carte--duo-rose .btn-infos:hover {
    background: #FED9F3;
    color: #060607;
}

/* Section à propos */

.apropos-card {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: #1a0a1480;
    border: 1px solid #FD82D726;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    transition: border-color 0.25s ease;
}

.apropos-card:hover {
    border-color: #FD82D766;
}

.apropos-logo {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apropos-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.apropos-texte-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apropos-texte {
    color: #FED9F3B3;
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: none;
}

.apropos-contact {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.apropos-contact-lien img {
    width: 28px;
    height: 28px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.apropos-contact-lien:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Section infos pratiques */

.infos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.info-card {
    background: #1a0a1480;
    border: 1px solid #FD82D726;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-card-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.info-card-titre {
    font-size: 1rem;
    font-weight: 700;
    color: #FD82D7;
    text-align: left;
    margin-bottom: 0;
}

.info-card-texte {
    font-size: 0.9rem;
    color: #FED9F3B3;
    line-height: 1.6;
    max-width: none;
}

.info-card-lien {
    color: #FD82D7;
    text-decoration: underline;
}

.infos-map {
    margin-top: 2rem;
}

.infos-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    display: block;
    margin-top: 0.75rem;
}


/* Footer*/

footer {
    background: transparent;
    padding: 2rem;
    text-align: center;
}

footer p {
    color: #FED9F3;
    opacity: 0.6;
    font-size: 0.85rem;
    max-width: none;
    margin: 0 auto;
}

/* CSS EMMA*/

/* CSS Logo Case à chocs*/

#logoCac{
    transform: rotate(15deg);
}

#logoCac:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(15deg); }
    10% { transform: translate(-1px, -2px) rotate(14deg); }
    20% { transform: translate(-3px, 0px) rotate(16deg); }
    30% { transform: translate(3px, 2px) rotate(15deg); }
    40% { transform: translate(1px, -1px) rotate(16deg); }
    50% { transform: translate(-1px, 2px) rotate(14deg); }
    60% { transform: translate(-3px, 1px) rotate(15deg); }
    70% { transform: translate(3px, 1px) rotate(14deg); }
    80% { transform: translate(-1px, -1px) rotate(16deg); }
    90% { transform: translate(1px, 2px) rotate(15deg); }
    100% { transform: translate(1px, -2px) rotate(14deg); }
}

/*taille et emplacement du logo Case à chocs*/

.hero-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-venue {
    display: flex;
    align-items: center;
}

.hero-venue img {
    height: 95px;
    width: auto;
}

/* INFOS ARTSITES - MODAL */
#modalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:  rgba(7, 0, 5, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#modalOverlay.active {
    display: flex;
}

#modal,
.modal-content {
    background: rgba(207, 138, 186, 0.12);
    border: 1px solid rgba(253, 130, 215, 0.3);
    border-radius: 1.5rem;
    width: 85%;
    max-width: 820px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
}

.modal-reseaux a {
    margin-top: 1rem;
    color: var(--rose-vif);
}

#modalClose {
    position: sticky;
    top: 0;
    float: right;
    background: var(--rose-vif);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

#modalClose:hover {
    color: var(--noir);
}

#modalTop {
    display: flex;
    gap: 3rem;
    padding-bottom: 3rem;
}

#modalImg {
    width: 14rem;
    height: 16rem;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid var(--rose-pale);
}

#modalDesc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: white;
    padding-bottom: 2rem;
}

#modalDescHeader {
    display: flex;
    gap: 2rem;
}

#modalDesc h2 {
    font-size: 1.35rem;
}

#modalDesc p {
    font-size: 0.88rem;
}

#modalVideo {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

#modalIntegration {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.soundIntegration {
    flex: 1;
    min-width: 0;
}

.soundIntegration iframe {
    width: 100%;
    height: 152px;
}

#modalRS {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
}

#modalRSLogo {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* CSS animation Léo */

/*
CSS Cursor et LOGO CORE
 */

#cursor-dot {
    width: 8px;
    height: 8px;
    background: rgb(253, 130, 215);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(207, 138, 186, 0.6);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
}


/* Le logo anim */
#logo-core {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    will-change: left, top;
}

#logo-core img {
    display: block;
    width: 150px;
    user-select: none;
    animation: float 10s ease-in-out infinite;
    transition: width 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#logo-core img.centered {
    width: 560px;
    max-width: 78vw;
}

@keyframes float {
    0%   { transform: translateY(0px)  rotate(0deg); }
    25%  { transform: translateY(-4px) rotate(-0.6deg); }
    50%  { transform: translateY(-7px) rotate(0deg); }
    75%  { transform: translateY(-4px) rotate(0.6deg); }
    100% { transform: translateY(0px)  rotate(0deg); }
}

/* Logo core visible fixe en bas à gauche */
#core-logo {
    position: fixed;
    bottom: 30px;
    left: 200px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#core-logo img {
    display: block;
    height: 50px;
    width: auto;
    user-select: none;
}

/* RESPONSIVE - téléphone*/

@media (max-width: 640px) {

    /* Curseur custom masqué sur mobile (pas de souris) */
    #cursor-dot,
    #cursor-ring {
        display: none;
    }

    /* HEADER / NAV */
    nav[aria-label="Navigation principale"] {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.6rem;
        padding: 0.6rem 1rem;
    }

    .nav-logo {
        justify-self: center;
    }

    nav[aria-label="Navigation principale"] ul {
        gap: 0.4rem 1rem;
        justify-content: center;
    }

    nav a {
        font-size: 0.78rem;
    }

    /* MAIN & SECTIONS */
    main {
        padding: 0 1rem 3rem;
    }

    section {
        padding: 2.5rem 0;
    }

    /* HERO */
    #accueil {
        min-height: auto;
        gap: 2rem;
        padding: 3rem 0;
    }

    .hero-top {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-titre {
        margin-bottom: 1rem;
    }

    .hero-titre span {
        white-space: normal;
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }

    .hero-venue img {
        height: 55px;
    }

    /* TICKER */
    .ticker {
        padding: 0.5rem 0;
    }

    .ticker-item {
        font-size: 0.7rem;
        padding: 0 0.9rem;
    }

    /* BOUTON BILLETS */
    .btn-billets {
        font-size: 0.85rem;
        padding: 0.65rem 1.75rem;
    }

    /* LOGO ANIMÉ - réduit sur mobile */
    #logo-core img {
        width: 70px;
    }

    #logo-core img.centered {
        width: 200px;
        max-width: 60vw;
    }

    /* PROGRAMMATION - cartes moins hautes */
    .carte {
        aspect-ratio: 3 / 3.5;
    }

    .carte-content {
        padding: 0.75rem 0.75rem 1rem;
        gap: 0.3rem;
    }

    .carte h3 {
        font-size: 0.9rem;
    }

    .carte-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

    .btn-infos {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }

    .rangee--featured .carte {
        width: 100%;
        max-width: 220px;
    }

    /* A propos */
    .apropos-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }

    .apropos-logo {
        width: 110px;
    }

    .apropos-contact {
        justify-content: center;
    }

    /* Infos pratiques */
    .infos-grid {
        grid-template-columns: 1fr;
    }

    .infos-map iframe {
        height: 240px;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.25rem;
        border-radius: 1rem;
    }

    #modalClose {
        float: none;
        display: block;
        margin-left: auto;
        margin-bottom: 0.75rem;
    }

    #modalImg {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

    #modalIntegration {
        flex-direction: column;
    }

}
