/* ==========================================================================
   Chaos Média 2026
   D'après les affiches 2026 : vert #42F542, noir, blanc ; mascotte pixel ;
   grappes de points ; bloc date. Saira Condensed (titres), Saira (texte).
   ========================================================================== */

:root {
    --green: #42f542;
    --black: #000;
    --white: #fff;
    --condensed: "Saira Condensed", "Arial Narrow", sans-serif;
    --sans: "Saira", system-ui, sans-serif;
    --gutter: clamp(1.25rem, 5vw, 6rem);
    --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--black);
    color: var(--black);
    font-family: var(--sans);
    font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--black); color: var(--green); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.u-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--black); color: var(--white); }
.skip-link:focus { top: 1rem; }

/* ---------- Boutons ---------- */
.button {
    display: inline-block;
    padding: .85rem 1.6rem .8rem;
    border: 0; border-radius: 0; cursor: pointer;
    font-family: var(--condensed); font-weight: 700; font-size: 1.25rem; line-height: 1;
    text-transform: uppercase; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.button--black { background: var(--black); color: var(--white); }
.button--black:hover { background: var(--white); color: var(--black); }
.button--green { background: var(--green); color: var(--black); }
.button--green:hover { background: var(--white); }

/* ---------- Accueil : l'affiche ---------- */
.poster {
    background: var(--green);
    padding: clamp(1.5rem, 4vw, 4rem) var(--gutter) clamp(1.5rem, 3vw, 3rem);
    overflow: hidden;
}
.poster > * { max-width: var(--max); margin-inline: auto; }
.poster__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.poster__row--bottom { align-items: flex-end; }
.poster__row > * { flex: 0 1 auto; min-width: 0; }
.poster__row img { height: auto; }
.poster__logo img { width: clamp(150px, 22vw, 320px); }
.poster__tim { width: clamp(150px, 24vw, 340px); }
.poster__date { width: clamp(140px, 22vw, 320px); }
.poster__cem { width: clamp(130px, 19vw, 270px); }

.poster__stage { position: relative; margin-block: clamp(.5rem, 2vw, 1.5rem); }
.poster__mascot {
    position: relative; z-index: 1;
    width: min(100%, 1000px, max(300px, (100svh - 26rem) * .99)); margin-inline: auto;
}
.poster__dots { position: absolute; width: clamp(110px, 20vw, 300px); }
.poster__dots--left { left: 0; top: 4%; }
.poster__dots--right { right: 0; bottom: 8%; transform: scaleX(-1); }
.poster__time {
    align-self: center; text-align: center;
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.25rem, 3.6vw, 3.25rem); line-height: 1;
}
@media (max-width: 700px) {
    .poster__dots--right { display: none; }
    .poster__row { gap: 1rem; }
}
.intro__event { margin-top: 2rem; }
.reveal {
    opacity: 0; transform: translate3d(0, 60px, 0);
    transition: opacity .8s cubic-bezier(.165, .84, .44, 1), transform .8s cubic-bezier(.165, .84, .44, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Blocs de contenu ---------- */
.block { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.block--black { background: var(--black); color: var(--white); }
.block--white { background: var(--white); color: var(--black); }
.block--green { background: var(--green); color: var(--black); }
.block__inner { max-width: var(--max); margin-inline: auto; }

.section-title, .page-title {
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    line-height: .88; letter-spacing: -.01em;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section-title { font-size: clamp(3rem, 2rem + 5vw, 7rem); }
.page-title { font-size: clamp(3.5rem, 2rem + 7vw, 9rem); max-width: 12ch; }
.block--black .section-title, .block--black .page-title { color: var(--green); }

.text { max-width: 60ch; }
.text > * + * { margin-top: 1em; }
.text h2, .text h3 {
    font-family: var(--condensed); font-weight: 700; text-transform: uppercase; line-height: 1;
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
}
.text * + h2, .text * + h3 { margin-top: 1.5em; }
.text ul { list-style: disc; padding-left: 1.25em; }
.text a { text-decoration-thickness: 2px; text-underline-offset: .15em; }
.block--black .text a { color: var(--green); }
.text a:hover { text-decoration: none; }
.text--large { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.4; }

/* ---------- Projets (images entières, jamais recadrées) ---------- */
.project-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { display: block; text-decoration: none; }
.project-card__img { width: 100%; height: auto; }
.project-card__title {
    display: inline-block; margin-top: .75rem;
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); line-height: 1.1;
    padding: 0 .15em; margin-left: -.15em;
    transition: background-color .15s;
}
.project-card:hover .project-card__title { background: var(--green); }
.en-lice { margin-top: clamp(2.5rem, 5vw, 4rem); }
.en-lice .project-grid { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hors-concours { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 4px solid currentColor; }
.projects__status-title {
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    font-size: clamp(2.25rem, 1.5rem + 3vw, 4.5rem); line-height: .9;
}
.projects__status-tag { display: inline-block; background: var(--green); padding: .08em .2em .02em; }
.projects__status-text { max-width: 60ch; margin-top: .75rem; }
.project-card__media { position: relative; display: block; }
.project-card__placeholder { display: grid; place-items: center; aspect-ratio: 15 / 8; background: var(--black); }
.project-card__placeholder img { width: 32%; height: auto; }
.project-card__badge {
    position: absolute; left: 0; top: 0;
    background: var(--green); color: var(--black); padding: .35em .6em .25em;
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); line-height: 1;
}
.project-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .project-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .project-grid--small { grid-template-columns: 1fr; } }
.project-grid--small .project-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.projects__more { margin-top: clamp(3rem, 6vw, 5rem); }
.projects__more a {
    font-family: var(--condensed); font-weight: 700; font-size: 1.5rem; text-transform: uppercase;
    text-decoration-thickness: 3px; text-underline-offset: .2em;
}
.projects__more a:hover { text-decoration-color: var(--green); }

/* ---------- Vidéo ---------- */
.video__frame { position: relative; aspect-ratio: 16 / 9; margin-top: clamp(1rem, 3vw, 2rem); background: #111; }
.video__frame iframe, .video__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { padding: 0; background: none; cursor: pointer; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    padding: 1rem 1.5rem .95rem;
    background: var(--green); color: var(--black);
    font-family: var(--condensed); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1; text-transform: uppercase;
}
.video__poster:hover .video__play { background: var(--white); }
.video__credit { margin-top: 1rem; font-size: .9375rem; opacity: .75; }

/* ---------- Jury ---------- */
.jury__list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.jury__list:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .jury__list, .jury__list:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .jury__list, .jury__list:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
.jury__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border: 4px solid var(--black); }
.jury__photo--empty {
    display: grid; place-items: center; background: var(--black); color: var(--green);
    font-family: var(--condensed); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem);
}
.jury__member { container-type: inline-size; }
.jury__name {
    margin-top: 1rem;
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    /* Plafonnée à la largeur de la colonne pour que le plus long nom (« Brodeur-Gendron ») tienne sur une ligne. */
    font-size: min(clamp(1.6rem, 1.2rem + 1vw, 2.25rem), 13cqi); line-height: 1;
}
.jury__first, .jury__last { display: block; white-space: nowrap; }
.jury__name a { text-decoration: none; }
.jury__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.jury__role { margin-top: .5rem; }
.jury__role strong { font-weight: 600; }
.jury__note {
    margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 2px solid var(--black);
    font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 600;
}
.jury__note p + p { margin-top: .5em; }

/* ---------- Citations ---------- */
.quotes__list li {
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    font-size: clamp(2rem, 1.2rem + 4vw, 5rem); line-height: .95;
    padding-block: .3em;
    border-top: 2px solid rgba(255, 255, 255, .25);
}
.quotes__list li:nth-child(even) { color: var(--green); }
.block--white .quotes__list li { border-top-color: var(--black); }
.block--white .quotes__list li:nth-child(even) { color: inherit; }
/* Une définition à la fois : les phrases sont superposées (la plus longue fixe la hauteur) et se relaient. */
.quotes__list.is-rotating { display: grid; }
.quotes__list.is-rotating li {
    grid-area: 1 / 1; border-top: 0; padding-block: 0;
    opacity: 0; transform: translate3d(0, .4em, 0); visibility: hidden;
    transition: opacity .6s ease, transform .6s cubic-bezier(.165, .84, .44, 1), visibility 0s .6s;
}
.quotes__list.is-rotating li.is-current {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity .6s ease .2s, transform .6s cubic-bezier(.165, .84, .44, 1) .2s, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .quotes__list.is-rotating li, .quotes__list.is-rotating li.is-current { transition: none; transform: none; }
}

/* ---------- Photos : bande horizontale, images entières ---------- */
.gallery__strip {
    display: flex; gap: 1rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x proximity;
    scrollbar-color: var(--green) #222;
}
.gallery { padding-inline: 0; }
.gallery .block__inner { padding-inline: var(--gutter); box-sizing: content-box; }
.gallery__strip img {
    flex: none; width: auto; height: clamp(240px, 38vw, 520px);
    scroll-snap-align: center;
}

/* ---------- Mise en page « callout » ---------- */
.callout__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.callout--reverse .callout__img { order: 2; }
@media (max-width: 760px) { .callout__inner { grid-template-columns: 1fr; } .callout--reverse .callout__img { order: 0; } }

/* ---------- Partenaires ---------- */
.partners__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem); }
.partners__item img { width: 150px; max-height: 70px; object-fit: contain; }
.partners__item--square img { width: 85px; max-height: 85px; }
.partners__list--featured { gap: clamp(2.5rem, 6vw, 6rem); }
.partners__list--featured .partners__item img { width: clamp(200px, 26vw, 320px); max-height: 140px; }
.partners__list--featured .partners__item--square img { width: clamp(120px, 14vw, 170px); max-height: 170px; }
.partners__list--featured + .partners__list {
    max-width: 52rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
    padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgb(0 0 0 / .25);
}
.partners__item a { display: block; transition: opacity .15s; }
.partners__item a:hover { opacity: .6; }

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--white); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem; }
.footer__inner { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem 3rem; }
.footer__logo { width: clamp(150px, 16vw, 210px); }
.footer__social { display: flex; gap: 1.25rem; justify-self: end; }
.footer__social a { display: block; color: var(--white); }
.footer__social a:hover { color: var(--green); }
.footer__social svg { width: 30px; height: 30px; }
.footer__copy { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .875rem; opacity: .7; }

/* ---------- Pages intérieures ---------- */
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem var(--gutter);
    background: var(--green);
}
.topbar__brand img { width: clamp(96px, 10vw, 130px); }

.project__visual img { width: 100%; height: auto; }
.project__layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .project__layout { grid-template-columns: 1fr; } }
.project__title {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--condensed); font-weight: 800; text-transform: uppercase;
    font-size: clamp(3rem, 2rem + 6vw, 8rem); line-height: .88; color: var(--green);
}
.project__main .button { margin-top: 1rem; }
.project__status {
    margin-bottom: clamp(1.5rem, 3vw, 2rem); padding: .6rem .9rem; max-width: 60ch;
    border: 2px solid var(--green);
}
.project__status strong { font-family: var(--condensed); font-weight: 800; text-transform: uppercase; color: var(--green); }
.project__team { border-top: 4px solid var(--green); padding-top: 1.25rem; }
.project__team-title { font-family: var(--condensed); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: 1rem; }
.project__team dt { margin-top: 1rem; font-family: var(--condensed); font-weight: 700; font-size: 1.125rem; text-transform: uppercase; color: var(--green); }
.project__team dd { margin-top: .15rem; }
.project-nav { padding-block: 2.5rem; }
.project-nav a { font-family: var(--condensed); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; text-decoration: none; }
.project-nav a:hover { text-decoration: underline; }

/* Vote (Gravity Forms) */
.vote__steps { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 760px) { .vote__steps { grid-template-columns: 1fr; } }
.vote__step { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); }
.vote__step h3 { margin-bottom: 1.25rem; font-family: var(--condensed); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-transform: uppercase; line-height: 1; }
.vote .gform_wrapper label, .vote .gform_wrapper .gfield_label { font-weight: 600; }
.vote .gform_wrapper input[type="text"], .vote .gform_wrapper input[type="tel"], .vote .gform_wrapper input[type="number"] {
    width: 100%; padding: .8rem 1rem; border: 3px solid var(--black); border-radius: 0; font: inherit; font-size: 1.125rem;
}
.vote .gform_wrapper input:focus { outline: none; background: #f0fff0; }
.vote .gform_footer { margin-top: 1rem; padding: 0; }
.vote .gform_confirmation_message { font-weight: 600; }

/* Archives */
.editions { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }
.editions a { font-family: var(--condensed); font-weight: 800; font-size: 2rem; color: var(--green); text-decoration: none; }
.editions a:hover { text-decoration: underline; }
