/* ==========================================================================
   Accueil (refonte 2026-10). Chargé uniquement sur l'accueil, après style.css.
   Classes propres (aok-*) : aucune règle existante n'est modifiée.
   ========================================================================== */

.aok-wrap {
  width: var(--am360-page);
  margin-inline: auto;
}

.aok-eyebrow {
  font-family: var(--am360-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* 1. Ouverture */
.aok-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  background: #2a2620;
  color: #fff;
}

.aok-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.aok-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 8, 6, 0.78) 0%, rgba(10, 8, 6, 0.45) 45%, rgba(10, 8, 6, 0) 75%);
}

.aok-hero .aok-wrap {
  position: relative;
  z-index: 1;
}

.aok-hero__content {
  max-width: 560px;
}

.aok-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e8dcc8;
}

.aok-hero__eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: #e8dcc8;
}

.aok-hero h1 {
  margin: 18px 0 16px;
  color: #fff;
  font-family: var(--am360-brand);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.aok-hero p {
  margin: 0 0 28px;
  color: #f1ece4;
  font-size: 17px;
  line-height: 1.6;
}

.aok-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border: 1px solid #fff;
  font-family: var(--am360-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.aok-btn--light {
  background: #fff;
  color: var(--am360-black);
}

.aok-btn--ghost {
  color: #fff;
}

.aok-btn--ghost:hover,
.aok-btn--ghost:focus-visible {
  background: #fff;
  color: var(--am360-black);
}

.aok-btn:focus-visible,
.aok-cat:focus-visible,
.aok-card:focus-visible,
.aok-row__head a:focus-visible {
  outline: 2px solid #b8892b;
  outline-offset: 3px;
}

/* 2. Réassurance */
.aok-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--am360-line);
  background: var(--am360-white);
}

.aok-trust__item {
  padding: 30px 22px;
  border-right: 1px solid var(--am360-line);
  text-align: center;
}

.aok-trust__item:last-child {
  border-right: 0;
}

.aok-trust__icon {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  color: var(--am360-black);
}

.aok-trust .aok-eyebrow {
  display: block;
  margin-bottom: 6px;
}

.aok-trust p {
  margin: 0;
  color: var(--am360-muted);
  font-size: 14px;
}

/* 3. Phrase d'accueil et catégories phares */
.aok-intro {
  padding: 72px 0 64px;
  text-align: center;
}

.aok-intro h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  font-family: var(--am360-brand);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.aok-intro__rule {
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 18px;
  background: var(--am360-black);
}

.aok-intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--am360-muted);
  font-size: 16px;
  line-height: 1.7;
}

.aok-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.aok-cat {
  position: relative;
  grid-column: span 2;
  height: 520px;
  overflow: hidden;
  background: var(--am360-soft);
}

.aok-cat--wide {
  grid-column: span 3;
  height: 600px;
}

.aok-cat .aok-cat__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.aok-cat:hover .aok-cat__img {
  transform: scale(1.04);
}

.aok-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 6, 0.8) 0%, rgba(10, 8, 6, 0.45) 28%, rgba(10, 8, 6, 0) 55%);
}

.aok-cat__txt {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.aok-cat__txt strong {
  display: block;
  font-family: var(--am360-brand);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
}

.aok-cat__txt .aok-eyebrow {
  display: block;
  margin: 8px 0 16px;
  color: #eee;
  font-size: 10px;
}

.aok-cat__link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid #fff;
  font-family: var(--am360-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 4. Rangées de produits phares (sans défilement) */
.aok-row {
  padding: 28px 0 36px;
}

.aok-cats + .aok-row {
  padding-top: 64px;
}

.aok-row__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--am360-line);
}

.aok-row__head h2 {
  margin: 0;
  font-family: var(--am360-brand);
  font-size: 30px;
  font-weight: 500;
}

.aok-row__head p {
  margin: 4px 0 0;
  color: var(--am360-muted);
  font-family: var(--am360-ui);
  font-size: 12px;
}

.aok-row__head a {
  flex: 0 0 auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--am360-line);
  color: var(--am360-muted);
  font-family: var(--am360-ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.aok-row__head a:hover {
  color: var(--am360-black);
  border-color: var(--am360-black);
}

.aok-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.aok-card {
  display: block;
  min-width: 0;
}

.aok-card__ph {
  display: block;
  aspect-ratio: 2 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--am360-soft);
}

.aok-card__ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aok-card__name {
  display: block;
  margin: 12px 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.aok-card__price {
  display: block;
  font-family: var(--am360-ui);
  font-size: 14px;
  font-weight: 600;
}

.aok-card__price del {
  margin-right: 6px;
  color: var(--am360-muted);
  font-weight: 400;
}

.aok-card__price ins {
  text-decoration: none;
}

/* 5. Avis clients */
.aok-reviews {
  margin-top: 24px;
  padding: 64px 0;
  background: var(--am360-soft);
}

.aok-reviews__head {
  margin-bottom: 34px;
  text-align: center;
}

.aok-reviews__head h2 {
  margin: 10px 0 6px;
  font-family: var(--am360-brand);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
}

.aok-reviews__head p {
  margin: 8px 0 0;
  color: var(--am360-muted);
  font-family: var(--am360-ui);
  font-size: 12px;
}

.aok-stars {
  color: #b8892b;
  letter-spacing: 0.12em;
}

.aok-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.aok-reviews figure {
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--am360-line);
  background: var(--am360-white);
}

.aok-reviews blockquote {
  margin: 12px 0 16px;
  padding: 0;
  border: 0;
  font-size: 16px;
  line-height: 1.6;
}

.aok-reviews figcaption {
  font-family: var(--am360-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* 6. Notre histoire */
.aok-story__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 64px 0 80px;
}

.aok-story h2 {
  margin: 10px 0 0;
  font-family: var(--am360-brand);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.aok-story p {
  margin: 0 0 14px;
  color: #3d3d3d;
  line-height: 1.75;
}

/* Ordinateur : l'ouverture s'adapte à la hauteur de l'écran pour que le bandeau
   de réassurance (trait du bas compris) reste visible sans défiler.
   Réserve ≈ 312 px = en-tête (≈ 168 px) + bandeau (≈ 128 px) + un peu d’air. */
@media (min-width: 821px) {
  .aok-hero {
    min-height: clamp(440px, calc(100vh - 312px), 600px);
  }

  .aok-trust__item {
    padding: 20px 22px;
  }

  .aok-trust__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }
}

/* Téléphone et tablette */
@media (max-width: 820px) {
  .aok-hero {
    align-items: flex-end;
    min-height: 560px;
  }

  .aok-hero__media {
    object-position: 62% 20%;
  }

  .aok-hero::after {
    background: linear-gradient(0deg, rgba(10, 8, 6, 0.85) 0%, rgba(10, 8, 6, 0.5) 50%, rgba(10, 8, 6, 0.05) 80%);
  }

  .aok-hero .aok-wrap {
    padding-bottom: 30px;
  }

  .aok-hero p {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .aok-btn {
    flex: 1 1 100%;
  }

  .aok-trust {
    grid-template-columns: 1fr 1fr;
  }

  .aok-trust__item {
    padding: 22px 10px;
  }

  .aok-trust__item:nth-child(2) {
    border-right: 0;
  }

  .aok-trust__item:nth-child(-n+2) {
    border-bottom: 1px solid var(--am360-line);
  }

  .aok-trust__icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }

  .aok-intro {
    padding: 48px 0 40px;
  }

  .aok-cats {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }

  .aok-cat,
  .aok-cat--wide {
    grid-column: span 1;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .aok-cat:first-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .aok-cat__txt {
    right: 14px;
    bottom: 16px;
    left: 14px;
  }

  .aok-cat__txt strong {
    font-size: 22px;
  }

  .aok-cat:first-child .aok-cat__txt strong {
    font-size: 30px;
  }

  .aok-cat__txt .aok-eyebrow {
    margin: 5px 0 10px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .aok-cat__link {
    font-size: 10px;
  }

  .aok-row__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .aok-row__head h2 {
    font-size: 24px;
  }

  /* 2 x 2 : le 5e produit est masqué pour garder des lignes pleines */
  .aok-products {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }

  .aok-products .aok-card:nth-child(5) {
    display: none;
  }

  .aok-card__name {
    font-size: 14px;
  }

  .aok-reviews {
    padding: 44px 0;
  }

  .aok-reviews__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aok-reviews figure {
    padding: 20px 18px;
  }

  .aok-story__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 44px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aok-cat .aok-cat__img,
  .aok-btn {
    transition: none;
  }
}
