/*
 * Habillage Couleur Café (charte reçue le 06.11.2026, sources dans docs/festivals/couleurcafe/).
 * Chargé seulement sur le site du festival (Festival::SKINS), après la feuille de l'app : tout est préfixé par
 * html[data-skin="couleurcafe"] pour gagner sur les classes Tailwind sans toucher aux pages.
 * Palette : vert #0f2b0a, menthe #91e5c6, lime #e3ed5d, rose #fc5b6f, blanc.
 * Titres en Roc Grotesk Compressed Bold, intertitres en Roc Grotesk Wide Black, chiffres en ALT Picaro.
 */
@font-face { font-family: 'Roc Grotesk Compressed'; src: url('roc-compressed-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Roc Grotesk Wide'; src: url('roc-wide-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'ALT Picaro'; src: url('alt-picaro.woff2') format('woff2'); font-weight: 400; font-display: swap; }

html[data-skin='couleurcafe'] {
    --festival-primary: #0f2b0a;
    --cc-green: #0f2b0a;
    --cc-mint: #91e5c6;
    --cc-lime: #e3ed5d;
    --cc-pink: #fc5b6f;
    --cc-title: 'Roc Grotesk Compressed', 'Arial Narrow', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    --cc-subtitle: 'Roc Grotesk Wide', 'Arial Black', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    --cc-number: 'ALT Picaro', ui-sans-serif, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    color: var(--cc-green);
    background: var(--cc-mint);
}

/* Fond : la texture tramée de la charte sous un dégradé menthe → lime, assez clair pour garder le texte vert lisible. */
html[data-skin='couleurcafe'] body { background: transparent; }
html[data-skin='couleurcafe'] body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -20;
    background:
        linear-gradient(180deg, rgb(145 229 198 / 0.8) 0%, rgb(145 229 198 / 0.72) 55%, rgb(227 237 93 / 0.78) 100%),
        url('texture.webp') center / cover;
}
/* Un seul motif, en accent : la chaîne de points, en rose, à mi-hauteur du bord gauche (loin des boutons). */
html[data-skin='couleurcafe'] body::after {
    content: '';
    position: fixed;
    left: -36px;
    top: 38%;
    z-index: -15;
    width: 48px;
    height: 86px;
    background: var(--cc-pink);
    -webkit-mask: url('dots.svg') center / contain no-repeat;
    mask: url('dots.svg') center / contain no-repeat;
    opacity: 0.85;
    pointer-events: none;
}

/* Typographie */
html[data-skin='couleurcafe'] h1,
html[data-skin='couleurcafe'] h2 {
    font-family: var(--cc-title);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.005em;
}
html[data-skin='couleurcafe'] h1 { font-size: 2.75rem; }
html[data-skin='couleurcafe'] h2 { font-size: 1.9rem; }
html[data-skin='couleurcafe'] h3,
html[data-skin='couleurcafe'] h4,
html[data-skin='couleurcafe'] label > span:first-child:not(:only-child) {
    font-family: var(--cc-subtitle);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}
html[data-skin='couleurcafe'] h3,
html[data-skin='couleurcafe'] h4 { font-size: 0.95rem; line-height: 1.1; }

/* Boutons : sous-titres de la charte, en capitales serrées, un cran plus grands pour compenser la police étroite. */
html[data-skin='couleurcafe'] button.font-semibold,
html[data-skin='couleurcafe'] a.font-semibold,
html[data-skin='couleurcafe'] button > span.font-semibold {
    font-family: var(--cc-title);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}
/* Chiffres d'accent : longueurs de l'accueil, compteur de l'écran de tri. */
html[data-skin='couleurcafe'] button > .text-2xl.font-bold,
html[data-skin='couleurcafe'] .tabular-nums {
    font-family: var(--cc-number);
    font-weight: 400;
}
html[data-skin='couleurcafe'] button > .text-2xl.font-bold { font-size: 2rem; }

/* Couleurs d'accent : super like en rose, focus visible en lime. */
html[data-skin='couleurcafe'] .bg-amber-400:not(:disabled) { background: var(--cc-pink); color: var(--cc-green); }
html[data-skin='couleurcafe'] :focus-visible { outline: 3px solid var(--cc-pink); outline-offset: 2px; }

/* Accueil sur la photo : titres en blanc, boutons en lime pour ressortir sur le voile sombre. */
html[data-skin='couleurcafe'] main.text-white .bg-\(--festival-primary\) { background: var(--cc-lime); color: var(--cc-green); }
html[data-skin='couleurcafe'] main.text-white .bg-\(--festival-primary\) .opacity-80 { opacity: 0.85; }

/* Choix de la langue : pastilles pleines, lisibles sur la photo comme sur le fond clair ; la langue active en lime. */
html[data-skin='couleurcafe'] nav a[lang] {
    background: rgb(145 229 198 / 0.92);
    color: var(--cc-green);
    opacity: 1;
    padding: 0.3rem 0.65rem;
    font-family: var(--cc-subtitle);
    font-weight: 900;
}
html[data-skin='couleurcafe'] nav a[lang][aria-current='true'] {
    background: var(--cc-lime);
    box-shadow: 0 0 0 2px var(--cc-green);
}

@media (max-width: 380px) {
    html[data-skin='couleurcafe'] h1 { font-size: 2.25rem; }
    html[data-skin='couleurcafe'] h2 { font-size: 1.6rem; }
}
