/* Page d'attente de naturechain.eu (owner, 03.12.2026), en attendant la
   mise en ligne de la vitrine. Charte 3.3 et 3.4 de la vitrine : fond
   papier seul, texte Terre douce, une bande ocre ambré, pied Sous-bois,
   Instrument Serif pour le seul grand titre, Albert Sans pour le reste,
   Azeret Mono pour « FR · EN ». Couleurs et polices viennent de tokens.css,
   copié tel quel de packages/brand par construire.mjs. */
@layer fonts, base, page;

@layer fonts {
  @font-face {
    font-family: "Albert Sans";
    font-weight: 400 600;
    font-display: swap;
    src: url("/polices/albert-sans-latin-ext.woff2") format("woff2");
    unicode-range:
      U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
      U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
      U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: "Albert Sans";
    font-weight: 400 600;
    font-display: swap;
    src: url("/polices/albert-sans-latin.woff2") format("woff2");
    unicode-range:
      U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
      U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
      U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face {
    font-family: "Albert Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/polices/albert-sans-italic-latin.woff2") format("woff2");
  }
  @font-face {
    font-family: "Instrument Serif";
    font-weight: 400;
    font-display: swap;
    src: url("/polices/instrument-serif-latin.woff2") format("woff2");
  }
  @font-face {
    font-family: "Azeret Mono";
    font-weight: 500;
    font-display: swap;
    src: url("/polices/azeret-mono-latin.woff2") format("woff2");
  }
}

@layer base {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  html {
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    background: var(--nc-papier);
    color: var(--nc-terre-douce);
    font-family: var(--nc-font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
  }
  a {
    color: var(--nc-sapin);
    text-underline-offset: 0.18em;
  }
  a:hover {
    color: var(--nc-terre-douce);
  }
  a:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--nc-sapin);
    outline-offset: 3px;
  }
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
}

@layer page {
  .cadre {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1rem;
  }
  @media (min-width: 48rem) {
    .cadre {
      padding-inline: 2.5rem;
    }
  }

  /* En-tête : le logo à gauche, la langue à droite. */
  .entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
  }
  .entete__logo img {
    width: 11rem;
  }
  .langues {
    font-family: var(--nc-font-mono);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .langues__courante {
    background: var(--nc-terre-douce);
    color: var(--nc-papier);
    border-radius: var(--nc-rayon-pilule);
    padding: 0.15rem 0.6rem;
  }

  /* Ouverture : le texte et la photo d'espèce côte à côte. */
  .ouverture {
    display: grid;
    gap: 2rem;
    padding-block: 1.5rem 4rem;
  }
  @media (min-width: 56rem) {
    .ouverture {
      grid-template-columns: 1.1fr 0.9fr;
      align-items: center;
      gap: 4rem;
      padding-block: 3rem 6rem;
    }
  }
  h1 {
    font-family: var(--nc-font-titre);
    font-weight: 400;
    font-size: clamp(2.75rem, 7vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
  }
  .chapeau {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    max-width: 34rem;
  }
  .texte p {
    max-width: 34rem;
  }
  .photo {
    margin: 0;
  }
  .photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: 35% 55%;
    border-radius: var(--nc-rayon-l);
  }
  .photo figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--nc-neutre);
  }
  .photo figcaption i {
    font-style: italic;
  }

  /* La bande ocre ambré de la page : l'invitation à écrire. */
  .bande {
    background: var(--nc-ocre-ambre);
    color: var(--nc-terre-douce);
    padding-block: 3rem;
  }
  .bande .cadre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .bande h2 {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.25rem;
  }
  .bande p {
    margin: 0;
    max-width: 34rem;
  }
  .action {
    display: inline-block;
    background: var(--nc-sous-bois);
    color: var(--nc-lin);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--nc-rayon-pilule);
    padding: 0.85rem 1.5rem;
    overflow-wrap: anywhere;
  }
  .action:hover {
    color: var(--nc-lin);
    text-decoration: underline;
  }
  .bande .action:focus-visible {
    outline-color: var(--nc-sous-bois);
  }

  /* Pied Sous-bois : les mentions légales, dépliables. */
  .pied {
    background: var(--nc-sous-bois);
    color: var(--nc-lin);
    padding-block: 2.5rem 3rem;
    font-size: 0.9375rem;
  }
  .pied a {
    color: var(--nc-lin);
  }
  .pied a:focus-visible,
  .pied summary:focus-visible {
    outline-color: var(--nc-lin);
  }
  .pied__discret {
    color: var(--nc-sous-bois-doux);
    margin: 0 0 1rem;
  }
  .pied summary {
    cursor: pointer;
    font-weight: 600;
  }
  .pied h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.25rem;
  }
  .pied dl {
    margin: 0;
  }
  .pied dl div {
    display: grid;
    gap: 0 1rem;
  }
  @media (min-width: 40rem) {
    .pied dl div {
      grid-template-columns: 14rem 1fr;
    }
  }
  .pied dt {
    color: var(--nc-sous-bois-doux);
  }
  .pied dd {
    margin: 0 0 0.5rem;
  }
  .donnee {
    font-family: var(--nc-font-mono);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }
}
