/* ============================================================
   BIGUINE — Pages : blocs + accueil
   ============================================================ */

/* route transition */
.route-fade { animation: routeFade .6s var(--ease) both; }
@keyframes routeFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .route-fade { animation: none; } }

/* — Section head — */
.sechead { margin-bottom: clamp(2rem,4vw,3.5rem); }
.sechead__title { margin-top: 0.55rem; max-width: 18ch; text-wrap: balance; }
.sechead--between { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sechead--center { text-align: center; }
.sechead--center .sechead__title { margin-inline: auto; }
.sechead__link { white-space: nowrap; }

/* — Page hero (interior) : bannière contenue, image + texte en surimpression — */
.pagehero {
  position: relative;
  margin: calc(var(--nav-h) + clamp(0.75rem, 2vh, 1.75rem)) var(--gutter) 0;
  border-radius: 24px;
  /* Va jusqu'à la ligne de flottaison : pas de marge réservée sous le hero. */
  height: min(80svh, 760px, var(--illu-max));
  min-height: min(540px, var(--illu-max));
  display: flex; align-items: center;
  /* Fond sombre de secours : sans image à la une, .pagehero__media/.pagehero__scrim
     ne sont pas rendus et le texte (couleur --paper, donc clair) devient invisible
     sur le fond clair de la page. */
  background: var(--noir);
  color: var(--paper); overflow: hidden;
}
.pagehero__media { position: absolute; inset: 0; z-index: 0; }
.pagehero__ph { width: 100%; height: 100%; border: 0; }
img.pagehero__ph { display: block; object-fit: cover; }
/* Variante deux parties (ex. Produits) : texte sur fond clair à gauche, visuel à droite. */
/* Double classe : l'emporte sur les hauteurs fixes des media queries de .pagehero. */
.pagehero.pagehero--split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; height: auto; min-height: 0; }
.pagehero--split .pagehero__media { position: relative; inset: auto; grid-column: 2; grid-row: 1; align-self: stretch; aspect-ratio: 17 / 12; }
.pagehero--split .pagehero__inner { grid-column: 1; grid-row: 1; }
.pagehero--split .pagehero__txt { max-width: 46ch; }
/* Contenu collé au visuel d'intro : pas de grand espace de section en dessous. */
.pagehero--split + .section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.pagehero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,0.36), rgba(20,17,14,0.06) 38%, rgba(20,17,14,0.62)); }
.pagehero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.2rem, 5vw, 4rem); }
.pagehero__txt { max-width: 60ch; }
.pagehero__title { margin-top: 0.6rem; color: var(--paper); }
.pagehero__intro { margin-top: 1.4rem; max-width: 52ch; color: rgba(245,241,234,0.86); margin-bottom: 0px; }
.pagehero__detail { margin-top: 0.9rem; max-width: 46ch; font-size: var(--fs-body); line-height: 1.65; color: rgba(245,241,234,0.62); }
.pagehero__intro strong, .pagehero__detail strong { color: var(--accent); font-weight: 600; }
.pagehero__logos { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(1.1rem, 3vw, 1.75rem); margin-top: 2.2rem; padding-top: 1.9rem; }
.pagehero__logos::before { content: ""; position: absolute; top: 0; left: 50%; width: 40px; height: 1px; background: currentColor; opacity: 0.35; transform: translateX(-50%); }
.pagehero__logos a { display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 1.6rem; border-radius: 999px; background: var(--ink); box-shadow: 0 14px 28px -18px rgba(20,17,14,0.55); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.pagehero__logos a:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -16px rgba(20,17,14,0.6); }
.pagehero__logos img { height: 24px; width: auto; }
.pagehero__logos svg { height: 24px; width: auto; color: var(--paper); }
.pagehero__logos .pagehero__logo--light { background: var(--paper); box-shadow: 0 14px 28px -18px rgba(20,17,14,0.28); }
.pagehero__logos .pagehero__logo--light svg { color: var(--ink); }

/* Variante claire : en attendant le visuel à la une, fond clair + typo noire au lieu du fond noir */
.pagehero--light { background: var(--paper-deep); color: var(--ink); }
.pagehero--light .pagehero__title { color: var(--ink); }
.pagehero--light .pagehero__intro { color: rgba(26,23,20,0.72); }
.pagehero--light .pagehero__detail { color: rgba(26,23,20,0.58); }

/* Variante texte centré (ex. Savoir-faire, sans visuel à la une) */
/* Hauteur libre : le texte + les logos ne tiennent pas dans la hauteur fixe sur mobile
   (titre et logos étaient rognés par l'overflow:hidden). Double classe pour passer
   devant les hauteurs des media queries de .pagehero. */
.pagehero.pagehero--center { height: auto; }
.pagehero--center .pagehero__inner { display: flex; justify-content: center; text-align: center; }
.pagehero--center .pagehero__txt { max-width: 62ch; }
.pagehero--center .pagehero__intro, .pagehero--center .pagehero__detail { margin-inline: auto; }
.pagehero--center .eyebrow { position: relative; display: inline-block; padding-bottom: 1rem; }
.pagehero--center .eyebrow::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 1px; background: currentColor; opacity: 0.4; transform: translateX(-50%); }

/* Variante texte en bas à gauche (ex. La Marque) */
.pagehero--bottom { align-items: flex-end; }
.pagehero--bottom .pagehero__scrim { background: linear-gradient(to top, rgba(20,17,14,0.88) 0%, rgba(20,17,14,0.52) 50%, rgba(20,17,14,0.18) 100%); }

/* — CTA band — */
.ctaband__inner { text-align: center; max-width: 60ch; margin-inline: auto; }
.ctaband__title { margin-top: 0.7rem; text-wrap: balance; }
.ctaband__text { margin: 1.4rem auto 0; max-width: 46ch; }
.ctaband__actions { display: flex; gap: 2rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 2.4rem; }

/* — Split feature — */
.split-wrap { }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.split--flip .split__media { order: 2; }
.split__txt { max-width: 46ch; }
.split__txt h3 { margin: 0.6rem 0 1.2rem; }
.split__media .ph { width: 100%; }

/* ============================================================
   ACCUEIL
   ============================================================ */
.hero {
  position: relative;
  margin: calc(var(--nav-h) + clamp(0.75rem, 2vh, 1.75rem)) var(--gutter) 0;
  border-radius: 24px;
  height: min(80svh, 760px, var(--illu-max));
  min-height: min(540px, var(--illu-max));
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.hero__ph { width: 100%; height: 100%; border: 0; position: relative; }
.hero__phinner { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 1.4rem; pointer-events: none; }
.hero__phicon { width: 76px; height: 76px; border: 1px solid rgba(245,241,234,0.45); border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,14,0.35) 0%, rgba(20,17,14,0.05) 35%, rgba(20,17,14,0.55) 100%); }

.hero__content { position: relative; z-index: 2; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 0 clamp(1rem,4vw,2rem) clamp(2.6rem,7vh,4.5rem); }
.hero__eyebrow { margin-bottom: 1.1rem; }
.hero__title { font-size: var(--fs-h1); line-height: 1.0; }
.hero__sub { font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 44ch; margin: 1.3rem auto 1.9rem; color: rgba(245,241,234,0.86); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* entrance */
.hero__eyebrow, .hero__title, .hero__sub, .hero__actions { opacity: 0; transform: translateY(26px); animation: heroIn .95s var(--ease) forwards; }
.hero__title { animation-delay: .12s; } .hero__sub { animation-delay: .24s; } .hero__actions { animation-delay: .36s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,.hero__title,.hero__sub,.hero__actions{animation:none;opacity:1;transform:none;}
}

/* manifesto */
.manifesto__txt { font-family: var(--serif); font-size: clamp(1.2rem,2.2vw,1.8rem); line-height: 1.35; margin: 1.4rem 0 2rem; text-wrap: balance; }

/* univers */
.univers { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.univers__lead { position: sticky; top: 110px; }
.univers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem,2.5vw,2rem); }
.univers__card a { display: block; }
.univers__card .ph { transition: filter .5s var(--ease); border-radius: 8px; }
.univers__card a:hover .ph { filter: brightness(0.94); }
.univers__meta { padding-top: 1.1rem; }
.univers__num { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.univers__meta h3 { margin: 0.4rem 0 0.5rem; }
.univers__meta p { color: var(--ink-soft); font-size: 0.98rem; max-width: 30ch; }

/* collections strip */
/* Grille et taille de cartes reprises de .univers__grid (cartes 4:5 comme « Trois métiers »). */
.collstrip__item a, .collstrip__item button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.collstrip__item img, .collstrip__item .ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 8px; transition: filter .5s var(--ease); }
.collstrip__item a:hover img, .collstrip__item button:hover img { filter: brightness(0.94); }
.collstrip__item h3 { margin: 1.1rem 0 0; }
.collstrip__all { align-self: start; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6rem; aspect-ratio: 4 / 5; padding: 1.6rem; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease); }
.collstrip__all-txt { font-size: var(--fs-h3); line-height: 1.15; }
.collstrip__all .arrow { font-size: 1.4rem; transition: transform .4s var(--ease); }
.collstrip__all:hover { background: var(--ink); color: var(--paper); }
.collstrip__all:hover .arrow { transform: translateX(6px); }

/* history timeline (la-marque) */
.history-item { display: grid; grid-template-columns: 6rem 1fr; gap: 2rem; align-items: start; }
.history-item__year { text-align: right; padding-top: 0.2rem; }
.history-item__year span { font-family: var(--sans); font-size: var(--fs-eyebrow); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--accent); }

/* instagram band */
.instaband__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: 1.4rem;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink);
}

/* — Responsive — */
@media (max-width: 1080px) {
  .univers { grid-template-columns: 1fr; }
  .univers__lead { position: static; }
  .hero, .pagehero { margin-top: calc(76px + 0.9rem); }
}
@media (max-width: 760px) {
  .hero__phinner { top: 30%; }
  .hero__phicon { width: 60px; height: 60px; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .univers__grid { grid-template-columns: 1fr; gap: 2rem; }
  .collstrip__all { aspect-ratio: auto; min-height: 7rem; }
  .pagehero { margin-top: calc(76px + 0.75rem); border-radius: 16px; height: calc(100svh - 76px - 0.75rem); min-height: min(380px, var(--illu-max)); }
  /* Mobile : cadre au format de la vidéo verticale (9:16), dans la limite de l'écran.
     Quand la hauteur d'écran le limite, il rétrécit en largeur : marges auto pour
     rester centré, la gouttière latérale servant de largeur maximale. */
  .hero { margin: calc(76px + 0.75rem) auto 0; max-width: calc(100% - 2 * var(--gutter)); border-radius: 16px; height: auto; min-height: 0; aspect-ratio: 9 / 16; max-height: calc(100svh - 76px - 1.5rem); }
  .ctaband__actions { gap: 1.2rem; }
  .history-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .history-item__year { text-align: left; padding-top: 0; }
}

@media (max-width: 760px) {
  .pagehero.pagehero--split { grid-template-columns: 1fr; }
  .pagehero--split .pagehero__media { grid-column: 1; grid-row: 1; }
  .pagehero--split .pagehero__inner { grid-column: 1; grid-row: 2; }
  .pagehero--split .pagehero__txt { max-width: none; }
}
