/*
 * Pas de @layer ici : les regles nues de style.css battent n'importe
 * quelle couche, donc une couche perdrait contre le a { color } global.
 */
.at {
  --at-encre: oklch(21% 0.025 245);
  --at-encre2: oklch(14% 0.022 245);
  --at-bord: oklch(89% 0.008 250);
  --at-doux: oklch(97.5% 0.004 250);
  --at-vert: oklch(52% 0.13 152);

  container-type: inline-size;
  padding-block: 26px 60px;
}

.at-hero {
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 130% at 88% -20%,
      color-mix(in oklch, var(--or) 34%, transparent), transparent 62%),
    linear-gradient(158deg, var(--at-encre), var(--at-encre2));
  color: #fff;
  padding: clamp(30px, 6cqi, 66px) clamp(22px, 5cqi, 56px);

  & .kick {
    display: inline-block;
    border: 1px solid oklch(100% 0 0 / .3);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: oklch(88% 0.09 70);
    margin-bottom: 20px;
  }

  & h1 {
    font-family: "Archivo", sans-serif;
    font-size: clamp(28px, 5.6cqi, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 0;
    max-width: 17ch;
  }

  & .chapo {
    color: oklch(89% 0.012 245);
    font-size: clamp(14.5px, 1.6cqi, 17px);
    line-height: 1.6;
    max-width: 66ch;
    margin: 20px 0 0;
  }
}

.at-h {
  font-family: "Archivo", sans-serif;
  font-size: clamp(19px, 2.4cqi, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 40px 0 16px;
  scroll-margin-top: 22px;
}

.at-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.at-c {
  background: #fff;
  border: 1px solid var(--at-bord);
  border-radius: 14px;
  padding: clamp(20px, 3cqi, 30px);
  display: flex;
  flex-direction: column;

  & h3 {
    font-family: "Archivo", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 10px;
  }

  & > p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 20px;
  }

  & .note {
    font-size: 12px;
    line-height: 1.55;
    color: var(--ink3);
    margin: 14px 0 0;
  }

  &.vedette {
    background: linear-gradient(170deg, oklch(97% 0.03 152), #fff 62%);
    border-color: oklch(86% 0.05 152);
  }
}

.at-plats {
  border-block: 1px solid var(--at-bord);
  padding-block: 15px;
  margin-bottom: 20px;

  & > b {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink3);
    margin-bottom: 10px;
  }

  & .puces {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  & .puces span {
    border: 1px solid var(--at-bord);
    border-radius: 6px;
    background: var(--at-doux);
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  & > p {
    margin: 11px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink2);
  }
}

.at-form {
  margin-top: auto;

  & label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;

    & em {
      font-style: normal;
      font-weight: 400;
      color: var(--ink3);
    }
  }

  & .duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 13px;
  }

  & .duo input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line2);
    border-radius: 9px;
    padding-inline: 12px;
    font: inherit;
    font-size: 14px;
    background: #fff;

    &:focus {
      outline: 0;
      border-color: var(--or);
      box-shadow: 0 0 0 3px color-mix(in oklab, var(--or) 22%, transparent);
    }
  }

  & button.vert {
    background: var(--at-vert);
    border-color: color-mix(in oklch, var(--at-vert) 82%, #000);
    color: #fff;

    &:hover { background: color-mix(in oklch, var(--at-vert) 86%, #000); }
  }

  & .ligne {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
  }

  & input {
    flex: 1 1 210px;
    min-width: 0;
    height: 46px;
    border: 1px solid var(--line2);
    border-radius: 9px;
    padding-inline: 13px;
    font: inherit;
    font-size: 14.5px;
    background: #fff;

    &:focus {
      outline: 0;
      border-color: var(--or);
      box-shadow: 0 0 0 3px color-mix(in oklab, var(--or) 22%, transparent);
    }
  }

  & button {
    flex: 0 0 auto;
    height: 46px;
    border: 1px solid var(--or2);
    border-radius: 9px;
    padding-inline: 22px;
    background: var(--or);
    color: #1A1205;
    font-size: 14.5px;
    font-weight: 700;

    &:hover { background: var(--or2); }
  }
}

.at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  height: 46px;
  padding-inline: 26px;
  border-radius: 9px;
  background: var(--at-vert);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;

  &:hover {
    background: color-mix(in oklch, var(--at-vert) 86%, #000);
    text-decoration: none;
    color: #fff;
  }
}

.at-ok {
  display: grid;
  gap: 5px;
  background: oklch(96.5% 0.028 152);
  border: 1px solid oklch(86% 0.065 152);
  border-radius: 10px;
  padding: 15px 17px;
  margin-top: auto;

  & b { font-size: 14px; color: oklch(38% 0.11 152); }
  & span { font-size: 13px; line-height: 1.55; color: var(--ink2); }
}

.at-err {
  background: oklch(96% 0.035 25);
  border: 1px solid oklch(85% 0.075 25);
  color: oklch(43% 0.15 25);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13px;
  margin-bottom: 12px;
}

.at-bloc {
  margin-top: 42px;

  & > h2 {
    font-family: "Archivo", sans-serif;
    font-size: clamp(19px, 2.4cqi, 25px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 6px;
  }

  & .at-sous {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink2);
    max-width: 72ch;
    margin: 0 0 18px;
  }
}

.at-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 15px;
  margin-top: 16px;

  & article {
    background: #fff;
    border: 1px solid var(--at-bord);
    border-radius: 13px;
    padding: 20px 21px;
  }

  & h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 9px;
  }

  & p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 12px;
  }

  & a { font-size: 13px; font-weight: 600; }
}

.at-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  & a {
    border: 1px solid var(--at-bord);
    border-radius: 22px;
    background: #fff;
    padding: 8px 17px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;

    &:hover { border-color: var(--ink3); text-decoration: none; }
  }
}

.at-seul {
  background: #fff;
  border: 1px solid var(--at-bord);
  border-radius: 14px;
  padding: clamp(28px, 5cqi, 52px);
  max-width: 620px;
  margin-block: 30px 60px;
  display: flex;
  flex-direction: column;

  & h1 {
    font-family: "Archivo", sans-serif;
    font-size: clamp(24px, 3.4cqi, 33px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 12px;
  }

  & p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink2);
    margin: 0 0 24px;
    max-width: 58ch;
  }
}
