*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    font-size: 16px;
    --page-padding: 1.5rem;
    --color-text: #fff;
    --color-bg: #12100e;
    
    /* MODIFICATION : Rouge remplacé par Doré Ambré (#F59E0B) */
    --color-link: rgba(245, 158, 11, 0.7);
    --color-link-hover: #F59E0B;
    
    --color-bg-1: #2f251e;
    --color-bg-2: #43392f;
    --color-bg-3: var(--color-bg-1);
    --color-bg-4: var(--color-bg-2);
    --color-bg-5: var(--color-bg-1);
    --color-bg-6: var(--color-bg-2);
}

/* --------------------------------------------
   FOOTER (uniformisé - identique à earn.html)
-------------------------------------------- */
footer {
  border-top: 1px solid #1C1C20;
  background: #050507;
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-transform: none;
}

footer .logo img {
  height: 32px;
  opacity: 0.6;
  filter: brightness(2);
}

footer p {
  font-size: 0.8rem;
  color: #71717A;
}

footer nav a {
  color: #71717A;
  text-decoration: none;
  font-size: 0.8rem;
  margin-left: 20px;
  transition: color 0.2s;
}

footer nav a:hover {
  color: #F59E0B;
}

footer > a {
  color: #71717A;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

footer > a:hover {
  color: #F59E0B;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
  }
  footer nav a {
    margin: 0 10px;
  }
}

body {
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: "area-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wdth" 150, "wght" 500, "INKT" 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
}

.demo-2, 
.demo-4,
.demo-6,
.demo-8,
.demo-10,
.demo-12,
.demo-14 {
    --color-text: #0e0d0d;
    --color-bg: #f5eaea;
    --color-link: rgba(0,0,0,0.6);
    --color-link-hover: #000;
    --color-bg-1: #0f0f0f;
    
    /* MODIFICATION : Rouge vif #f51b1b remplacé par Doré Riche #D97706 */
    --color-bg-2: #D97706;
    
    --color-bg-3: var(--color-bg-1);
    --color-bg-4: var(--color-bg-2);
    --color-bg-5: var(--color-bg-1);
    --color-bg-6: var(--color-bg-2);
}

.demo-9 {
    --color-bg-1: #2f251e;
    --color-bg-2: #43392f;
    --color-bg-3: #18130e;
    --color-bg-4: var(--color-bg-1);
    --color-bg-5: var(--color-bg-2);
    --color-bg-6: var(--color-bg-3);
}

.demo-10 {
    --color-bg-1: #9d9d9d;
    --color-bg-2: #c7c7c7;
    --color-bg-3: #7c7c7c;
    --color-bg-4: var(--color-bg-1);
    --color-bg-5: var(--color-bg-2);
    --color-bg-6: var(--color-bg-3);
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 5000;
}

.js .loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
}

.js .loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.8;
    /* MODIFICATION : Loader en Doré */
    background: #F59E0B;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
        opacity: 1;
        transform: scale3d(0.5,0.5,1);
    }
}

a {
    text-decoration: none;
    color: var(--color-link);
    outline: none;
    cursor: pointer;
}

a:hover {
    color: var(--color-link-hover);
    outline: none;
}

a:focus {
    outline: none;
    background: lightgrey;
}

a:focus:not(:focus-visible) {
    background: transparent;
}

a:focus-visible {
    /* MODIFICATION : Focus clavier passé de rouge à doré */
    outline: 2px solid #F59E0B;
    background: transparent;
}

.unbutton {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.unbutton:focus {
    outline: none;
}

.frame {
    padding: var(--page-padding);
    position: relative;
    display: grid;
    z-index: 1000;
    width: 100%;
    grid-row-gap: 1rem;
    grid-column-gap: 2rem;
    justify-items: start;
    text-transform: uppercase;
    font-size: 12px;
}

/* Header principal */
.frame--header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
    gap: 30px;
    background-color: #0a0a0a;
    color: #fff;
}

/* H1 */
.frame__title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-align: center;
}

.header-logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.logo-img {
    width: 120px;
    height: auto;
}

/* Wrapper image + texte pour PC */
.frame__heading-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* Image */
.frame__image {
    width: 850px;
    height: auto;
    border-radius: 12px;
    order: 2;
}

/* Texte */
.frame__heading {
    order: 1;
}

.frame__heading h2 {
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    padding-bottom: 80px;
}

.frame__heading .text-meta {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 500px;
}

.frame__heading .text-large {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 500px;
}

/* Responsive : mobile */
@media (max-width: 768px) {
    .frame__heading-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .frame__image {
        width: 350px;
        margin-bottom: 15px;
        order: 0;
    }

    .frame__heading {
        order: 1;
    }

    .frame__heading h2 {
        font-size: 1.5rem;
    }

    .frame__heading .text-meta,
    .frame__heading .text-large {
        font-size: 1rem;
        max-width: 100%;
    }
}

.frame--footer {
    grid-template-areas: 'credits' 'author';
    align-content: end;
}

.frame #cdawrap {
    justify-self: start;
}

.frame a {
    pointer-events: auto;
}

.frame__title {
    grid-area: title;
    font-size: inherit;
    margin: 0;
}

.frame__back {
    grid-area: back;
    justify-self: start;
}

.frame__prev {
    grid-area: prev;
    justify-self: start;
}

.frame__sub {
    grid-area: sub;
}

.frame__demos {
    grid-area: demos;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: start;
    flex-wrap: wrap;
    background: var(--color-bg);
    border: 1px solid;
    padding: 1rem;
    border-radius: 10px;
}

.frame__demos > * {
    width: 2rem;
    display: block;
    flex: none;
    text-decoration: none;
    border-radius: 50%;
    aspect-ratio: 1;
    border: 1px solid var(--color-link-hover);
    display: grid;
    place-items: center;
    padding-top: 0.2em;
    background: var(--color-bg);
}

.frame__demos > span {
    filter: invert(100%);
}

.frame__demos::before {
    content: "Variations:";
}

.frame__heading {
    grid-area: heading;
    align-self: center;
    justify-self: start;
    width: min-content;
    display: flex;
    flex-direction: column;
    margin-top: 10vh;
}

.frame__heading h2 {
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
    margin-left: -0.065em;
    font-size: clamp(2.5rem,12vw,7rem);
    letter-spacing: -0.105em;
    font-variation-settings: "slnt" 0, "wdth" 400, "wght" 900, "INKT" 400;
}

i {
    font-style: italic;
    font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400, "INKT" 400;
    /* MODIFICATION : Italiques en Doré */
    color: #F59E0B;
}

.frame__heading p {
    margin: 0;
}

.frame__credits {
    grid-area: credits;
}

.frame__author {
    display: flex;
    gap: 1.5rem;
    grid-area: author;
}

.content {
    padding: var(--page-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content--perspective {
    perspective-origin: 50% 0%;
    perspective: 1000px;
}

.text-large {
    font-size: clamp(1.5rem,5vw,3rem);
    max-width: 900px;
    margin: 0 0 0.85em 0;
    line-height: 1.2;
    font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500, "INKT" 100;
}

.content--sticky {
    width: 100vw;
    position: sticky;
    top: 0;
    --offset: 0px;
    top: var(--offset);
    height: calc(100vh - var(--offset));
}

.content--grid,
.content--grid .content__inner {
    display: grid;
    overflow: hidden;
    grid-column-gap: 5vw;
    grid-row-gap: 2vh;
    align-content: center;
    grid-template-areas: 'content-img' 'content-title' 'content-text';
    justify-items: center;
}

.content--grid:has(.content__inner) {
    display: block;
    padding: 0;
}

.content__inner {
    width: 100%;
    height: 100%;
    border-radius: 0 0 2rem 2rem;
}

.content--card {
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 95vw;
    max-width: 500px;
    aspect-ratio: 0.8;
    top: 10vh;
    margin: auto;
    border-radius: 14px;
    gap: 3vh;
    text-align: center;
    margin-bottom: 5vh;
}

.content--card .content__title {
    font-size: clamp(1.5rem,4vw,3.5rem);
}

.content--card .content__title i {
    display: block;
}

.content--half {
    display: flex;
    flex-direction: column;
    gap: 3vh;
    text-align: center;
}

.content--half:nth-child(odd) {
    margin-left: auto;
}

.content__img {
    grid-area: content-img;
    width: 50%;
    max-width: 300px;
    height: auto;
}

.content__img--large {
    width: 60%;
    height: auto;
}

.content__img--small {
    height: 35%;
    width: auto;
}

.spacer {
    margin-top: 20vh;
}

.content__title {
    grid-area: content-title;
    letter-spacing: -0.095em;
    text-transform: uppercase;
    line-height: 1;
    font-weight: normal;
    font-size: clamp(2rem,6vw,5rem);
    margin: 0;
    font-variation-settings: "slnt" 0, "wdth" 400, "wght" 900, "INKT" 400;
}

.content__text {
    margin: 0;
    max-width: 500px;
    grid-area: content-text;
    text-align: center;
    line-height: 1.5;
    padding: 0 1rem;
    backface-visibility: hidden;
}

.content__text--narrow {
    max-width: 300px;
}

.content--intro {
    padding-top: 25vh;
    padding-bottom: 25vh;
    z-index: 2;
}

.content--outro {
    padding-top: 50vh;
    padding-bottom: 30vh;
}

.bg-1 { background: var(--color-bg-1); }
.bg-2 { background: var(--color-bg-2); }
.bg-3 { background: var(--color-bg-3); }
.bg-4 { background: var(--color-bg-4); }
.bg-5 { background: var(--color-bg-5); }
.bg-6 { background: var(--color-bg-6); }

@media screen and (min-width: 63em) {
    body {
        --page-padding: 2rem 3rem;
    }
    .frame--header {
        height: 100vh;
        grid-template-columns: auto auto auto 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        align-content: space-between;
        grid-template-areas: 'title back prev sub sponsor' 'heading heading heading heading heading' 'demos demos demos demos demos';
    }
    .frame__heading {
        margin-top: 0;
    }
    .frame__heading h2 {
        white-space: nowrap;
    }
    .frame__heading p {
        margin: 0 0 0 auto;
    }
    .content--grid .content__title {
        align-self: end;
    }
    .frame__demos {
        position: fixed;
        bottom: 2rem;
    }
    .frame--footer {
        padding-bottom: 0;
        grid-template-areas: 'credits ...' '... author';
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 6rem;
    }
    .frame__author {
        align-self: center;
    }
    .frame #cdawrap {
        max-width: 300px;
        text-align: right;
    }
    .frame #cdawrap, 
    .frame__author,
    .frame__sub {
        justify-self: end;
    }
    .content--grid,
    .content--grid .content__inner {
        grid-template-areas: 'content-img content-title' 'content-img content-text';
        grid-template-columns: 30% 1fr;
        justify-items: start;
    }
    .content__img--large {
        width: 160%;
    }
    .content__img--left {
        justify-self: end;
    }
    .content__text--left {
        text-align: left;
        align-self: start;
    }
    .content--card {
        width: 50vw;
    }
    .content--half {
        width: 50%;
    }
}

.bg-1 h2, .bg-1 p,
.bg-3 h2, .bg-3 p,
.bg-5 h2, .bg-5 p {
    color: #fff;
}

/* MODIFICATION : La classe tren-red devient Doré Ambré (#F59E0B) avec effet de lueur */
.tren-red {
    color: #F59E0B !important;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
    display: inline;
    padding: 0;
    margin: 0;
    letter-spacing: normal;
    white-space: normal;
}

.content__title i {
    font-style: italic;
    color: #FFFFFF !important;
}

