/* ============================================================
   VIIR · Accueil v2 (proposition du 08/10/2026)
   Complète css/styles.css, css/hero-foin.css et css/boutique.css
   sans les modifier. Préfixe « v2- » pour les classes de cette page.
   ============================================================ */

:root {
  /* Or plus soutenu pour les PETITS textes : l'or des filets (#8A7A4A)
     ne donne pas assez de contraste pour être lu facilement sur l'ivoire */
  --or-texte: #6B5E33;
}

/* Pas de bandeau au-dessus du menu sur cette page : les ancres s'arrêtent juste sous la navigation */
html { scroll-padding-top: 4.4rem; }

.nav-liens a[aria-current="page"] { border-color: var(--or); color: var(--encre); }

/* Montants « dès … € » écrits par js/livraison.js : jamais coupés en fin de ligne */
[data-port-des] { white-space: nowrap; }

/* Texte réservé aux lecteurs d'écran */
.v2-masque {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Focus clavier bien visible */
.v2 a:focus-visible,
.v2 button:focus-visible {
  outline: 2px solid var(--vert-bandeau);
  outline-offset: 3px;
}

/* Titres de section sur fond uni */
.v2-titre { text-align: center; max-width: 44rem; margin: 0 auto; }
.v2-titre .label { color: var(--or-texte); display: block; margin-bottom: 1rem; }
.v2-titre h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0;
}
.v2-titre h2 em { font-weight: 300; font-style: italic; }
.v2-titre p {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--encre-douce);
  margin: 0.9rem auto 0;
  max-width: 36rem;
}

/* Bouton principal : un peu plus grand que les boutons de la boutique */
.bq-btn.v2-btn {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  padding: 1.05rem 1.9rem;
}

.v2-note {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--encre-douce);
  margin: 1.6rem auto 0;
  max-width: 40rem;
}

/* ============================================================
   1. Premier écran
   La section garde les classes de l'accueil actuel (.hero-foin, .hf-scene…)
   pour que js/hero-foin.js anime la même prairie ; ici, la scène n'est plus
   épinglée : elle prend la hauteur de son contenu, en deux colonnes.
   ============================================================ */

.v2-hero.hero-foin.hf-actif { height: auto; }

.v2-hero.hero-foin > .hf-scene {
  position: relative;
  top: auto;
  height: auto;
  min-height: calc(100vh - 2.5rem);
  min-height: calc(100svh - 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  column-gap: clamp(2rem, 5vw, 5rem);
  /* en bas : la hauteur de la bande de foin, pour que le texte ne passe jamais dessus */
  padding: 5.8rem max(1.5rem, calc(50% - 34rem)) calc(17svh + 1.2rem);
  overflow: hidden;
}

/* Bande de foin en bas de l'écran (même photo que l'accueil actuel) */
.v2-hero .hf-foin { height: 17svh; }

/* Accroche */
.v2-accroche { position: relative; z-index: 4; max-width: 37rem; }
.v2-accroche > * { animation: v2-monte 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.v2-accroche > :nth-child(2) { animation-delay: 0.06s; }
.v2-accroche > :nth-child(3) { animation-delay: 0.14s; }
.v2-accroche > :nth-child(4) { animation-delay: 0.22s; }
.v2-accroche > :nth-child(5) { animation-delay: 0.28s; }
.v2-accroche > :nth-child(6) { animation-delay: 0.34s; }
@keyframes v2-monte {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.v2-surtitre { color: var(--or-texte); margin: 0 0 1.2rem; }
.v2-accroche h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
  color: var(--encre);
}
.v2-accroche h1 em { font-style: italic; color: var(--vert-bandeau); }
.v2-sous {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.3rem);
  line-height: 1.5;
  color: var(--encre-douce);
  margin: 0 0 1.4rem;
  max-width: 33rem;
}

/* Repère « Précommandes » : encadré fin, petit point vert */
.v2-precommande {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.7rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(138, 122, 74, 0.6);
  background: rgba(245, 242, 236, 0.85);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--vert-bandeau);
}
.v2-precommande::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--vert-moyen);
  box-shadow: 0 0 0 3px rgba(122, 170, 69, 0.25);
}

.v2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
}
.v2-lien {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vert-bandeau);
  border-bottom: 1px solid var(--or);
  padding: 0.4rem 0 0.3rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.v2-lien:hover { color: var(--encre); border-color: var(--vert-bandeau); }
.v2-tarifs {
  margin: 1.3rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--encre-douce);
}

/* Vignette « du champ au sachet » : colonne de droite, dans le flux */
.v2-hero .hf-vignette {
  position: relative;
  z-index: 4;
  inset: auto;
  transform: none;
  width: 100%;
  max-width: 27rem;
  justify-self: end;
}
.v2-hero.hf-pret .hf-vignette { animation: hf-monte 1s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.v2-hero .hf-legende { color: var(--or-texte); }

/* Sans animation (JavaScript absent ou animations réduites) : l'étiquette à la place de la vignette */
.v2-hero:not(.hf-actif) .hf-vignette { display: none; }
.v2-hero:not(.hf-actif) > .hf-scene > .hf-produit {
  width: min(16rem, 70vw);
  margin: 0;
  justify-self: center;
}
.v2-hero:not(.hf-actif) .hf-foin { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .v2-accroche > * { animation: none; }
}

/* Ordinateurs portables à écran bas : le premier écran se resserre pour tenir en entier */
@media (min-width: 861px) and (max-height: 760px) {
  .v2-hero.hero-foin > .hf-scene { padding-top: 5.2rem; padding-bottom: calc(15svh + 1rem); }
  .v2-hero .hf-foin { height: 15svh; }
  .v2-accroche h1 { font-size: clamp(2.1rem, 3.5vw, 2.85rem); margin-bottom: 1rem; }
  .v2-surtitre { margin-bottom: 0.9rem; }
  .v2-sous { margin-bottom: 1.1rem; }
  .v2-precommande { margin-bottom: 1.3rem; }
  .v2-tarifs { margin-top: 1rem; }
  .v2-hero .hf-vignette { max-width: 24rem; }
}

/* ============================================================
   2. Les deux sachets et leurs prix
   ============================================================ */

.v2-formats {
  padding: 4.2rem 1.5rem 4rem;
  border-top: 1px solid rgba(138, 122, 74, 0.35);
}

.v2-sachets {
  list-style: none;
  margin: 2.4rem auto 0;
  padding: 0;
  max-width: 60rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.v2-sachet a {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.3rem;
  height: 100%;
  padding: 0.9rem;
  text-decoration: none;
  color: inherit;
  background: var(--ivoire);
  border: 1px solid var(--or);
  outline: 1px solid rgba(138, 122, 74, 0.35);
  outline-offset: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.v2-sachet a:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(13, 31, 10, 0.45); }
.v2-sachet a:focus-visible { outline: 2px solid var(--vert-bandeau); outline-offset: 4px; }
.v2-sachet figure {
  margin: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(138, 122, 74, 0.3);
  background: var(--bloc);
}
.v2-sachet img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.v2-sachet .bq-tag { top: 0.6rem; left: 0.6rem; right: 0.6rem; width: max-content; max-width: calc(100% - 1.2rem); line-height: 1.4; }
/* Étiquette or : teinte plus soutenue pour que le texte ivoire reste lisible */
.v2-sachet .bq-tag-or { background: var(--or-texte); }

.v2-sachet-corps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0.2rem 0.2rem;
}
.v2-sachet h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0;
}
.v2-duree { color: var(--or-texte); font-size: 0.58rem; letter-spacing: 0.18em; line-height: 1.6; margin: 0; }
.v2-prix { margin: 0.6rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.v2-prix b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--vert-bandeau);
}
.v2-prix span {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--encre-douce);
}
.v2-choisir {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivoire);
  background: var(--vert-bandeau);
  padding: 0.6rem 0.95rem;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.v2-sachet a:hover .v2-choisir { background: var(--vert-nuit); }

.v2-formats .bq-frais { margin-top: 2.2rem; color: var(--vert-bandeau); }
.v2-action { text-align: center; margin: 1.8rem 0 0; }

/* ============================================================
   3. Pourquoi ce foin (bande vert nuit)
   ============================================================ */

.v2-pourquoi {
  background: var(--vert-nuit);
  color: var(--ivoire);
  padding: 4.4rem 1.5rem 4.6rem;
}
.v2-pourquoi .v2-titre .label { color: var(--vert-clair); }
.v2-pourquoi .v2-titre p { color: rgba(245, 242, 236, 0.86); }

.v2-points {
  list-style: none;
  margin: 2.6rem auto 0;
  padding: 0;
  max-width: 68rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}
.v2-points li { display: flex; flex-direction: column; }
.v2-points img, .v2-points .v2-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(138, 122, 74, 0.8);
  outline: 1px solid rgba(138, 122, 74, 0.4);
  outline-offset: 4px;
  margin-bottom: 1.3rem;
  filter: saturate(0.9);
}
.v2-points .label { display: block; color: var(--vert-clair); font-size: 0.58rem; margin-bottom: 0.5rem; }
.v2-points h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--ivoire);
}
.v2-points p {
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.55;
  color: rgba(245, 242, 236, 0.86);
  margin: 0;
}

/* ============================================================
   4. Pour qui
   ============================================================ */

.v2-animaux { padding: 4.4rem 1.5rem 4rem; }
.v2-animaux-liste {
  list-style: none;
  margin: 2.4rem auto 0;
  padding: 0;
  max-width: 68rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.v2-animaux-liste li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 0.8rem 1.1rem;
  text-align: center;
  background: var(--ivoire);
  border: 1px solid var(--or);
  outline: 1px solid rgba(138, 122, 74, 0.35);
  outline-offset: 4px;
}
.v2-animaux-liste figure {
  margin: 0 0 0.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(138, 122, 74, 0.3);
}
.v2-animaux-liste img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.v2-animaux-liste h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
}
.v2-animaux-liste .label { color: var(--or-texte); font-size: 0.55rem; letter-spacing: 0.16em; line-height: 1.6; }
.v2-animaux-liste p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--encre-douce);
  margin: 0.2rem 0 0;
}

/* ============================================================
   5. Livraison et garanties (bande courte) et contact
   ============================================================ */

.v2-garanties {
  background: var(--bloc);
  border-top: 1px solid rgba(138, 122, 74, 0.4);
  border-bottom: 1px solid rgba(138, 122, 74, 0.4);
  padding: 2.2rem 1.5rem 2.4rem;
}
.v2-garanties h2 {
  text-align: center;
  color: var(--or-texte);
  font-size: 0.66rem;
  margin: 0 0 1.4rem;
}
.v2-garanties ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 68rem;
  display: grid;
  /* la dernière colonne, plus large, garde les six logos de paiement sur une ligne */
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: 1.2rem 2rem;
}
.v2-garanties li {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--encre-douce);
  padding-left: 1rem;
  border-left: 1px solid rgba(138, 122, 74, 0.5);
}
.v2-garanties li b {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-bandeau);
  margin-bottom: 0.35rem;
}
.v2-garanties .bq-logos-petits { margin-top: 0.2rem; gap: 0.35rem; }

.v2-contact {
  text-align: center;
  padding: 3.6rem 1.5rem 3.8rem;
}
.v2-contact .label { display: block; color: var(--or-texte); margin-bottom: 0.9rem; }
.v2-contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin: 0 0 0.8rem;
}
.v2-contact p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--encre-douce);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}

/* Pied de page : le lien vers les gîtes, discret */
.v2-univers { margin: 1.6rem 0 0; }
.v2-univers a {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-clair);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}
.v2-univers a:hover { border-color: var(--vert-clair); }
.v2 .footer nav a { display: inline-block; margin: 0.3rem 0.9rem; }

/* ============================================================
   Écrans moyens et petits
   ============================================================ */

@media (max-width: 960px) {
  .v2-animaux-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-garanties ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  /* Premier écran : une colonne, la vignette passe sous le bouton */
  .v2-hero.hero-foin > .hf-scene {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.4rem;
    min-height: 0;
    /* en bas : la bande de foin, sous la légende de la vignette */
    padding: 5.6rem 1.25rem calc(11svh + 0.6rem);
  }
  .v2-hero .hf-vignette { justify-self: center; width: min(74vw, 19rem); }
  .v2-hero .hf-foin { height: 13svh; }

  .v2-sachets { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; max-width: 34rem; }

  .v2-points { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; max-width: 34rem; }
  .v2-points li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 1.1rem;
    align-items: start;
  }
  .v2-points img, .v2-points .v2-media { aspect-ratio: 1 / 1; margin: 0.3rem 0 0; }
  .v2-points h3 { font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .v2-accroche h1 { font-size: clamp(1.95rem, 8.6vw, 2.4rem); line-height: 1.1; margin-bottom: 1rem; }
  .v2-surtitre { margin-bottom: 0.9rem; }
  .v2-sous { font-size: 1.06rem; margin-bottom: 1.1rem; }
  .v2-precommande { font-size: 0.56rem; letter-spacing: 0.12em; padding: 0.5rem 0.75rem; margin-bottom: 1.3rem; }
  .v2-actions { gap: 0.9rem 1.4rem; }
  .v2-tarifs { font-size: 0.98rem; margin-top: 1rem; }

  .v2-formats, .v2-pourquoi, .v2-animaux { padding-top: 3.4rem; padding-bottom: 3.4rem; }
  .v2-formats { padding-left: 1rem; padding-right: 1rem; }
  .v2-sachet a { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.9rem; padding: 0.7rem; }
  .v2-sachet h3 { font-size: 1.8rem; }
  .v2-prix b { font-size: 1.9rem; }
  .v2-sachet .bq-tag { font-size: 0.5rem; letter-spacing: 0.14em; padding: 0.35rem 0.5rem; top: 0.45rem; left: 0.45rem; }
  .v2-choisir { font-size: 0.54rem; letter-spacing: 0.14em; padding: 0.55rem 0.7rem; }

  .v2-animaux { padding-left: 1rem; padding-right: 1rem; }
  .v2-animaux-liste { gap: 1rem; }
  .v2-animaux-liste li { padding: 0.55rem 0.55rem 0.9rem; }
  .v2-animaux-liste h3 { font-size: 1.22rem; }
  .v2-animaux-liste p { font-size: 0.94rem; }

  .v2-garanties ul { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* Un seul format en vente (09/10/2026) : le sachet seul, centré */
.v2-sachets:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 26rem; }

/* Pour qui : cinq animaux depuis le 30/10/2026 (tortue de terre ajoutée), sur une ligne en grand écran */
@media (min-width: 961px) {
  .v2-animaux-liste { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 76rem; }
}
