@font-face {
    font-family: 'Bernier Regular';
    src: url('/FONT/BERNIER™ Regular.ttf');
}

* {
    margin: 0;
    padding: 0;
    margin-block-end: 0;
    margin-block-start: 0;
    font-weight: 400;
}

h1, h2, h3 {
    font-family: 'Bernier Regular';
}

.home-header {
    background-image: url('/img/header-home.JPG');
}
.archives{
    background: #000;
    width: 100%;
    height: 250px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 100px;
    font-family: 'Bernier Regular';
}
header {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    width: 100%;
    aspect-ratio: 3/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    height: 60%;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 100px;
}

h1 img {
    height: 100%;
}

section {
    display: flex;
    max-width: 100%;
}
.text-container {
    max-width: 50%;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10%;
    text-align: center;
}

h2 {
   font-size: 60px;
   margin-bottom: 40px;
}

p {
    font-size: 20px;
    margin-bottom: 80px;
}

a {
    font-size: 20px;
    font-family: 'Bernier Regular';
    color: #fff;
    background-color: #000;
    padding: 15px 45px;
    clip-path: polygon(7% 0%, 93% 0%, 98% 50%, 93% 100%, 7% 100%, 2% 50%);
    text-decoration: none;
    border: 1px solid #000;
    transition: all .3s ease;
}

a:hover {
    color: #000;
    background-color: #fff;
}

/* Section images — garder les proportions (pas de déformation) */
section img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Images qui sont placées à côté du texte (layout courant) :
   conservent une largeur maximum de 50% sur grand écran,
   tout en restant non-déformées */
section > img,
section img.side,
section .section-image {
    width: 50%;
    max-width: 50%;
    height: auto;
    object-fit: contain;
}

/* Wrappers d'images : centrer et empêcher le débordement */
section .img-wrap,
section .section-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Mobile : empiler et laisser l'image s'adapter naturellement */
@media screen and (max-width: 768px) {
    section > img,
    section img.side,
    section .section-image {
        width: 100%;
        max-width: 100%;
    }

    section {
        flex-direction: column;
    }

    .text-container {
        max-width: 100%;
        padding: 6% 6%;
    }
}

.spectacle-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 50px 5%;
}

.date-container {
    display: flex;
    margin-bottom: 30px;
    font-size: 30px;
}

.date {
        font-family: 'Bernier Regular';
        margin-right: 60px;
}

@media screen and (max-width: 768px) {
    header {
        height: 350px;
        aspect-ratio: none;
    }
    section {
        flex-direction: column;
    }
    .text-container, section img {
        max-width: 100%;
    }
    .archives{
        font-size: 60px;
    }
}
@media screen and (max-width: 420px) {
    h1 {
        font-size: 40px
    }
    h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }
    .spectacle-container h2 {
        font-size: 40px;
    }
    p {
        font-size: 15px;
        margin-bottom: 50px;
    }
    a {
        font-size: 15px;
    }

}
/* Footer Styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 50px 5%;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Bernier Regular';
    min-height: 35px;
    display: flex;
    align-items: center;
}

.footer-contact {
    font-size: 16px;
    line-height: 1.6;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
    padding: 0;
    background-color: transparent;
    clip-path: none;
    border: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ccc;
    background-color: transparent;
}

.footer-socials {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: transparent;
    clip-path: none;
    border: none;
}

.footer-socials a:hover img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-socials img,
.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo img {
    max-height: 80px;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
    }

    .footer-contact {
        font-size: 14px;
    }

    .footer-contact a {
        font-size: 14px;
    }
}

@media screen and (max-width: 420px) {
    footer {
        padding: 30px 5%;
        margin-top: 50px;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
        min-height: 30px;
    }

    .footer-contact {
        font-size: 12px;
    }

    .footer-contact a {
        font-size: 12px;
    }

    .footer-socials img,
    .footer-logo img {
        height: 40px;
    }

    .footer-logo img {
        max-height: 60px;
    }
}

/* Site navigation (overlay on header) */
.site-nav {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10%);
    max-width: 1200px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Toggle button (hidden on desktop) */
.nav-toggle {
    pointer-events: auto;
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 20px;
}

/* Visually hidden helper for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Hamburger lines */
.hamburger {
    width: 28px;
    height: 2px;
    background: #fff;
    display: inline-block;
    position: relative;
    transition: transform 0.25s ease;
}
.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease, opacity 0.25s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after  { bottom: -8px; }

/* Menu list */
.nav-menu {
    pointer-events: auto;
    display: flex;
    gap: 18px;
    list-style: none;
    align-items: center;
    background: rgba(0,0,0,0.45);
    padding: 10px 18px;
    border-radius: 8px;
}

/* Links inside menu — keep visual identity */
.site-nav .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Bernier Regular';
    font-size: 18px;
    padding: 10px 20px;
    background-color: #000;
    clip-path: polygon(7% 0%, 93% 0%, 98% 50%, 93% 100%, 7% 100%, 2% 50%);
    border: 1px solid #000;
    transition: all .25s ease;
}
.site-nav .nav-menu a:hover {
    color: #000;
    background-color: #fff;
}

/* Small screens: show burger, hide horizontal menu by default */
@media screen and (max-width: 768px) {
    .site-nav {
        left: auto;
        right: 20px;
        transform: none;
        width: auto;
        justify-content: flex-end;
        top: 18px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        flex-direction: column;
        background: #000;
        padding: 12px;
        border-radius: 8px;
        display: none;
        min-width: 200px;
    }

    .nav-menu.open {
        display: flex;
    }

    .site-nav .nav-menu a {
        background-color: transparent;
        clip-path: none;
        border: none;
        text-align: right;
        padding: 10px 12px;
        font-size: 16px;
    }

    .hamburger.open {
        background: transparent;
    }
    .hamburger.open::before {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.open::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Very small screens tweaks */
@media screen and (max-width: 420px) {
    .site-nav { top: 12px; right: 12px; }
    .nav-menu { min-width: 170px; }
    .site-nav .nav-menu a { font-size: 14px; padding: 8px 10px; }
}

/* Archives — images côte à côte, même hauteur, pas de déformation */
.archives-section .spectacle-container {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 5%;
}

.archives-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    padding: 10px 5% 50px;
    box-sizing: border-box;
}

/* Desktop: boîtes de même hauteur, image entière visible (pas de découpe) */
.archives-images .img-wrap {
    flex: 1 1 48%;
    max-width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    aspect-ratio: auto;
    height: min(60vh, 600px);
    box-sizing: border-box;
    padding: 6px;
}

/* image : ne pas déformer, toujours entièrement visible */
.archives-images .img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Mobile: empiler les images et laisser l'image s'adapter naturellement */
@media screen and (max-width: 768px) {
    .archives-images {
        flex-direction: column;
        gap: 14px;
        padding-bottom: 30px;
    }

    .archives-images .img-wrap {
        max-width: 100%;
        flex: 1 1 100%;
        aspect-ratio: auto;
        height: auto;
        padding: 0;
    }

    .archives-images .img-wrap img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}