/* ==========================================================================
   BBR — socle des pages publiques (accueil, tarifs, artistes, sorties,
   pages légales). Remplace style.css page par page.

   Les couleurs sont celles de la marque (design-tokens.md) ; le reste
   suit une règle simple : un fond, une encre, un accent. Pas de dégradé,
   pas d'ombre au repos, pas de filet : les surfaces se séparent par un
   pas de ton, les sections par l'espace.
   ========================================================================== */

:root {
    --fond: #080808;
    --surface: #111111;
    --surface-haute: #1a1a1a;
    --encre: #ffffff;
    --encre-douce: #b8b8b8;
    --or: #d5ad52;
    --or-clair: #f2d786;
    --encre-sur-or: #080808;

    --police-titre: "Fraunces", Georgia, "Times New Roman", serif;
    --police-texte: "Inter", Arial, Helvetica, sans-serif;

    /* Cinq tailles, pas une de plus. */
    --t-affiche: clamp(56px, 10.5vw, 156px);
    --t-titre: clamp(40px, 4.6vw, 68px);
    --t-tete: clamp(26px, 2.3vw, 34px);
    --t-chapo: clamp(19px, 1.5vw, 22px);
    --t-texte: 17px;

    --marge: clamp(20px, 2.3vw, 32px);
    --gouttiere: clamp(16px, 1.7vw, 24px);
    --respiration: clamp(120px, 14vw, 200px);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --d-appui: 140ms;
    --d-survol: 180ms;
    --d-ui: 240ms;
    --d-entree: 800ms;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: var(--t-texte);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

img,
video {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--police-titre);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-wrap: balance;
}

a {
    color: inherit;
}

::selection {
    background: var(--or);
    color: var(--encre-sur-or);
}

:focus-visible {
    outline: 3px solid var(--or-clair);
    outline-offset: 3px;
}

.visuellement-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.saut {
    position: absolute;
    left: var(--marge);
    top: -100px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--or);
    color: var(--encre-sur-or);
    font-weight: 600;
    text-decoration: none;
}

.saut:focus {
    top: 12px;
}

/* --- Boutons : coins droits, un aplat, une réponse à l'appui. --- */

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 0;
    background: var(--or);
    color: var(--encre-sur-or);
    font: 600 16px/1 var(--police-texte);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition:
        transform var(--d-appui) var(--ease-out),
        background-color var(--d-survol) ease,
        color var(--d-survol) ease;
}

.bouton:active {
    transform: scale(0.97);
}

.bouton--encre {
    background: var(--fond);
    color: var(--encre);
}

.bouton--discret {
    min-height: 44px;
    padding: 0 18px;
    background: var(--surface-haute);
    color: var(--encre);
}

@media (hover: hover) and (pointer: fine) {
    .bouton:hover {
        background: var(--or-clair);
    }

    .bouton--encre:hover {
        background: #262626;
    }

    .bouton--discret:hover {
        background: #2a2a2a;
    }
}

/* Lien texte : le soulignement arrive au survol, sans déplacer le texte. */
.lien {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
    transition: text-decoration-color var(--d-survol) ease, color var(--d-survol) ease;
}

.lien--or {
    color: var(--or-clair);
}

@media (hover: hover) and (pointer: fine) {
    .lien:hover {
        text-decoration-color: currentColor;
    }
}

/* --- Barre de navigation : la marque, quatre liens, une action. --- */

.barre {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px var(--marge);
}

.barre--pleine {
    position: relative;
    background: var(--fond);
}

.barre__marque {
    font-family: var(--police-titre);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.barre__liens {
    display: flex;
    gap: 28px;
    margin-inline-start: auto;
}

.barre__liens a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--d-survol) ease;
}

@media (hover: hover) and (pointer: fine) {
    .barre__liens a:hover {
        color: var(--or-clair);
    }
}

.barre__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.barre__langue {
    min-height: 44px;
    padding: 0 34px 0 14px;
    border: 0;
    border-radius: 0;
    background: var(--surface-haute) no-repeat right 12px center / 10px 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
    color: var(--encre);
    font: 500 16px var(--police-texte);
    appearance: none;
    cursor: pointer;
}

.barre__menu {
    display: none;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: var(--surface-haute);
    color: var(--encre);
    font: 600 16px var(--police-texte);
    cursor: pointer;
    transition: transform var(--d-appui) var(--ease-out);
}

.barre__menu:active {
    transform: scale(0.97);
}

.menu-mobile {
    display: none;
}

@media (max-width: 880px) {
    .barre__liens,
    .barre__actions .bouton {
        display: none;
    }

    .barre__menu {
        display: inline-flex;
        align-items: center;
    }

    .menu-mobile {
        position: absolute;
        inset: 100% 0 auto 0;
        display: grid;
        padding: 8px var(--marge) 24px;
        background: var(--fond);
        transform-origin: top;
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        transition:
            opacity var(--d-ui) var(--ease-out),
            transform var(--d-ui) var(--ease-out),
            visibility 0s linear var(--d-ui);
    }

    .menu-mobile.is-open {
        opacity: 1;
        transform: none;
        visibility: visible;
        transition:
            opacity var(--d-ui) var(--ease-out),
            transform var(--d-ui) var(--ease-out);
    }

    .menu-mobile a {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-family: var(--police-titre);
        font-size: 28px;
        font-weight: 700;
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .barre__langue {
        max-width: 112px;
    }
}

/* --- Pied de page : une seule ligne. --- */

.pied {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: 24px;
    padding: 30vh var(--marge) 30px;
    color: var(--encre-douce);
    font-size: 16px;
}

.pied__liens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    padding: 0;
    list-style: none;
}

.pied__liens a,
.pied__fin a {
    color: var(--encre);
}

.pied__fin {
    justify-self: end;
}

@media (max-width: 760px) {
    .pied {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20vh var(--marge) 24px;
    }

    .pied__liens {
        justify-content: flex-start;
    }

    .pied__fin {
        justify-self: start;
    }
}

/* --- Pages secondaires : un titre, une phrase, et parfois un film. ---
   (tarifs, textes légaux, artistes, sorties) */

.page {
    padding: 168px 0 0;
}

.page__tete {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gouttiere);
    align-items: end;
    padding: 0 var(--marge) 72px;
}

.page__tete > * {
    grid-column: 1 / 7;
}

.page__tete h1 {
    max-width: 16ch;
    font-size: var(--t-titre);
}

.page__chapo {
    max-width: 44ch;
    margin-top: 32px;
    font-size: var(--t-chapo);
    line-height: 1.45;
}

@media (max-width: 800px) {
    .page {
        padding-top: 128px;
    }

    .page__tete {
        padding-bottom: 48px;
    }

    .page__tete {
        grid-template-columns: minmax(0, 1fr);
    }

    .page__tete > * {
        grid-column: 1;
    }

    .page__tete h1 {
        max-width: none;
        font-size: 36px;
    }

}

/* --- Formules : deux champs de couleur, Start en surface, Pro en or.
   Sur l'accueil (index.html) et sur tarifs.html. --- */

.tarifs {
    display: grid;
    grid-template-columns: 5fr 7fr;
}

.formule {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 72px;
    min-height: 72svh;
    padding: 40px var(--marge);
}

.formule--start {
    background: var(--surface);
}

.formule--pro {
    background: var(--or);
    color: var(--encre-sur-or);
}

.formule h2 {
    font-size: var(--t-titre);
}

.formule__pour {
    max-width: 26ch;
    margin-top: 20px;
    font-size: var(--t-chapo);
    font-weight: 500;
    line-height: 1.35;
}

.formule__inclus {
    max-width: 44ch;
    margin-top: 24px;
}

.formule--start .formule__inclus {
    color: var(--encre-douce);
}

.formule__bas {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 24px;
}

.formule__prix strong {
    font-family: var(--police-titre);
    font-size: var(--t-affiche);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.85;
}

.formule__prix span {
    margin-inline-start: 6px;
    font-size: var(--t-chapo);
    font-weight: 500;
}

.tarifs__essai {
    grid-column: 1 / -1;
    padding: 28px var(--marge) 0;
    color: var(--encre-douce);
    font-size: var(--t-chapo);
}

@media (max-width: 800px) {
    .tarifs {
        grid-template-columns: minmax(0, 1fr);
    }

    .formule--pro {
        order: -1;
    }

    .formule {
        min-height: 0;
        gap: 48px;
        padding: 32px var(--marge) 28px;
    }

    .formule__bas .bouton {
        width: 100%;
    }
}

/* --- Entrées au défilement : une seule fois, jamais bloquantes. ---
   Sans JavaScript (pas de classe .js), tout est visible d'emblée. */

@media (prefers-reduced-motion: no-preference) {
    .js [data-entree] {
        opacity: 0;
        transform: translateY(24px);
        transition:
            opacity 700ms var(--ease-out),
            transform 900ms var(--ease-expo);
        transition-delay: calc(var(--rang, 0) * 80ms);
    }

    .js [data-entree].est-entre {
        opacity: 1;
        transform: none;
    }
}
