/* Atelier Tournesol — L5 + zigzag clay · prefix at- */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --at-clay: #8b5a3c;
  --at-clay-deep: #5c3424;
  --at-oxide: #3d5a4c;
  --at-slip: #e8d9c8;
  --at-chalk: #f7f1e8;
  --at-ink: #1f1814;
  --at-mute: #6a5a4e;
  --at-line: rgba(31, 24, 20, 0.14);
  --at-max: 1120px;
  --at-font-display: "Bricolage Grotesque", sans-serif;
  --at-font-body: "Source Serif 4", Georgia, serif;
  --at-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--at-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(139, 90, 60, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(61, 90, 76, 0.08), transparent 50%),
    linear-gradient(165deg, #f3ebe1 0%, var(--at-chalk) 40%, #efe4d6 100%);
  font-family: var(--at-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--at-clay-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--at-oxide);
}

h1, h2, h3, h4 {
  font-family: var(--at-font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.at-wrap {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
}

.at-wrap--narrow {
  width: min(100% - 2.5rem, 680px);
  margin-inline: auto;
}

/* —— Minimal text header —— */
.at-head {
  position: relative;
  z-index: 40;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--at-line);
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(8px);
}

.at-head__bar {
  width: min(100% - 2rem, var(--at-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.at-brand {
  font-family: var(--at-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--at-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.at-brand:hover {
  color: var(--at-clay-deep);
}

.at-nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.at-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--at-ink);
  transition: transform 0.3s var(--at-ease), opacity 0.2s;
}

.at-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.at-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.at-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.at-nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.at-nav a {
  font-family: var(--at-font-display);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--at-mute);
  letter-spacing: 0.02em;
}

.at-nav a:hover,
.at-nav a[aria-current="page"] {
  color: var(--at-ink);
}

/* —— Full-viewport hero, CTA-led —— */
.at-hero {
  position: relative;
  min-height: calc(100vh - 3.2rem);
  min-height: calc(100dvh - 3.2rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.at-hero__media {
  position: absolute;
  inset: 0;
}

.at-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: at-ken 18s ease-in-out infinite alternate;
}

.at-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 24, 20, 0.15) 0%, rgba(31, 24, 20, 0.55) 55%, rgba(31, 24, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(92, 52, 36, 0.35), transparent 55%);
}

.at-hero__copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--at-max));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  color: #faf6f0;
  animation: at-rise 0.9s var(--at-ease) both;
}

.at-hero__brand {
  font-family: var(--at-font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 0.65rem;
}

.at-hero__line {
  font-family: var(--at-font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  max-width: 28ch;
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.at-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--at-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.72rem 1.25rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.at-btn:hover {
  transform: translateY(-1px);
}

.at-btn--primary {
  background: var(--at-slip);
  color: var(--at-ink);
  border-color: var(--at-slip);
}

.at-btn--primary:hover {
  background: #fff;
  color: var(--at-ink);
}

.at-btn--ghost {
  background: transparent;
  color: #faf6f0;
  border-color: rgba(250, 246, 240, 0.55);
}

.at-btn--ghost:hover {
  background: rgba(250, 246, 240, 0.12);
  color: #fff;
}

.at-btn--solid {
  background: var(--at-clay-deep);
  color: var(--at-chalk);
  border-color: var(--at-clay-deep);
}

.at-btn--solid:hover {
  background: var(--at-clay);
  color: #fff;
}

.at-btn--outline {
  background: transparent;
  color: var(--at-ink);
  border-color: var(--at-line);
}

.at-btn--outline:hover {
  border-color: var(--at-clay);
  color: var(--at-clay-deep);
}

/* —— Zigzag clay sections —— */
.at-zig {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
}

.at-zig:nth-of-type(odd)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  background: linear-gradient(135deg, transparent 48%, rgba(139, 90, 60, 0.1) 50%, transparent 52%);
  background-size: 36px 28px;
  opacity: 0.9;
  pointer-events: none;
}

.at-zig__row {
  width: min(100% - 2rem, var(--at-max));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.at-zig__row--ltr {
  grid-template-columns: 1.15fr 0.85fr;
}

.at-zig__row--rtl {
  grid-template-columns: 0.78fr 1.22fr;
}

.at-zig__row--rtl .at-zig__media {
  order: 2;
}

.at-zig__row--rtl .at-zig__text {
  order: 1;
}

.at-zig__row--wide-media {
  grid-template-columns: 1.35fr 0.65fr;
}

.at-zig__media {
  position: relative;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  overflow: hidden;
}

.at-zig__row--rtl .at-zig__media {
  clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 94%);
}

.at-zig__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.7s var(--at-ease);
}

.at-zig__row:hover .at-zig__media img {
  transform: scale(1.03);
}

.at-zig__kicker {
  font-family: var(--at-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--at-clay);
  margin: 0 0 0.6rem;
}

.at-zig__text h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  max-width: 16ch;
}

.at-zig__text p {
  color: var(--at-mute);
  max-width: 38ch;
}

/* Clay band behind alternate zigzags */
.at-zig--clay {
  background:
    linear-gradient(120deg, rgba(139, 90, 60, 0.09), transparent 40%),
    linear-gradient(to bottom, #ebe0d2, #e6d8c8);
}

.at-zig--oxide {
  background: linear-gradient(160deg, #dfe8e2, #e8efe9 50%, #d9e4dd);
}

/* —— Services table / definition list —— */
.at-services {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--at-line);
  border-bottom: 1px solid var(--at-line);
  background: rgba(255, 252, 248, 0.65);
}

.at-services__head {
  width: min(100% - 2.5rem, var(--at-max));
  margin: 0 auto 2rem;
}

.at-services__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.35rem;
}

.at-services__head p {
  color: var(--at-mute);
  margin: 0;
  max-width: 42ch;
}

.at-table {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.at-table th,
.at-table td {
  text-align: left;
  padding: 0.95rem 0.75rem;
  border-bottom: 1px solid var(--at-line);
  vertical-align: top;
}

.at-table th {
  font-family: var(--at-font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--at-mute);
  border-bottom-color: var(--at-clay);
}

.at-table td:first-child {
  font-family: var(--at-font-display);
  font-weight: 600;
  width: 22%;
}

.at-table td:last-child {
  white-space: nowrap;
  font-family: var(--at-font-display);
  font-weight: 600;
  color: var(--at-clay-deep);
  text-align: right;
}

.at-dl {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
}

.at-dl dt {
  font-family: var(--at-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--at-line);
}

.at-dl dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.at-dl dd {
  margin: 0.35rem 0 0;
  color: var(--at-mute);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.at-dl dd span:last-child {
  font-family: var(--at-font-display);
  font-weight: 600;
  color: var(--at-clay-deep);
  white-space: nowrap;
}

/* —— Inner pages —— */
.at-page-top {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.at-page-top h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.at-lede {
  color: var(--at-mute);
  max-width: 46ch;
  font-size: 1.12rem;
}

.at-band {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.at-legal {
  padding-bottom: 3.5rem;
}

.at-legal h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.at-legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1em;
}

.at-legal li {
  margin-bottom: 0.4rem;
}

/* Workshop / course lists as plain rows */
.at-list {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
}

.at-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--at-line);
}

.at-list__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.at-list__item p {
  margin: 0;
  color: var(--at-mute);
  max-width: 52ch;
}

.at-list__meta {
  font-family: var(--at-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: right;
  color: var(--at-clay-deep);
  white-space: nowrap;
}

.at-shelf {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.at-shelf__row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.at-shelf__row:nth-child(even) {
  grid-template-columns: 1.1fr 0.9fr;
}

.at-shelf__row:nth-child(even) img {
  order: 2;
}

.at-shelf__row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.at-shelf__price {
  font-family: var(--at-font-display);
  font-weight: 700;
  color: var(--at-clay-deep);
  margin-top: 0.5rem;
}

.at-facts {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--at-line);
}

.at-facts h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.at-facts p,
.at-facts address {
  margin: 0;
  color: var(--at-mute);
}

/* Form */
.at-form-grid {
  width: min(100% - 2.5rem, var(--at-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.at-form label {
  display: block;
  font-family: var(--at-font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.at-form input,
.at-form select,
.at-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--at-line);
  background: rgba(255, 252, 248, 0.9);
  font: inherit;
  color: var(--at-ink);
}

.at-form textarea {
  min-height: 140px;
  resize: vertical;
}

.at-form-success {
  display: none;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: #e4efe8;
  border-left: 3px solid var(--at-oxide);
  font-family: var(--at-font-display);
  font-size: 0.95rem;
}

.at-form-success.is-visible {
  display: block;
  animation: at-rise 0.45s var(--at-ease);
}

.at-aside h3 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.35rem;
}

.at-aside h3:first-child {
  margin-top: 0;
}

.at-aside p,
.at-aside address {
  margin: 0;
  color: var(--at-mute);
}

/* —— Footer band —— */
/* F5 — compact utility bar */
.at-foot {
  background: var(--at-clay-deep);
  color: rgba(232, 217, 200, 0.88);
  padding: 0.85rem 0;
  margin-top: 0;
  border-top: 1px solid rgba(232, 217, 200, 0.18);
}

.at-foot__bar {
  width: min(100% - 2rem, var(--at-max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-family: var(--at-font-display);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.at-foot__bar a {
  color: rgba(232, 217, 200, 0.88);
  text-decoration: none;
  white-space: nowrap;
}

.at-foot__bar a:hover {
  color: #fff;
}

.at-foot__name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.at-foot__sep {
  opacity: 0.45;
  user-select: none;
  flex-shrink: 0;
}

/* Cookie banner */
.at-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 100;
  max-width: 420px;
  margin-left: auto;
  padding: 1.25rem;
  background: #fffdf9;
  border: 1px solid var(--at-line);
  box-shadow: 0 12px 40px rgba(31, 24, 20, 0.18);
  display: none;
}

.at-cookie.is-visible {
  display: block;
  animation: at-rise 0.4s var(--at-ease);
}

.at-cookie h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.at-cookie p {
  font-size: 0.92rem;
  color: var(--at-mute);
}

.at-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.at-cookie__panel {
  display: none;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--at-line);
}

.at-cookie__panel.is-open {
  display: block;
}

.at-cookie__panel label {
  display: block;
  font-family: var(--at-font-display);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Motion */
.at-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--at-ease), transform 0.7s var(--at-ease);
}

.at-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes at-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes at-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Responsive */
@media (max-width: 860px) {
  .at-nav-toggle {
    display: block;
  }

  .at-nav {
    position: fixed;
    inset: 3.2rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(247, 241, 232, 0.97);
    border-bottom: 1px solid var(--at-line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--at-ease), opacity 0.25s;
  }

  .at-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .at-nav li a {
    display: block;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--at-line);
  }

  .at-zig__row--ltr,
  .at-zig__row--rtl,
  .at-zig__row--wide-media {
    grid-template-columns: 1fr;
  }

  .at-zig__row--rtl .at-zig__media,
  .at-zig__row--rtl .at-zig__text {
    order: initial;
  }

  .at-zig__row--rtl .at-zig__media {
    order: -1;
  }

  .at-table td:last-child {
    white-space: normal;
  }

  .at-list__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .at-list__meta {
    text-align: left;
  }

  .at-shelf__row,
  .at-shelf__row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .at-shelf__row:nth-child(even) img {
    order: initial;
  }

  .at-form-grid,
  .at-facts {
    grid-template-columns: 1fr;
  }

  .at-foot__bar {
    row-gap: 0.25rem;
  }

  .at-dl dd {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .at-hero__media img {
    animation: none;
  }
}
