/* =========================================================
   LA CARRÉE — feuille de style publique
   Reprise de l'identité imprimée : fond noir, Newut, capitales.
   ========================================================= */

@font-face {
    font-family: "Newut";
    src: url("../fonts/newut-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Newut";
    src: url("../fonts/newut-medium.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Newut";
    src: url("../fonts/newut-heavy.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --fond: #0b0b0b;
    --encre: #f4f1ec;
    --sourdine: #8e8981;
    --filet: #2b2b28;
    --ocre: #c08434;

    --corps: "Newut", Georgia, "Times New Roman", serif;
    --marge: clamp(1.25rem, 5vw, 4.5rem);
    --largeur: 74rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--corps);
    font-weight: 400;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--encre);
    text-decoration: none;
    border-bottom: 1px solid var(--filet);
    transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
    color: var(--ocre);
    border-color: var(--ocre);
}

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

.contenu {
    width: min(100% - 2 * var(--marge), var(--largeur));
    margin-inline: auto;
}

/* --- Titres ------------------------------------------------------------ */

h1,
h2,
h3 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.12;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2rem, 1.3rem + 3.2vw, 3.9rem);
}

h2 {
    font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
}

h3 {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    color: var(--sourdine);
}

/* Intitulé de section : « Distribution », « Tarifs »… */
.etiquette {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sourdine);
    margin: 0 0 0.5rem;
}

/* --- En-tête ----------------------------------------------------------- */

.entete {
    border-bottom: 1px solid var(--filet);
}

.entete__interieur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0;
}

.entete__logo {
    display: block;
    border: 0;
    width: 5.5rem;
    color: var(--encre);
    flex: none;
}

.entete__logo svg,
.entete__logo img {
    width: 100%;
    height: auto;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2.5vw, 2.4rem);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navigation a {
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.navigation a[aria-current="page"] {
    border-bottom-color: var(--ocre);
    color: var(--ocre);
}

/* --- Spectacle à l'affiche --------------------------------------------
   Élément signature : le crochet du logo (barre haute + barre gauche)
   encadre le spectacle en cours, comme le « L » encadre le mot CARRÉE.
   --------------------------------------------------------------------- */

.affiche-une {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
}

.crochet {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem) 0 0 clamp(1.5rem, 4vw, 3rem);
}

.crochet::before,
.crochet::after {
    content: "";
    position: absolute;
    background: var(--encre);
}

/* barre horizontale, en haut */
.crochet::before {
    top: 0;
    left: 0;
    right: 12%;
    height: 6px;
}

/* barre verticale, à gauche */
.crochet::after {
    top: 0;
    left: 0;
    bottom: 14%;
    width: 6px;
}

.affiche-une__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.affiche-une__image img {
    width: 100%;
    border: 1px solid var(--filet);
}

.affiche-une__genre {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ocre);
    margin: 0 0 1rem;
}

.affiche-une__soustitre {
    font-weight: 300;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.35rem);
    color: var(--sourdine);
    margin: -0.3em 0 1.4rem;
}

.dates {
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 1.6rem;
    white-space: pre-line;
}

.presentation {
    text-align: justify;
    hyphens: auto;
    max-width: 46ch;
}

.bloc-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--filet);
}

.bloc-info p {
    margin: 0 0 0.2rem;
    white-space: pre-line;
    line-height: 1.5;
}

/* --- Liste de spectacles ----------------------------------------------- */

.section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    border-top: 1px solid var(--filet);
}

.liste-spectacles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.liste-spectacles li + li {
    border-top: 1px solid var(--filet);
}

.ligne-spectacle {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.4rem 0;
    border: 0;
}

.ligne-spectacle:hover {
    color: var(--encre);
}

.ligne-spectacle:hover .ligne-spectacle__titre {
    color: var(--ocre);
}

.ligne-spectacle__date {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sourdine);
}

.ligne-spectacle__titre {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
    transition: color 0.18s ease;
}

.ligne-spectacle__genre {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sourdine);
}

.vide {
    color: var(--sourdine);
    font-style: italic;
}

/* --- Pages de contenu --------------------------------------------------- */

.page {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.colonnes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: start;
}

.texte-long {
    text-align: justify;
    hyphens: auto;
    max-width: 62ch;
    white-space: pre-line;
}

.carte-plan img {
    width: 100%;
    border: 1px solid var(--filet);
}

/* --- Pied de page ------------------------------------------------------- */

.pied {
    border-top: 1px solid var(--filet);
    padding: 2.5rem 0 3.5rem;
    font-size: 0.9rem;
    color: var(--sourdine);
}

.pied__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 2rem;
}

.pied p {
    margin: 0 0 0.3rem;
    white-space: pre-line;
}

.pied a {
    color: var(--sourdine);
}

/* --- Adaptation mobile --------------------------------------------------- */

@media (max-width: 800px) {
    .affiche-une__grille {
        grid-template-columns: 1fr;
    }

    .ligne-spectacle {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

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

    * {
        transition-duration: 0.01ms !important;
    }
}
