/* "Le principe", chat and download sections of the home page. */
.section {
    padding: 120px 24px;
}

.eyebrow {
    font: 700 12px/1 var(--font-sans);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--coral);
}

.section-title {
    margin: 0;
    font: 700 clamp(36px, 4.6vw, 60px)/1.03 var(--font-serif);
    letter-spacing: -1.2px;
    text-wrap: balance;
}

/* Le principe */
.principle {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.principle__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(26, 26, 30, .08);
}

.card__visual {
    height: 170px;
    border-radius: var(--radius);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.card__caption {
    font: 500 13px/1 var(--font-sans);
    color: var(--text-3);
}

.card__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.card__num {
    font: 700 14px/1 var(--font-mono);
    color: var(--coral);
}

.card__title {
    margin: 0;
    font: 700 22px/1.2 var(--font-sans);
    letter-spacing: -.3px;
}

.card__text {
    margin: 0;
    font: 400 16px/1.55 var(--font-sans);
    color: var(--text-2);
}

/* Card 01: invitation code tiles */
.code-tiles {
    display: flex;
    gap: 7px;
}

.code-tiles span {
    width: 44px;
    height: 54px;
    border-radius: 12px;
    background: var(--white);
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 24px/1 var(--font-mono);
    animation: popLoop 5s ease-out calc(var(--i) * .15s) infinite;
}

.code-tiles span:last-child {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}

/* Card 02: 9:00 clock and answer bars */
.clock {
    font: 700 64px/1 var(--font-serif);
    letter-spacing: -2px;
}

.clock span {
    animation: blink 1s steps(1) infinite;
}

.answer-bars {
    display: flex;
    gap: 6px;
}

.answer-bars span {
    width: 30px;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
}

.answer-bars span::before {
    content: "";
    display: block;
    height: 100%;
    background: var(--success);
    transform-origin: 0 50%;
    animation: fillLoop 6s ease-in-out calc(var(--i) * .3s) infinite;
}

.answer-bars span.is-wrong::before {
    background: var(--error);
}

/* Card 03: trophy and the 15 season days (filled by home-season.js) */
.trophy {
    position: relative;
    width: 62px;
    height: 62px;
}

.trophy span {
    position: absolute;
    background: var(--gold);
}

.trophy__cup { left: 8px; top: 2px; width: 46px; height: 34px; border-radius: 6px 6px 26px 26px; animation: crown 3s ease-in-out infinite; }
.trophy__stem { left: 27px; top: 36px; width: 8px; height: 12px; }
.trophy__base { left: 14px; top: 48px; width: 34px; height: 9px; border-radius: 3px; }

.season-days {
    display: flex;
    gap: 3px;
}

.season-days span {
    width: 13px;
    height: 20px;
    border-radius: 4px;
    background: var(--line);
    transition: background .4s;
}

.season-days span.is-past { background: var(--ink); }
.season-days span.is-today { background: var(--coral); }
