/* ===============================
   FONTS
================================ */

@font-face {
    font-family: 'Aileron';
    src: url('../fonts/Aileron-Regular.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Roxborough';
    src: url('../fonts/Roxborough.ttf') format('truetype');
    font-display: swap;
}

/* ===============================
   RESET / BASE
================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --color-background: #151514;
    --color-accentuation: #ff4f42;
    --color-quotes: #3a3939;
    --color-italic: #a7a7a7;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-input-bg: #191919;
    --color-border: gray;
    --color-success: green;
    --color-error: #610000;
}

html {
    background-color: var(--color-background);
    color: var(--color-white);
    font-family: 'Aileron', Arial, serif;
}

body {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
.presentation figcaption {
    font-family: 'Roxborough', Georgia, serif;
}

.page {
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===============================
   NAVIGATION
================================ */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background-color: var(--color-background);
    z-index: 999;
}

nav ul {
    width: 45%;
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul:first-child {
    justify-content: flex-end;
    gap: 8%;
    padding-right: 2%;
}

nav ul:last-child {
    justify-content: flex-start;
    gap: 12%;
    padding-left: 2%;
}

nav img {
    width: auto;
    height: 2.5rem;
}

nav div img {
    height: 6rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: bold;
    font-variant: small-caps;
    font-size: 1.2rem;
}

nav ul li a.active {
    color: var(--color-accentuation);
}

#banderolle {
    width: 100%;
    height: auto;
}

/* ===============================
   MAIN — GÉNÉRAL
================================ */

main h2 {
    font-variant: small-caps;
    text-align: center;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

main p {
    text-align: center;
    font-variant: small-caps;
    font-size: 1.2rem;
}

main p em {
    color: var(--color-italic);
}

main article {
    margin: 10rem 0;
}

/* ===============================
   H2 — TRAITS DÉCORATIFS
================================ */

.dots {
    display: inline-block;
    flex: 1;
    max-width: 10rem;
    height: 2px;
    background: linear-gradient(to var(--dots-direction, right), transparent, var(--color-accentuation) 60%);
    opacity: 0.6;
    vertical-align: middle;
    align-self: center;
}

/* Le premier .dots pointe vers la droite (vers le titre) */
main h2 .dots:first-child {
    --dots-direction: right;
}

/* Le second .dots pointe vers la gauche (vers le titre) */
main h2 .dots:last-child {
    --dots-direction: left;
}

/* ===============================
   H2 — EFFET GLITCH
================================ */

main h2 .title-text {
    position: relative;
    display: inline-block;
}

main h2 .title-text::before,
main h2 .title-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

main h2 .title-text::before {
    color: #00f0ff;
    clip-path: inset(0 0 50% 0);
    animation: glitch-top 3s infinite;
}

main h2 .title-text::after {
    color: var(--color-accentuation);
    clip-path: inset(50% 0 0 0);
    animation: glitch-bot 3s infinite;
}

@keyframes glitch-top {

    0%,
    85%,
    100% {
        opacity: 0;
        transform: none;
    }

    86% {
        opacity: 1;
        transform: translate(-3px, -2px);
    }

    88% {
        opacity: 1;
        transform: translate(3px, -2px);
    }

    90% {
        opacity: 0;
    }
}

@keyframes glitch-bot {

    0%,
    85%,
    100% {
        opacity: 0;
        transform: none;
    }

    87% {
        opacity: 1;
        transform: translate(3px, 2px);
    }

    89% {
        opacity: 1;
        transform: translate(-3px, 2px);
    }

    90% {
        opacity: 0;
    }
}

/* ===============================
   CONCERTS
================================ */

.concerts {
    width: 80%;
    margin: 8rem auto;
}

.concerts-upcoming,
.concerts-past {
    margin-top: 3rem;
}

.concert-item {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    align-items: center;
    padding: 1.2rem 2rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--color-accentuation);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, background 0.3s ease;
    font-variant: small-caps;
}

.concert-item:hover {
    transform: translateX(8px);
    background: rgba(255, 79, 66, 0.08);
}

.map-mobile {
    display: none;
}

.map-desktop {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    margin-bottom: 1rem;
}

.concert-date {
    font-weight: bold;
    color: var(--color-accentuation);
}

.concert-place {
    font-size: 1.3rem;
}

.concert-city {
    text-align: right;
    color: var(--color-italic);
}

.past {
    opacity: 0.5;
    border-left: 4px solid gray;
}

.past:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.past-title {
    margin-top: 6rem;
}

.duo-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* ===============================
   CONCERT DETAILS
================================ */

/* Rendre tout le bloc cliquable */
.concert-item {
    cursor: pointer;
}

.concert-poster {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Bloc détails */
.concert-details {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    border: 1px solid rgba(255, 79, 66, 0.4);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 2rem;
    margin: 0;
}

.concert-details.open {
    max-height: 1200px;
    opacity: 1;
    padding: 2rem;
    margin: 0.5rem 0 2rem 0;
}

/* Carte */
.concert-details iframe {
    width: 100%;
    height: 300px;
    border: none;
    margin: 2rem 0 1rem 0;
}

/* Texte */
.concert-address {
    color: var(--color-italic);
    font-size: 0.9rem;
}

.concert-description {
    margin-top: 1rem;
    line-height: 1.6;
    font-variant: normal;
}

.fb-link {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0 auto;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-accentuation);
    color: var(--color-accentuation);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.05rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.fb-link:hover {
    background: var(--color-accentuation);
    color: var(--color-black);
    transform: translateY(-2px);
}

/* ===============================
   SINGLES
================================ */

.singles {
    display: flex;
    justify-content: center;
    gap: 10rem;
}

.singles a {
    display: flex;
    justify-content: center;
    width: 300px;
    overflow: hidden;
}

.singles a img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.singles a:hover img {
    transform: scale(1.08);
}

/* ===============================
   PRÉSENTATION
================================ */

.presentation {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 5rem auto;
}

.presentation:nth-child(odd) {
    flex-direction: row-reverse;
}

.presentation figure {
    text-align: center;
    position: relative;
}

.presentation p {
    font-size: 1.2rem;
    font-variant: normal;
    line-height: 1.5;
}

.presentation img {
    width: 80%;
    height: auto;
}

.presentation figcaption {
    color: var(--color-accentuation);
    font-variant: small-caps;
    font-size: 2.5rem;
    position: absolute;
    top: 25%;
    right: 20%;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.6);
    writing-mode: sideways-lr;
    text-orientation: mixed;
    z-index: 1;
}

h5 {
    color: var(--color-accentuation);
    font-variant: small-caps;
    font-size: 2.5rem;
}

/* ===============================
   GALERIE
================================ */

.galerie {
    position: relative;
    margin: 0;
}

.imagesgalerie {
    display: flex;
    justify-content: space-between;
    width: 100%;
    aspect-ratio: 2.5 / 1;
    margin: 1rem 0;
}

.imagesgalerie img {
    width: 45%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.4;
}

.imagesgalerie img,
.presentation img {
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent),
        linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent),
        linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
    -webkit-mask-composite: destination-in;
    will-change: transform;
    transform: translateZ(0);
}

.overlaytxt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 35%;
}

.captiontxt {
    font-size: 1.5rem;
}

#firstpic,
#fifthpic,
#sixthpic {
    object-position: center 20%;
}

#thirdpic {
    object-position: center 30%;
}

/* ===============================
   BLOCKQUOTE
================================ */

blockquote q {
    background-color: var(--color-quotes);
    border-radius: 0.5rem;
    font-style: normal;
}

blockquote p {
    font-style: italic;
    font-variant: normal;
}

/* ===============================
   PAGE PRIVACY
================================ */

.privacy {
    margin: 2rem 10%;
}

.privacy h1 {
    text-align: center;
    font-size: 2rem;
}

.privacy h2 {
    text-align: left;
    display: block;
    font-variant: normal;
    font-size: 1.8rem;
}

.privacy p:nth-of-type(1) {
    text-align: center;
}

.privacy p,
.privacy a {
    text-align: justify;
    display: block;
    font-variant: normal;
    font-size: 1rem;
}

.privacy ul {
    list-style: disc;
}

.privacy ul li {
    font-size: 1rem;
}

/* ===============================
   FOOTER
================================ */

footer h3 {
    font-size: 5rem;
    margin: 0;
    font-variant: small-caps;
}

footer h4 {
    font-size: 2rem;
}

footer article {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
}

footer article div {
    width: 50%;
}

footer article img {
    width: auto;
    height: 2.5rem;
}

footer article ul {
    list-style: none;
}

.leftdiv {
    padding-left: 2rem;
}

.leftdiv a {
    text-align: left;
    font-variant: normal;
    font-size: 1.2rem;
    color: var(--color-accentuation);
    text-decoration: none;
}

.leftdiv ul {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    padding: 1rem 0;
}

.rightdiv {
    padding-right: 2rem;
}

.imagefooter {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    margin-top: 1rem;
}

.imagefooter img {
    width: 100%;
    height: auto;
    display: block;
}

.copyright {
    position: absolute;
    color: var(--color-white);
    font-size: 0.8rem;
}

.copyright a,
.privacy a {
    color: var(--color-accentuation);
}

/* ===============================
   FORMULAIRE CONTACT
================================ */

#contactdecorum {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactdecorum label {
    width: 100%;
}

#contactdecorum input,
#contactdecorum textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--color-input-bg);
    color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    font-family: inherit;
}

#contactdecorum textarea {
    min-height: 8rem;
}

#contactdecorum button {
    align-self: center;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    border-radius: 0.4rem;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#contactdecorum button:hover {
    transform: scale(1.2);
}

/* ===============================
   ALERTES FORMULAIRE
================================ */

.form-alert {
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
}

.form-alert.success {
    background: var(--color-success);
}

.form-alert.error {
    background: var(--color-error);
}

.form-alert.hidden {
    display: none;
}

/* ===============================
   TABLETTE (max-width: 1280px)
================================ */

@media (max-width: 1280px) {

    .burger {
        position: fixed;
        top: 1rem;
        left: 1rem;
        width: 54px;
        height: 54px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        opacity: 0;
        pointer-events: none;
        transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, opacity 0.3s ease;
    }

    .burger.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .burger.open {
        background: rgba(255, 79, 66, 0.2);
        border-color: rgba(255, 79, 66, 0.5);
        box-shadow: 0 4px 20px rgba(255, 79, 66, 0.25);
    }

    .burger span {
        width: 20px;
        height: 2px;
        background: var(--color-white);
        border-radius: 2px;
        transform-origin: center;
        transition: transform 0.35s ease, opacity 0.3s ease;
    }

    .burger span:nth-child(1),
    .burger span:nth-child(2),
    .burger span:nth-child(3) {
        transform: none;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .burger.open span:nth-child(2) {
        opacity: 0;
    }

    .burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 40%;
        height: 100vh;
        background: var(--color-background);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 6rem;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.45s cubic-bezier(.77, 0, .18, 1);
        will-change: transform;
        box-shadow: 6px 0 30px rgba(0, 0, 0, 0.5);
    }

    nav.open {
        transform: translateX(0);
    }

    .nav-logo {
        order: -1;
        margin-bottom: 3rem;
    }

    .nav-logo img {
        height: 5rem;
    }

    nav ul {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0;
    }

    nav ul:first-child,
    nav ul:last-child {
        justify-content: center;
        padding: 0;
    }

    nav ul:last-child {
        margin-top: 3rem;
    }

    nav ul li {
        padding: 0.8rem 0;
    }

    .overlay {
        position: fixed;
        inset: 0;
        backdrop-filter: blur(8px);
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 900;
    }

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .no-scroll {
        overflow: hidden;
    }

    /* H2 tablette : taille réduite, traits plus courts */
    main h2 {
        font-size: 2rem;
        gap: 1rem;
    }

    .dots {
        max-width: 6rem;
    }

    /* Glitch : décalage légèrement réduit */
    @keyframes glitch-top {

        0%,
        85%,
        100% {
            opacity: 0;
            transform: none;
        }

        86% {
            opacity: 1;
            transform: translate(-2px, -2px);
        }

        88% {
            opacity: 1;
            transform: translate(2px, -2px);
        }

        90% {
            opacity: 0;
        }
    }

    @keyframes glitch-bot {

        0%,
        85%,
        100% {
            opacity: 0;
            transform: none;
        }

        87% {
            opacity: 1;
            transform: translate(2px, 2px);
        }

        89% {
            opacity: 1;
            transform: translate(-2px, 2px);
        }

        90% {
            opacity: 0;
        }
    }

    main p {
        font-size: 1rem;
    }

    .singles {
        gap: 2rem;
    }

    .singles a img {
        width: 60%;
        height: auto;
    }

    .imagesgalerie {
        aspect-ratio: 2 / 1;
        margin: 1rem 0;
    }

    .overlaytxt {
        width: 45%;
    }

    .captiontxt {
        font-size: 1.2rem;
    }

    h5 {
        margin: 1rem auto;
    }

    .presentation img {
        width: 100%;
    }

    .presentation p {
        font-size: 1rem;
    }

    .presentation figcaption {
        top: 15%;
        right: 7.5%;
    }

    footer h3 {
        font-size: 3rem;
    }

    footer h4 {
        font-size: 1.5rem;
    }

    .leftdiv a {
        font-size: 1.1rem;
    }
}

/* ===============================
   MOBILE (max-width: 768px)
================================ */

@media (max-width: 768px) {

    nav {
        width: 60%;
    }

    .nav-logo {
        margin-bottom: 1rem;
    }

    .burger {
        top: 1rem;
        left: 1rem;
        width: 42px;
        height: 42px;
    }

    nav ul li {
        padding: 0;
    }

    /* H2 mobile : taille réduite, traits très courts */
    main h2 {
        font-size: 1.7rem;
        gap: 0.6rem;
    }

    .dots {
        max-width: 3rem;
    }

    /* Glitch mobile : décalage minimal pour rester lisible */
    @keyframes glitch-top {

        0%,
        85%,
        100% {
            opacity: 0;
            transform: none;
        }

        86% {
            opacity: 1;
            transform: translate(-2px, -1px);
        }

        88% {
            opacity: 1;
            transform: translate(2px, -1px);
        }

        90% {
            opacity: 0;
        }
    }

    @keyframes glitch-bot {

        0%,
        85%,
        100% {
            opacity: 0;
            transform: none;
        }

        87% {
            opacity: 1;
            transform: translate(2px, 1px);
        }

        89% {
            opacity: 1;
            transform: translate(-2px, 1px);
        }

        90% {
            opacity: 0;
        }
    }

    main p {
        font-size: 0.8rem;
    }

    main article {
        margin: 5rem 0;
    }

    .concert-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .concert-poster {
        max-width: 90%;
        margin-bottom: 1rem;
    }

    .concert-city {
        text-align: left;
    }

    .map-desktop {
        display: none;
    }

    .map-mobile {
        display: block;
        width: fit-content;
        margin: 1.5rem auto;
        padding: 0.8rem 2rem;
        border: 2px solid var(--color-accentuation);
        color: var(--color-accentuation);
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .map-mobile:hover {
        background: var(--color-accentuation);
        color: var(--color-black);
    }

    .singles {
        gap: 0.5rem;
    }

    .singles a img {
        width: 80%;
        height: auto;
    }

    .imagesgalerie {
        aspect-ratio: 1 / 1;
        margin: 1rem 0;
    }

    .overlaytxt {
        width: 45%;
    }

    .captiontxt {
        font-size: 0.9rem;
    }

    h5,
    .presentation figcaption {
        font-size: 1.5rem;
    }

    .presentation,
    .presentation:nth-child(odd) {
        flex-direction: column;
    }

    .presentation p {
        text-align: justify;
        font-size: 0.9rem;
    }

    footer {
        margin-top: 5rem;
    }

    footer h3 {
        font-size: 3rem;
    }

    footer article {
        flex-direction: column;
        margin: 0 1rem;
    }

    footer article img {
        height: 2rem;
    }

    footer article div {
        width: 90%;
    }

    .leftdiv,
    .rightdiv {
        padding: 0;
    }

    .leftdiv,
    .leftdiv a,
    .rightdiv h4 {
        text-align: center;
    }

    .leftdiv ul {
        justify-content: center;
    }

    .copyright {
        font-size: 0.6rem;
    }
}