/* ============================================================
   VIIR — Produits naturels bretons
   Feuille de style unique du site vitrine provisoire.
   Design tokens issus des étiquettes produits (référence exacte).
   ============================================================ */

:root {
  /* Tokens communs aux deux univers */
  --ivoire: #F5F2EC;        /* fond général */
  --bloc: #EEE9DE;          /* encadrés, blocs */
  --or: #8A7A4A;            /* filets et ornements (traits fins uniquement) */
  --encre: #0D0D08;         /* texte principal */
  --encre-douce: #1A1A14;   /* texte secondaire */

  /* Univers 1 — gamme animale (vert) */
  --vert-nuit: #0D1F0A;     /* headers de section */
  --vert-bandeau: #1E3D10;  /* bandeau produit foin */
  --vert-clair: #97C459;
  --vert-eau: #5DCAA5;
  --vert-moyen: #7AAA45;

  /* Univers 2 — ingrédients naturels (bleu) */
  --marine: #042C53;        /* headers de section */
  --ardoise: #444441;       /* bandeau produit maërl */
  --bleu-clair: #85B7EB;
  --bleu-pale: #B5D4F4;

  /* Couleurs de bandeau propres à chaque étiquette (référence fournie) */
  --bandeau-paille: #96660F;
  --bandeau-lupin: #3F3C9B;

  /* Typographies */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Les ancres s'arrêtent sous le bandeau de navigation fixe */
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* Étiquette Montserrat majuscules espacées — utilisée partout pour les labels */
.label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Ornement « Bretagne · France » entre deux filets fins or */
.ornement {
  text-align: center;
  margin: 0 auto;
  max-width: 16rem;
}
.ornement hr {
  border: none;
  border-top: 1px solid var(--or);
  opacity: 0.55;
  margin: 0.65rem 3rem;
}
.ornement em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--or);
}

/* Apparition douce au défilement (activée par js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(138, 122, 74, 0.4);
}
.nav-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-marque {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  text-decoration: none;
  color: var(--encre);
}
.nav-marque sup { font-size: 0.55rem; letter-spacing: 0; }
.nav-liens {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-liens a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--encre-douce);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.nav-liens a:hover { border-color: var(--or); color: var(--encre); }

/* Bouton menu mobile (masqué sur grand écran) */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid rgba(138, 122, 74, 0.5);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

@media (max-width: 760px) {
  .nav-burger { display: block; }
  .nav-liens {
    /* Menu déroulant plein écran sous le bandeau */
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivoire);
    border-bottom: 1px solid rgba(138, 122, 74, 0.4);
    display: none;
  }
  .nav-liens.ouvert { display: flex; }
  .nav-liens li { border-top: 1px solid rgba(138, 122, 74, 0.25); }
  .nav-liens a {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}
.hero .surtitre {
  color: var(--or);
  margin: 0 0 1.2rem;
}
.hero-filets {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  width: min(30rem, 80vw);
}
.hero-filets::before, .hero-filets::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--or);
  opacity: 0.5;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.8rem, 16vw, 10rem);
  letter-spacing: 0.22em;
  /* Compense visuellement le letter-spacing du dernier caractère */
  text-indent: 0.22em;
  line-height: 1;
  margin: 1.4rem 0;
}
.hero h1 sup {
  font-size: 0.16em;
  letter-spacing: 0.05em;
  vertical-align: 2.2em;
  color: var(--encre-douce);
}
.hero .soustitre {
  color: var(--encre-douce);
  opacity: 0.8;
  margin: 1.2rem 0 0;
  font-size: 0.66rem;
}
.hero .baseline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  font-weight: 300;
  color: var(--encre-douce);
  margin: 2.4rem 0 0;
}

/* Badge d'annonce d'ouverture — encadré double filet or */
.badge-ouverture {
  margin-top: 3rem;
  padding: 1.4rem 2.2rem;
  border: 1px solid var(--or);
  outline: 1px solid rgba(138, 122, 74, 0.45);
  outline-offset: 5px;
  background: var(--bloc);
  max-width: 34rem;
}
.badge-ouverture .label { color: var(--vert-bandeau); display: block; letter-spacing: 0.22em; }
.badge-ouverture p {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--encre-douce);
}

/* ---------- Sections génériques ---------- */

.section { padding: 5.5rem 1.5rem; }
.section-etroite { max-width: 68rem; margin: 0 auto; }

/* En-tête de section pleine largeur (vert ou bleu marine) */
.bande-section {
  padding: 3.6rem 1.5rem;
  text-align: center;
  color: var(--ivoire);
}
.bande-section .label { opacity: 0.85; display: block; margin-bottom: 0.9rem; }
.bande-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0;
  line-height: 1.15;
}
.bande-verte { background: var(--vert-nuit); }
.bande-verte .label { color: var(--vert-clair); }
.bande-bleue { background: var(--marine); }
.bande-bleue .label { color: var(--bleu-clair); }

/* ---------- Section « Nos gammes » ---------- */

.gammes-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
}
@media (max-width: 760px) { .gammes-grille { grid-template-columns: 1fr; } }

.carte-gamme {
  display: block;
  text-decoration: none;
  color: var(--ivoire);
  text-align: center;
  padding: 3.6rem 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carte-gamme:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(13, 13, 8, 0.18); }
.carte-gamme::after {
  /* Filet or intérieur fin, comme l'encadrement des étiquettes */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(138, 122, 74, 0.6);
  pointer-events: none;
}
.carte-gamme-verte { background: var(--vert-nuit); }
.carte-gamme-bleue { background: var(--marine); }
.carte-gamme .label { display: block; margin-bottom: 1rem; opacity: 0.85; }
.carte-gamme-verte .label { color: var(--vert-clair); }
.carte-gamme-bleue .label { color: var(--bleu-clair); }
.carte-gamme h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.9rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.carte-gamme p {
  font-family: var(--serif);
  font-size: 1.05rem;
  opacity: 0.85;
  margin: 0 0 1.6rem;
}
.carte-gamme .decouvrir {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--or);
  padding-bottom: 0.25rem;
}

/* ---------- Cartes produit ---------- */

.produits-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2.4rem;
  max-width: 68rem;
  margin: 3.5rem auto 0;
}
.produits-grille.solo { max-width: 24rem; }

.carte-produit {
  background: var(--ivoire);
  border: 1px solid var(--or);
  outline: 1px solid rgba(138, 122, 74, 0.35);
  outline-offset: 4px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}
.carte-produit figure { margin: 0; }
.carte-produit .etiquette {
  width: 100%;
  height: auto;
  border: 1px solid rgba(138, 122, 74, 0.3);
}
.carte-produit-corps {
  padding: 1.6rem 0.6rem 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.carte-produit h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.carte-produit .sous-titre {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--or);
  display: block;
  margin-bottom: 1rem;
}
.carte-produit .description {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--encre-douce);
  margin: 0 0 1.4rem;
  flex: 1;
}

/* Pied de carte : badge bio + mention disponibilité */
.carte-produit-pied {
  border-top: 1px solid rgba(138, 122, 74, 0.35);
  padding-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.badge-bio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert-bandeau);
}
.badge-bio img { height: 3rem; width: auto; }
.bientot {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--encre-douce);
  border: 1px solid var(--or);
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
}

/* Note discrète sous une grille de produits (ex. précision maërl) */
.note-produits {
  max-width: 34rem;
  margin: 2.6rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--encre-douce);
  opacity: 0.85;
}

/* ---------- Section « Notre histoire » ---------- */

.histoire {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.histoire .label { color: var(--or); display: block; margin-bottom: 2.2rem; }
.histoire h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0 0 2.2rem;
}
.histoire p {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--encre-douce);
  margin: 0 0 1.6rem;
}
.histoire .ornement { margin-top: 3rem; }

/* ---------- Contact ---------- */

.contact {
  background: var(--bloc);
  border-top: 1px solid rgba(138, 122, 74, 0.4);
  border-bottom: 1px solid rgba(138, 122, 74, 0.4);
}
.contact-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.contact .label { color: var(--or); display: block; margin-bottom: 1.6rem; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin: 0 0 1.4rem;
}
.contact p {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--encre-douce);
  margin: 0 0 2rem;
}
.contact-email {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid var(--or);
  outline: 1px solid rgba(138, 122, 74, 0.4);
  outline-offset: 4px;
  padding: 1rem 1.8rem;
  display: inline-block;
  background: var(--ivoire);
  transition: background 0.25s ease;
  overflow-wrap: anywhere;
}
.contact-email:hover { background: #FFFFFF; }

/* ---------- Pied de page ---------- */

.footer {
  background: var(--vert-nuit);
  color: var(--ivoire);
  text-align: center;
  padding: 3.4rem 1.5rem 2.6rem;
}
.footer .marque {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  margin: 0 0 0.4rem;
}
.footer .marque sup { font-size: 0.45rem; }
.footer .ligne {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin: 0.9rem 0 0;
}
.footer nav {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(138, 122, 74, 0.5);
  display: inline-block;
  padding-left: 2rem;
  padding-right: 2rem;
}
.footer nav a {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivoire);
  opacity: 0.8;
  text-decoration: none;
  margin: 0 0.9rem;
}
.footer nav a:hover { opacity: 1; border-bottom: 1px solid var(--or); }

/* ---------- Page mentions légales ---------- */

.page-simple {
  max-width: 42rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}
.page-simple h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  text-align: center;
  margin: 0 0 0.8rem;
}
.page-simple .label { color: var(--or); display: block; text-align: center; margin-bottom: 3rem; }
.page-simple h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vert-bandeau);
  margin: 2.6rem 0 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(138, 122, 74, 0.35);
}
.page-simple p { margin: 0 0 0.9rem; color: var(--encre-douce); }
.page-simple a { color: var(--vert-bandeau); }
.retour-accueil {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--or);
  padding-bottom: 0.25rem;
}
