/* Ateliers Clairbois — a fictional association, a demonstration website of Atlas Digital (/demos/base.css).
   Its own structure: bold colour blocks, alternating rows, a weekly agenda and a gallery that opens without script. */
:root {
    --bg: #fffaf2;
    --surface: #ffffff;
    --ink: #13283d;
    --muted: #4a5a6a;
    --line: #e6dccb;
    --accent: #1f3b57;
    --accent-ink: #1f3b57;
    --on-accent: #ffffff;
    --sun: #f7c948;
    --coral: #e4572e;
    --coral-ink: #b8401c;
    --leaf: #2f7a4f;
    --font-title: 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 1rem;
}

h1,
h2,
h3 {
    font-weight: 700;
}

.a-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--bg);
    border-bottom: 3px solid var(--ink);
}

.a-top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
}

.a-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-family: var(--font-title);
    font-size: 1.2rem;
    line-height: 1.1;
    text-decoration: none;
}

.a-brand small {
    display: block;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
}

.a-brand__mark {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.6rem 0.6rem 0.6rem 1.4rem;
    background: var(--coral);
    color: var(--on-accent);
    font-size: 1.4rem;
}

.a-nav {
    display: none;
    gap: 1.5rem;
}

.a-nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

@media (hover: hover) {
    .a-nav a:hover {
        color: var(--coral-ink);
    }

    .a-gallery a:hover img {
        transform: scale(1.04);
    }
}

@media (min-width: 900px) {
    .a-nav {
        display: flex;
    }
}

.a-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.2rem;
    border: 3px solid var(--ink);
    border-radius: 0.6rem;
    background: var(--coral-ink);
    color: var(--on-accent);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 3px 3px 0 var(--ink);
}

.a-btn--sun {
    background: var(--sun);
    color: var(--ink);
}

.a-btn--line {
    border-color: var(--bg);
    background: transparent;
    box-shadow: none;
}

/* On a phone the header's button keeps its icon (its name is its aria-label), next to the menu. */
@media (max-width: 519px) {
    .a-brand small,
    .a-top .a-btn span {
        display: none;
    }

    .a-top .a-btn {
        padding-inline: 0.75rem;
    }
}

.a-tag {
    margin-bottom: 0.6rem;
    color: var(--coral-ink);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Hero: a deep blue block, a tilted collage of the year's moments. */
.a-hero {
    padding-block: clamp(3rem, 8vw, 6rem);
    background: var(--accent);
    color: var(--on-accent);
}

.a-hero .wrap {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .a-hero .wrap {
        grid-template-columns: 1.1fr 1fr;
    }
}

.a-hero .a-tag {
    color: var(--sun);
}

.a-hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.25rem);
    line-height: 1.05;
}

.a-hero h1 span {
    color: var(--sun);
}

.a-hero__lead {
    max-width: 34rem;
    margin-top: 1.25rem;
    font-size: 1.15rem;
    opacity: 0.9;
}

.a-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.a-collage {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 2.5rem);
    max-width: 30rem;
}

.a-collage img {
    width: 100%;
    border: 6px solid var(--bg);
    border-radius: 0.5rem;
}

.a-collage img:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 5;
    transform: rotate(-4deg);
}

.a-collage img:nth-child(2) {
    grid-column: 3 / 7;
    grid-row: 3 / 7;
    transform: rotate(3deg);
}

.a-collage img:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
    transform: rotate(6deg);
}

/* Numbers: a yellow strip under the hero. */
.a-numbers {
    background: var(--sun);
    border-block: 3px solid var(--ink);
}

.a-numbers ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: 1rem;
    margin-block: 0;
    padding-block: 1.5rem;
    list-style: none;
}

.a-numbers li {
    display: grid;
}

.a-numbers strong {
    font-family: var(--font-title);
    font-size: 2rem;
    line-height: 1.1;
}

.a-section {
    padding-block: clamp(3.5rem, 9vw, 6rem);
}

.a-section--sun {
    background: var(--surface);
    border-block: 3px solid var(--ink);
}

.a-section--ink {
    background: var(--ink);
    color: var(--on-accent);
}

.a-title {
    margin-bottom: 2.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.a-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 0.4rem;
    margin-top: 0.75rem;
    border-radius: 999px;
    background: var(--coral);
}

/* Actions: rows that alternate image and text. */
.a-rows {
    display: grid;
    gap: 3rem;
}

.a-row {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 760px) {
    .a-row {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .a-row:nth-child(even) img {
        order: 2;
    }
}

.a-row img {
    width: 100%;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 var(--sun);
}

.a-row h3 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.a-row p:not(.a-tag) {
    margin-top: 0.75rem;
    color: var(--muted);
}

/* Agenda: the week, one day badge a line. */
.a-agenda {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .a-agenda {
        grid-template-columns: 1fr 2fr;
    }
}

.a-agenda > div > p {
    margin-top: -1rem;
    color: var(--muted);
}

.a-week {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-week li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--bg);
}

.a-week__day {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--on-accent);
    font-weight: 700;
    text-transform: uppercase;
}

.a-week li:nth-child(even) .a-week__day {
    background: var(--coral-ink);
}

.a-week h3 {
    font-size: 1.15rem;
}

.a-week p {
    color: var(--muted);
    font-size: 0.9375rem;
}

/* Gallery: one big image and four, each opening its larger view by its anchor (:target, no script). */
.a-intro {
    margin: -1rem 0 2rem;
    color: var(--muted);
}

.a-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .a-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    .a-gallery__big {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.a-gallery__big {
    grid-column: span 2;
}

.a-gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    height: 100%;
    border-radius: var(--radius);
    color: var(--on-accent);
    text-decoration: none;
}

.a-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .a-gallery img {
        transition: none;
    }
}

.a-gallery span {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    background: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.a-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgb(19 40 61 / 0.92);
    color: var(--on-accent);
}

.a-lightbox:target {
    display: flex;
}

.a-lightbox figure {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    width: min(100%, 56rem);
}

.a-lightbox img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.a-lightbox figcaption {
    text-align: center;
}

.a-lightbox__close {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

/* Support: three ways, then the contact details. */
.a-section--ink .a-title::after {
    background: var(--sun);
}

.a-support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.a-support li {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}

.a-support .i {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--coral);
}

.a-support p {
    flex: 1;
    color: var(--muted);
}

.a-support a {
    color: var(--coral-ink);
    font-weight: 700;
}

.a-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    margin-top: 2.5rem;
}

.a-contact p {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.a-contact .i {
    color: var(--sun);
}

.a-contact a {
    color: inherit;
}

.a-foot {
    padding-block: 2rem;
    background: var(--coral-ink);
    color: var(--on-accent);
    font-size: 0.9375rem;
}

.a-foot .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.a-foot a {
    color: inherit;
}
