/* Déclaration des variables */
:root {
--primary-color: #CC0000;
--secondary-color: #CCCCCC;
--background-color: #000000;
--text-color: #999999;
--border-color: #202020;
--border-radius: 16px;
--font-family: 'Oxygen', Roboto, Arial, sans-serif;
--link-color: #0066EE;
}

html, body {
	max-width: 800px;
    height: 100%;
	margin: 0 auto;
}

/* Bordures rouges fixes visibles au scroll */
body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 100;
    box-sizing: border-box;
}

/* Réglages généraux */
body {
    display: flex;
    flex-direction: column;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: var(--font-family);
	padding: 0 8px 64px;
	box-sizing: border-box;
}

.site-brand {
	text-align: left;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.lang-switch {
	margin-left: auto;
	font-size: 0.85em;
	line-height: 1;
	color: var(--text-color);
}

.lang-switch a {
	color: var(--link-color);
}

.site-name {
	text-align: left;
	font-size: 1em;
}

.site-name a {
	font-size: 1em;
}

.site-tagline {
	font-size: 0.9em;
}

.fr-note {
  color: var(--link-color);
	font-weight: bold;
}

h1 {
	font-size: 1.4em;
  margin-left: 16px;
  text-align: left;
  color: var(--primary-color);
  font-weight: bold;
}

h2, h3, h4, h5, h6 {
  text-align: center;
}

main, header, footer {
  text-align: center;
}

main {
    flex: 1 0 auto;
	padding-top: 24px;
    padding-bottom: 42px; /* Espace pour éviter le chevauchement avec le footer */
}

header {
	background-color: var(--background-color);
	border-bottom: 1px solid var(--border-color);
	width: 100%;
	max-width: 800px;
	padding: 8px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-sizing: border-box;
}

footer {
	background-color: var(--background-color);
	border-top: 1px solid var(--border-color);
	width: 100%;
	max-width: 800px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-sizing: border-box;
    padding: 16px 8px 8px;
	margin: 0;
}

p {
	text-align: justify;
	margin: 16px 8px;
	line-height: 1.5;
}

/* Styles des liens */
a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
}

/* Styles des liens au survol */
a:hover {
  color: var(--link-color);
  text-decoration: underline;
}

/* Focus visible pour accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--link-color);
  outline-offset: 2px;
}

/* Skip-to-content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--primary-color);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

img {
	width: 60%;
	max-width: 400px;
	height: auto;
	object-fit: cover;
	margin: 16px auto;
	display: block;
}

hr {
	width: 80%;
	border: 1px solid var(--primary-color);
	margin: 32px auto;
}

nav {
	margin: 0px;
	padding: 0px;
}

nav ul {
	background-color: rgba(128, 0, 0, 0.8);
	border: 2px solid var(--primary-color);
  	border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 6px 0;
    margin: 0;
}

nav ul li {
    font-size: 0.6em;
    list-style-type: none;
    flex: 1 1 24%;
}

nav ul li a {
    display: block;
    padding: 2px;
    text-decoration: none;
	color: var(--secondary-color);
    text-align: center;
	text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
	transition: background-color 0.4s;
}

nav ul li a:hover {
    background-color: var(--border-color);
  	border-radius: var(--border-radius);
}

nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--background-color);
  	border-radius: var(--border-radius);
}

.music iframe {
	width: 100%;
	max-width: 560px;
	height: 315px;
	border: 0;
	margin-bottom: -4px;
	filter: saturate(0);
}

.first, .karma, .intro, .jff, .sff, .t4f, .twitter, .bluesky, .recon, .music, .pinterest, .tariss, .last, .contact {
	margin: 0 auto 60px;
	border: 1px solid var(--border-color);
	padding: 4px 8px 24px;
}

.first, .last {
  text-align: center;
}

/* Styles des titres */
.intro h2 {
  color: var(--primary-color);
  text-align: left;
  margin-left: 8px;
}

.music p {
	font-size: 0.9em;
}

.enjoy {
  font-weight: bold;
  margin: auto;
  color: var(--primary-color);
  text-align: center;
  padding: 16px;
  font-size: 1.3em;
}

.karma {
  font-size: 1.1em;
  margin: 32px auto;
  width: 96%;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: #101010;
}

.karma div p {
  margin: 32px 16px;
}

.karma-exemple {
  margin: 8px 64px;
  color: #FFFFFF;
  font-style: italic;
}

.karma a {
  font-size: 1em;
  color: var(--link-color);
}

h2, .love, .promo {
	color: var(--primary-color);
	font-weight: bolder;
	text-align: center;
}

.promo {
  font-size: 1em;
}

.center a {
  font-size: 0.9em;
	text-align: center;
  color: var(--primary-color);
}

.right {
  color: var(--secondary-color);
  text-align: right;
  margin: 8px;
}

.end {
	text-align: center;
  font-size: 1.6em;
  padding: 16px 0;
}

.redframe, .qrcode {
	height: auto;
	border: 2px solid var(--primary-color) ;
  	border-radius: var(--border-radius);
	overflow: hidden;
}

.qrcode_container {
  position: relative;
  display: inline-block;
}

.qrcode_container img {
  filter: grayscale(100%); /* Convertit l'image en noir et blanc */
}

.qrcode_container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color); /* Couleur de la teinte */
  mix-blend-mode: multiply; /* Mode de fusion pour appliquer la teinte */
  opacity: 1; /* Ajustez l'opacité pour contrôler l'intensité de la teinte */
}

.logo {
	width: 40%;
	max-width: 300px;
	height: auto;
	object-fit: cover;
	margin: 32px auto;
}

.largesize {
	width: 65%;
	max-width: 500px;
	height: auto;
	object-fit: cover;
}

.smallsize {
	width: 40%;
	max-width: 320px;
	height: auto;
	object-fit: cover;
}

.discount {
	width: 35%;
	max-width: 280px;
	height: auto;
	object-fit: cover;
}

.warning {
	color: var(--link-color);
	text-align: center;
	font-weight: bold;
	font-size: 1.2rem;
}

/* ——— Tablette (<=768px) ——— */
@media only screen and (max-width: 768px) {
html, body {
	max-width: 98%;
}

body::before {
	max-width: 98%;
}

header, footer {
	position: static;
	max-width: 100%;
	width: 100%;
	left: auto;
	transform: none;
}

main {
	padding-top: 8px;
	padding-bottom: 8px;
}

.hub-links {
	width: 80%;
}
}

/* ——— Mobile (<=600px) ——— */
@media only screen and (max-width: 600px) {

h1 {
	font-size: 1em;
}

p {
	font-size: 0.9em;
	margin: 8px 8px;
}

a {
	font-size: 1.2em;
}

nav ul li a {
	padding: 8px 2px;
}

img {
	margin: 8px auto;
}

.first, .karma, .intro, .jff, .sff, .t4f, .twitter, .bluesky, .recon, .music, .pinterest, .tariss, .last, .contact {
	margin: 0 auto 40px;
	padding: 4px 4px 16px;
}

.music iframe {
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.logo, .largesize, .smallsize, .discount {
	width: 90%;
}

.enjoy {
	padding: 16px;
}

.warning {
	font-size: 0.9em;
}

.end {
	font-size: 1em;
}

.hub-links {
	width: 90%;
}
}

/* ——— Très petit écran (<=380px) ——— */
@media only screen and (max-width: 380px) {
.end {
	font-size: 0.8em;
}

nav ul li {
	flex: 1 1 32%;
}
}
.center {
	text-align: center;
}


li {
	list-style-type: decimal;
}

.numbers li {
	list-style-type: decimal;
}

.hub-links {
	width: 64%;
	margin: auto;
}

.hub-links li {
	text-align: left;
	margin-left: 16% ;
}


.title {
	margin: 0.4rem auto -0.8rem;
}

.numbers {
	width: 88%;
}

strong {	
    color: var(--primary-color);
}
