/* Page des marques et page de chaque marque : palette et typographies du thème Archibô. */
.brands-page { padding: 24px 0 72px; background: var(--bg-page); }
.brands-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding: 46px 0 52px; }
.brands-intro h1 { margin: 18px 0 0; font-size: clamp(42px, 5.4vw, 72px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; color: var(--green-deep); }
.brands-intro h1 em { font-family: var(--script); font-weight: 400; color: var(--green-soft); letter-spacing: 0; }
.brands-intro__aside { max-width: 400px; justify-self: end; padding-bottom: 8px; }
.brands-intro__aside p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.brands-intro__count { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.brands-page a:focus-visible { outline: 3px solid var(--green-primary); outline-offset: 5px; }

@media (max-width: 700px) {
  .brands-page { padding-top: 12px; padding-bottom: 40px; }
  .brands-intro { grid-template-columns: 1fr; padding: 30px 0 32px; gap: 18px; }
  .brands-intro__aside { max-width: none; justify-self: start; padding: 0; }
  .brands-intro__aside p { font-size: 16px; margin-bottom: 10px; }
}

/* ---------- Ruban et portraits ---------- */
.brands-ribbon { padding: 34px 0 30px; margin-bottom: 80px; border-block: 1px solid var(--border-line); }
.brands-all__head { max-width: 640px; margin-bottom: 40px; }
.brands-all__head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.035em; color: var(--green-deep); }
.brands-all__head h2 em { font-family: var(--script); font-weight: 400; font-style: normal; color: var(--green-soft); letter-spacing: 0; }

.brands-all__grid { list-style: none; margin: 0; padding: 0 0 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.brand-card:nth-child(3n+2) { transform: translateY(64px); }
.brand-card > a { display: block; color: var(--green-deep); text-decoration: none; }
.brand-card__photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--r-lg); }
.brand-card__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; background: var(--surface); transition: transform .9s var(--ease); }
.brand-card__photos--3 img:first-child { grid-row: span 2; }
/* Moins de trois pièces : la collage se resserre plutôt que de laisser des cases vides. */
.brand-card__photos--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.brand-card__photos--1, .brand-card__photos--0 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.brand-card__photos--0 { place-items: center; background: var(--bg-cream-deep); }
.brand-card__blank { font-family: var(--script); font-size: clamp(34px, 3.4vw, 48px); color: var(--green-soft); text-align: center; padding: 0 12%; }
.brand-card__body { display: grid; gap: 4px; align-items: center; padding: 22px 4px 0; }
.brand-card__logo { height: 44px; width: auto; max-width: 100%; justify-self: start; object-fit: contain; object-position: left center; }
.brand-card__word { font-size: 30px; line-height: 44px; letter-spacing: -.03em; }
.brand-card__unis { font-size: 14px; color: var(--text-muted); }
.brand-card__cta { justify-self: start; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--border-line); font-size: 15px; transition: border-color .3s var(--ease), color .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .brand-card > a:hover .brand-card__photos img { transform: scale(1.05); }
  .brand-card > a:hover .brand-card__photos--3 img:first-child { transform: scale(1.03); }
  .brand-card > a:hover .brand-card__cta { border-color: var(--green-deep); color: var(--green-primary); }
}

@media (max-width: 900px) {
  .brands-all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-card:nth-child(3n+2) { transform: none; }
  .brand-card:nth-child(2n) { transform: translateY(48px); }
}
@media (max-width: 700px) {
  .brands-ribbon { margin-bottom: 48px; padding: 24px 0 20px; }
  .brands-all__head { margin-bottom: 24px; }
  .brands-all__grid { gap: 32px 12px; padding-bottom: 40px; }
  .brand-card:nth-child(2n) { transform: translateY(32px); }
  .brand-card__photos { gap: 3px; border-radius: var(--r-md); }
  .brand-card__body { padding: 12px 2px 0; }
  .brand-card__logo { height: 30px; }
  .brand-card__word { font-size: 20px; line-height: 30px; }
  .brand-card__unis { display: none; }
  .brand-card__cta { margin-top: 4px; font-size: 14px; }
  .brand-card__blank { font-size: 28px; }
}

/* ---------- Page d'une marque : en-tête ---------- */
.brand-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; padding: 34px 0 40px; }
.brand-hero .kicker { font-family: var(--script); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--green-soft); line-height: 1; }
.brand-hero__title { margin: 18px 0 0; font-size: clamp(42px, 5.4vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -.045em; color: var(--green-deep); }
.brand-hero__title img { display: block; height: clamp(72px, 8vw, 112px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand-hero__text { max-width: 56ch; margin-top: 20px; font-size: 16px; line-height: 1.7; }
.brand-hero__aside { justify-self: end; max-width: 420px; padding-bottom: 6px; }
.brand-hero__unis-label { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); }
.brand-hero__unis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.brand-hero__unis a { display: inline-flex; align-items: flex-start; gap: 4px; padding: 8px 15px; border: 1px solid var(--border-line); border-radius: var(--r-pill); color: var(--green-deep); font-size: 15px; line-height: 1.2; text-decoration: none; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.brand-hero__unis sup { top: 0; font-size: 11px; color: var(--text-muted); transition: color .25s var(--ease); }
.brand-hero__unis a:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--bg-page); }
.brand-hero__unis a:hover sup { color: var(--text-on-dark); }
.brand-hero__back { display: inline-flex; gap: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--border-line); color: var(--green-deep); font-size: 15px; text-decoration: none; transition: border-color .25s var(--ease), color .25s var(--ease); }
.brand-hero__back:hover { border-color: var(--green-deep); color: var(--green-primary); }
.brand-hero a:focus-visible { outline: 3px solid var(--green-primary); outline-offset: 4px; }
.brand-about { max-width: 70ch; margin: 56px auto 0; line-height: 1.75; }

@media (max-width: 800px) {
  .brand-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 18px 0 28px; }
  .brand-hero__aside { justify-self: start; max-width: none; }
  .brand-hero__title img { height: 64px; }
}
