/* ================================================================
   MAISON LORYNA — VERSION 5 — "Continuité Nettoyée"

   V5 est une version nettoyée et corrigée de la V4 :
   — Contrastes texte améliorés (citation, accroche, desc, surtitre)
   — Section équipe entièrement préfixée .m5-
   — Bordure mobile des cards : encre cohérente avec fond clair
   — Bridges : comportement unifié (height:0 desktop et mobile)
   — Commentaires CSS mis à jour
   — Liens de version incluent V4

   Préfixe .m5- pour isolation totale.
   ================================================================ */

/* ── Variables V5 ───────────────────────────────────────────────── */
:root {
  --m5-parchemin:    #F7F4EF;
  --m5-parchemin-2:  #EFEBE3;
  --m5-rouge:        #C0392B;
  --m5-rouge-fonce:  #7A1520;
  --m5-bleu:         #0D2035;
  --m5-bleu-mid:     #1B3A5C;
  --m5-bleu-clair:   #8CB5C8;
  /* L'encre : valeur exacte — utilisée partout comme fond sombre */
  --m5-encre:        #0E0C0A;
  /* Légèrement plus claire : pour les nuances de layering dans les sections sombres */
  --m5-encre-2:      #1A1510;
  --m5-gris:         #6B6560;
  --m5-gris-clair:   rgba(14,12,10,0.12);
  --m5-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --m5-ease-long:    cubic-bezier(0.16, 1, 0.3, 1);
}


/* ── Corps ──────────────────────────────────────────────────────── */
body.m5-page {
  background: var(--m5-parchemin);
  color: var(--m5-encre);
  -webkit-font-smoothing: antialiased;
}

body.m5-page .page-content { padding-top: 0; }


/* ================================================================
   NAVIGATION
   ================================================================ */
body.m5-page .m5-nav {
  background: transparent;
  box-shadow: none;
  transition: background 0.6s ease, box-shadow 0.6s ease, border-bottom 0.6s ease;
  border-bottom: 1px solid transparent;
}

body.m5-page .m5-nav .m5-nav-logo {
  color: var(--m5-encre);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  transition: color 0.4s ease;
}

body.m5-page .m5-nav .nav-links a {
  color: rgba(14,12,10,0.5);
  transition: color 0.3s ease;
}
body.m5-page .m5-nav .nav-links a:hover {
  color: var(--m5-encre);
  background: transparent;
}

body.m5-page .m5-nav .hamburger { color: var(--m5-encre); }

body.m5-page .m5-nav.m5-nav-scrolled {
  background: rgba(247,244,239,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--m5-gris-clair);
  border-bottom: 1px solid var(--m5-gris-clair);
}

body.m5-page .nav-mobile {
  background: var(--m5-parchemin);
  border-top: 1px solid var(--m5-gris-clair);
}
body.m5-page .nav-mobile a { color: var(--m5-encre); opacity: 0.7; }
body.m5-page .nav-mobile a:hover { opacity: 1; background: rgba(14,12,10,0.04); }


/* ── Dots nav ───────────────────────────────────────────────────── */
.m5-dots-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  animation: m5-apparaitre 1s 2s ease forwards;
}

@keyframes m5-apparaitre { to { opacity: 1; } }

.m5-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(14,12,10,0.2);
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}
.m5-dot:hover,
.m5-dot--actif {
  background: var(--m5-rouge);
  transform: scale(1.4);
}


/* ================================================================
   OUVERTURE — Hero
   ================================================================ */
.m5-ouverture {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--m5-parchemin);
}

.m5-filigrane {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-weight: 100;
  font-size: clamp(12vw, 20vw, 28vw);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.052);
  text-stroke: 1px rgba(14,12,10,0.052);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.m5-ouv-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  pointer-events: none;
}

.m5-ouv-photo--1 {
  background-position: center 40%;
  opacity: 0.07;
  filter: grayscale(1) contrast(0.78);
  transform: scale(1.04);
  animation: m5-respire-a 28s ease-in-out infinite alternate;
}
.m5-ouv-photo--2 {
  background-position: 75% center;
  opacity: 0.038;
  filter: grayscale(1) blur(1.5px) contrast(0.72);
  transform: scale(1.07) translateX(4%);
  animation: m5-respire-b 34s ease-in-out infinite alternate;
}
.m5-ouv-photo--3 {
  background-position: 15% 65%;
  opacity: 0.025;
  filter: grayscale(1) blur(4px) contrast(0.68);
  transform: scale(1.1) translateX(-3%);
  animation: m5-respire-c 40s ease-in-out infinite alternate;
}

@keyframes m5-respire-a {
  from { transform: scale(1.04); }
  to   { transform: scale(1.065); }
}
@keyframes m5-respire-b {
  from { transform: scale(1.07) translateX(4%); }
  to   { transform: scale(1.04) translateX(2%); }
}
@keyframes m5-respire-c {
  from { transform: scale(1.1) translateX(-3%); }
  to   { transform: scale(1.06) translateX(-1%); }
}

.m5-ouv-contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 0 3rem;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 2.5rem;
}

.m5-ouv-haut { text-align: right; }

.m5-ouv-surtitre {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(14,12,10,0.3);
  animation: m5-glisse-bas 1.2s ease both;
}

.m5-ouv-titre-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.m5-filet-trace {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--m5-rouge), rgba(192,57,43,0.18));
  transition: width 1.2s var(--m5-ease-long);
}
.m5-filet-trace--actif { width: 100%; }

.m5-ouv-titre {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.m5-mot-loryna {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 12rem);
  color: var(--m5-rouge);
  letter-spacing: -0.02em;
  line-height: 0.92;
  animation: m5-glisse-bas 1.4s 0.1s ease both;
  display: block;
}

.m5-mot-maison {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 2.2rem);
  color: rgba(14,12,10,0.45);
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
  order: -1;
  animation: m5-glisse-bas 1.2s ease both;
}

.m5-ouv-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  animation: m5-glisse-bas 1.8s 0.35s ease both;
}

.m5-ouv-univers {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(14,12,10,0.4);
  margin: 0;
}

.m5-sep { color: var(--m5-rouge); opacity: 0.6; }

.m5-decouvrir {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: rgba(14,12,10,0.38);
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.m5-decouvrir:hover { color: var(--m5-rouge); }

.m5-fleche-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.m5-fleche-ligne {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(14,12,10,0.2), rgba(14,12,10,0.04));
  animation: m5-fil-pulse 2.4s ease-in-out infinite;
}

@keyframes m5-fil-pulse {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  60%       { transform: scaleY(1);   opacity: 1; }
}

.m5-fleche-scroll i {
  font-size: 0.6rem;
  animation: m5-bounce 2.4s ease-in-out infinite;
}

@keyframes m5-bounce {
  0%, 100% { transform: translateY(0); }
  60%       { transform: translateY(4px); }
}

.m5-version-links {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  gap: 1.8rem;
  z-index: 3;
}

.m5-version-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(14,12,10,0.2);
  text-decoration: none;
  transition: color 0.3s ease;
}
.m5-version-link:hover { color: var(--m5-rouge); }

@keyframes m5-glisse-bas {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   MARQUEE
   ================================================================ */
.m5-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--m5-gris-clair);
  padding: 1.1rem 0;
  background: var(--m5-parchemin);
}

.m5-marquee-piste {
  display: inline-flex;
  white-space: nowrap;
  animation: m5-scroll-marquee 40s linear infinite;
  will-change: transform;
}

@keyframes m5-scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.m5-marquee-texte {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(14,12,10,0.28);
  padding-right: 3rem;
}


/* ================================================================
   PONTS DE TRANSITION — Séparateurs entre sections
   V5 : cohérence totale, height:0 sur tous les breakpoints.
   Les cards claires s'enchaînent naturellement avec le parchemin.
   ================================================================ */
.m5-bridge {
  height: 0;
  pointer-events: none;
}

.m5-bridge--to-dark,
.m5-bridge--to-light {
  background: transparent;
}


/* ================================================================
   LES UNIVERS — V5 : Colonnes éditoriales typographiques
   ─────────────────────────────────────────────────────────────────
   Fond beige/clair — continuité visuelle avec le hero et la page.
   Photos en filigrane (grayscale très atténué) — matière de fond.
   Numéros en vh — restent dans le cadre.
   Catégorie en stroke sombre lisible.
   Brand "Loryna" : couleur chromatique forte sur fond clair.
   ================================================================ */
.m5-univers {
  display: flex;
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--m5-parchemin);
  border-top: 1px solid var(--m5-gris-clair);
  border-bottom: 1px solid var(--m5-gris-clair);
}

/* ── Territoire individuel ─────────────────────────────────────── */
.m5-territoire {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    flex       1.0s cubic-bezier(0.16, 1, 0.3, 1),
    filter     0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Séparateur architectural entre les colonnes — encre sur fond clair */
.m5-territoire + .m5-territoire {
  border-left: 1px solid rgba(14,12,10,0.07);
}

.m5-territoire:focus-visible {
  outline: 2px solid rgba(192,57,43,0.55);
  outline-offset: -2px;
}

/* ── Expansion CSS :has() ──────────────────────────────────────── */
.m5-univers:has(.m5-t--restaurant:hover) .m5-t--restaurant { flex: 2.4; }
.m5-univers:has(.m5-t--epicerie:hover)   .m5-t--epicerie   { flex: 2.4; }
.m5-univers:has(.m5-t--coming:hover)     .m5-t--coming     { flex: 2.4; }

/* Inactifs sur fond clair : légère désaturation + assombrissement doux */
.m5-univers:has(.m5-t--restaurant:hover) .m5-t--epicerie,
.m5-univers:has(.m5-t--restaurant:hover) .m5-t--coming  { flex: 0.8; filter: brightness(0.90) saturate(0.40) blur(0.5px); }

.m5-univers:has(.m5-t--epicerie:hover)   .m5-t--restaurant,
.m5-univers:has(.m5-t--epicerie:hover)   .m5-t--coming  { flex: 0.8; filter: brightness(0.90) saturate(0.40) blur(0.5px); }

.m5-univers:has(.m5-t--coming:hover)     .m5-t--restaurant,
.m5-univers:has(.m5-t--coming:hover)     .m5-t--epicerie { flex: 0.8; filter: brightness(0.90) saturate(0.40) blur(0.5px); }

/* ── Fond photographique — traitement éditorial sur fond clair ────
   Même philosophie que les photos du hero : très atténuées, noir & blanc.
   Elles apportent de la matière et de la profondeur sans dominer
   le système typographique clair de la V5.
   Positionnées dans le tiers supérieur (derrière le numéro).
   ──────────────────────────────────────────────────────────────── */
.m5-t-fond {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.09;
  filter: grayscale(1) contrast(0.80) brightness(0.95);
  transform: scale(1.05);
  transition: transform 14s ease, opacity 1.0s ease;
  z-index: 1;
}
.m5-territoire:hover .m5-t-fond {
  opacity: 0.14;
  transform: scale(1.0);
  transition: transform 10s ease, opacity 0.9s ease;
}

/* Images par univers */
.m5-t--restaurant .m5-t-fond {
  background-image: url('../../../assets/images/restaurant/accueil/IMG_8948-edited-1.jpg');
  background-position: center 25%;
}

.m5-t--epicerie .m5-t-fond {
  background-image: url('../../../assets/images/restaurant/galerie/IMG_9230.jpg');
  background-position: center 35%;
}

/* Coming : pas d'image — le vide éditorial */
.m5-t--coming .m5-t-fond {
  display: none;
}

/* ── Grain naturel — texture papier/impression ─────────────────── */
.m5-t-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.032;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  /* multiply : assombrit légèrement sur fond clair → sensation papier/offset */
  mix-blend-mode: multiply;
}

/* ── Numéro géant — colonne vertébrale architecturale ─────────────
   Dimensionné en vh : proportionnel à la hauteur de la section.
   Même registre stroke que le filigrane "MAISON" du hero.
   ──────────────────────────────────────────────────────────────── */
.m5-t-numero {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(9rem, 29vh, 40vh);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.052);
  text-stroke: 1px rgba(14,12,10,0.052);
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 1.2s ease, transform 0.9s var(--m5-ease-long);
}

.m5-territoire:hover .m5-t-numero {
  -webkit-text-stroke-color: rgba(14,12,10,0.10);
  transform: translateX(-50%) translateY(-6px);
}

/* ── Corps textuel — ancré en bas de la carte ──────────────────── */
.m5-t-corps {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.8rem 3.2rem;
  background: linear-gradient(
    to top,
    rgba(247,244,239,1.00) 0%,
    rgba(247,244,239,0.92) 28%,
    rgba(247,244,239,0.55) 54%,
    transparent           78%
  );
  color: var(--m5-encre);
  overflow: hidden;
}

/* ── Catégorie — label en stroke, élément graphique principal ──────
   Stroke sombre sur fond clair : lisible et cohérent avec les autres
   éléments outline de la page (filigrane hero, bg-texts).
   ──────────────────────────────────────────────────────────────── */
.m5-t-categorie {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 4.2rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.26);
  text-stroke: 1px rgba(14,12,10,0.26);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: -webkit-text-stroke-color 0.8s ease, letter-spacing 0.8s var(--m5-ease-long);
}

.m5-territoire:hover .m5-t-categorie {
  -webkit-text-stroke-color: rgba(14,12,10,0.65);
  letter-spacing: 0.23em;
}

/* Filet d'ancrage rouge — même objet graphique que le filet hero */
.m5-t-filet-brand {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--m5-rouge), rgba(192,57,43,0.22));
  margin-bottom: 0.95rem;
  transition: width 0.7s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-filet-brand { width: 46px; }

/* ── Brand wrap — conteneur pour le double titre ───────────────── */
.m5-t-brand-wrap {
  position: relative;
  margin-bottom: 0.35rem;
  overflow: visible;
}

/* Titre bg LORYNA — outline discret, Playfair = cohérence avec le titre principal */
.m5-t-brand-bg {
  position: absolute;
  bottom: -0.1em;
  left: -0.02em;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(4rem, 10.5vh, 14vh);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.055);
  text-stroke: 1px rgba(14,12,10,0.055);
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: -webkit-text-stroke-color 0.9s ease;
}
.m5-territoire:hover .m5-t-brand-bg {
  -webkit-text-stroke-color: rgba(14,12,10,0.11);
}

/* Brand principal — au premier plan */
.m5-t-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 6rem);
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 1;
  transition: transform 0.9s var(--m5-ease-long), letter-spacing 0.9s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-brand {
  transform: translateY(-4px);
  letter-spacing: 0.02em;
}

/* Signatures chromatiques par univers */
/* Restaurant : rouge exact du hero LORYNA */
.m5-t--restaurant .m5-t-brand {
  color: rgba(192,57,43,0.75);
  transition: color 0.8s ease, transform 0.9s var(--m5-ease-long), letter-spacing 0.9s var(--m5-ease-long);
}
.m5-t--restaurant:hover .m5-t-brand { color: var(--m5-rouge); }

/* Épicerie : bleu-mid — lisible sur parchemin */
.m5-t--epicerie .m5-t-brand {
  color: rgba(27,58,92,0.62);
  transition: color 0.8s ease, transform 0.9s var(--m5-ease-long), letter-spacing 0.9s var(--m5-ease-long);
}
.m5-t--epicerie:hover .m5-t-brand { color: var(--m5-bleu-mid); }

/* Coming : outline encre — en attente */
.m5-t--coming .m5-t-brand {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14,12,10,0.26);
  font-style: italic;
  letter-spacing: 0.12em;
  transition:
    -webkit-text-stroke-color 0.8s ease,
    transform 0.9s var(--m5-ease-long),
    letter-spacing 0.9s var(--m5-ease-long);
}
.m5-t--coming:hover .m5-t-brand {
  -webkit-text-stroke-color: rgba(14,12,10,0.50);
}

/* ── Contenu révélé au hover — contrastes V5 améliorés ──────────── */
.m5-t-citation {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.66rem;
  /* V5 : opacité relevée 0.38 → 0.55 pour meilleure lisibilité */
  color: rgba(14,12,10,0.55);
  margin: 0.9rem 0 0.55rem;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(14,12,10,0.12);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease, transform 0.8s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-citation {
  opacity: 1;
  transform: translateY(0);
}

.m5-t-accroche {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.86rem;
  /* V5 : opacité relevée 0.44 → 0.60 pour meilleure lisibilité */
  color: rgba(14,12,10,0.60);
  margin: 0 0 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.8s 0.06s ease, transform 0.8s 0.06s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-accroche { opacity: 1; transform: translateY(0); }

.m5-t-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.79rem;
  font-weight: 300;
  /* V5 : opacité relevée 0.46 → 0.58 pour meilleure lisibilité */
  color: rgba(14,12,10,0.58);
  margin: 0 0 1.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s 0.12s ease, transform 0.8s 0.12s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-desc { opacity: 1; transform: translateY(0); }

.m5-t-cta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s 0.20s ease, transform 0.7s 0.20s var(--m5-ease-long);
}
.m5-territoire:hover .m5-t-cta { opacity: 1; transform: translateY(0); }
.m5-t-cta .btn { font-size: 0.80rem; padding: 0.52rem 1.4rem; }

/* Filet supérieur — ligne architecturale fine au hover */
.m5-territoire::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  z-index: 5;
  transition: background 0.9s ease;
}
.m5-territoire:hover::before {
  background: linear-gradient(to right, transparent, rgba(14,12,10,0.06), transparent);
}

/* ── Fonds par univers ─────────────────────────────────────────────
   Chaque colonne a sa propre lumière subtile.
   La distinction vient du numéro + de la couleur du brand name.
   ──────────────────────────────────────────────────────────────── */

/* Restaurant : beige chaud rosé */
.m5-t--restaurant {
  background: linear-gradient(
    170deg,
    #FDFAF7 0%,
    #F5EDE3 100%
  );
}

/* Épicerie : blanc bleuté très léger */
.m5-t--epicerie {
  background: linear-gradient(
    170deg,
    #FAFBFD 0%,
    #ECF1F6 100%
  );
}

/* Coming : blanc pur — le vide éditorial, l'attente */
.m5-t--coming {
  background: #FAFAF8;
}

/* Nuance catégorie coming — plus spectrale */
.m5-t--coming .m5-t-categorie {
  -webkit-text-stroke-color: rgba(14,12,10,0.16);
  letter-spacing: 0.28em;
}
.m5-t--coming:hover .m5-t-categorie {
  -webkit-text-stroke-color: rgba(14,12,10,0.36);
}


/* ================================================================
   NOTRE HISTOIRE
   ================================================================ */
.m5-histoire {
  background: var(--m5-parchemin);
  padding: 9rem 2rem;
  position: relative;
  overflow: hidden;
}

.m5-histoire-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.m5-label {
  color: var(--m5-rouge) !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.45em !important;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}

.m5-histoire-titre {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--m5-encre);
  line-height: 1.15;
  margin: 0.6rem 0 1.8rem;
}
.m5-histoire-titre em {
  color: var(--m5-rouge);
  font-style: italic;
}

.m5-histoire-filet {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--m5-rouge), rgba(192,57,43,0.12));
  margin-bottom: 2.2rem;
  transition: width 1.1s var(--m5-ease-long);
}
.m5-histoire-filet--actif { width: 56px; }

.m5-histoire-corps {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.88;
  color: var(--m5-gris);
  margin: 0 0 1.2rem;
}

.m5-btn-editorial {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m5-encre);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  gap: 0.4rem;
  transition: color 0.3s ease;
}
.m5-btn-editorial:hover { color: var(--m5-rouge); }

.m5-btn-filet {
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.45s var(--m5-ease-long);
}
.m5-btn-editorial:hover .m5-btn-filet { transform: scaleX(1); }

.m5-histoire-visuel { position: relative; }

.m5-histoire-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.m5-histoire-img {
  width: 100%;
  display: block;
  box-shadow: 0 20px 60px rgba(14,12,10,0.13);
  transition: transform 0.9s var(--m5-ease-long);
}
.m5-histoire-img-wrap:hover .m5-histoire-img { transform: scale(1.025); }

.m5-histoire-cadre {
  position: absolute;
  top: -16px;
  right: -16px;
  bottom: 16px;
  left: 16px;
  border: 1px solid rgba(192,57,43,0.14);
  border-radius: 2px;
  z-index: -1;
  pointer-events: none;
}

.m5-histoire-citation {
  margin: 1.8rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid rgba(192,57,43,0.18);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(14,12,10,0.4);
  line-height: 1.6;
}


/* ================================================================
   NOTRE UNIVERS — Section atmosphérique
   Voile bleu nuit (identique V3) sur photo atténuée.
   ================================================================ */
.m5-univers-section {
  height: 68vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-radius: 10px;
  margin: 0 clamp(1rem, 2.5vw, 2.5rem);
}

.m5-uv-fond {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 38%;
  opacity: 0.45;
  filter: saturate(0.60) contrast(0.9) grayscale(0.3);
  transform: scale(1.06);
  transition: transform 12s ease;
}
.m5-univers-section:hover .m5-uv-fond { transform: scale(1.01); }

/* Voile bleu nuit — identique V3 */
.m5-uv-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,32,53,0.90) 0%,
    rgba(13,32,53,0.58) 48%,
    rgba(13,32,53,0.25) 100%
  );
}

.m5-uv-contenu {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 5vw;
}

/* V5 : surtitre relevé 0.28 → 0.45 pour lisibilité sur voile bleu */
.m5-uv-surtitre {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.45);
  font-weight: 300;
  display: block;
  margin-bottom: 1.8rem;
}

.m5-uv-guillemet {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  color: rgba(192,57,43,0.28);
  line-height: 0.6;
  margin-bottom: 0.5rem;
  user-select: none;
}

.m5-uv-citation {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.52;
  color: rgba(247,244,239,0.82);
  margin: 0;
  padding: 0 0 0 1.8rem;
  border-left: 2px solid rgba(192,57,43,0.42);
}

/* V5 : em relevé 0.48 → 0.62 */
.m5-uv-citation em { color: rgba(247,244,239,0.62); }

/* V5 : cite relevé 0.26 → 0.42 */
.m5-uv-citation cite {
  display: block;
  margin-top: 1.6rem;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.42);
}

.m5-uv-ornement {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-left: 1.8rem;
}
.m5-uv-ornement-ligne {
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: rgba(247,244,239,0.1);
  display: block;
}
.m5-uv-ornement-etoile {
  font-size: 0.6rem;
  color: rgba(192,57,43,0.38);
}


/* ================================================================
   ÉQUIPE — V5 : classes entièrement préfixées m5-
   ================================================================ */
.m5-equipe {
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem;
  background: var(--m5-parchemin);
}

/* Filet de transition subtil en haut de section */
.m5-equipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--m5-gris-clair);
  pointer-events: none;
  z-index: 0;
}

.m5-equipe .container {
  position: relative;
  z-index: 1;
}

/* En-tête de section */
.m5-equipe-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.m5-equipe-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--m5-rouge);
  display: block;
  margin-bottom: 0.8rem;
}

.m5-equipe-titre {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--m5-encre);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.m5-equipe-sous {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--m5-gris);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Séparateur */
.m5-equipe-divider {
  text-align: center;
  color: var(--m5-rouge);
  opacity: 0.35;
  font-size: 0.8rem;
  margin: 0 0 3.5rem;
  letter-spacing: 0.5em;
}

/* Grille équipe */
.m5-equipe-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Carte membre */
.m5-equipe-carte {
  text-align: center;
}

.m5-equipe-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.12);
  box-shadow: 0 8px 32px rgba(14,12,10,0.10);
  transition: transform 0.6s var(--m5-ease-long), box-shadow 0.6s ease, filter 0.6s ease;
  display: block;
  margin: 0 auto;
}
.m5-equipe-carte:hover .m5-equipe-photo {
  transform: scale(1.04);
  box-shadow: 0 14px 40px rgba(14,12,10,0.15);
  filter: grayscale(0);
}

.m5-equipe-nom {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--m5-encre);
  margin: 1.2rem 0 0.3rem;
  line-height: 1.2;
}

.m5-equipe-role {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--m5-rouge);
  opacity: 0.8;
}


/* ================================================================
   TYPOGRAPHIE OUTLINE — Bg-texts décoratifs
   ================================================================ */
.m5-section-bg-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(11vw, 17vw, 21vw);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.038);
  text-stroke: 1px rgba(14,12,10,0.038);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  line-height: 1;
  z-index: 0;
}

.m5-section-bg-text--light {
  -webkit-text-stroke: 1px rgba(14,12,10,0.036);
  text-stroke: 1px rgba(14,12,10,0.036);
}

.m5-section-bg-text--adresse { top: 62%; }

/* Isolation z-index */
.m5-histoire  { overflow: hidden; }
.m5-infos     { position: relative; overflow: hidden; }

.m5-histoire .container,
.m5-infos .container {
  position: relative;
  z-index: 1;
}


/* ================================================================
   NOUS TROUVER — Layout éditorial split
   ================================================================ */
.m5-infos {
  background: var(--m5-parchemin);
  padding: 6.5rem 2rem;
  border-top: 1px solid var(--m5-gris-clair);
}

.m5-infos-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  align-items: start;
}

.m5-infos-gauche {
  padding-top: 0.5rem;
  position: relative;
}

.m5-infos-bg-word {
  position: absolute;
  bottom: -0.3em;
  left: -0.1em;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(7rem, 14vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.042);
  text-stroke: 1px rgba(14,12,10,0.042);
  line-height: 0.88;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.m5-infos-titre-gauche {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: var(--m5-encre);
  line-height: 1.1;
  margin: 0.6rem 0 0;
  position: relative;
  z-index: 1;
}
.m5-infos-titre-gauche em {
  color: var(--m5-rouge);
  font-style: italic;
}

.m5-infos-filet-gauche {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--m5-rouge), rgba(192,57,43,0.10));
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
  transition: width 1.1s var(--m5-ease-long);
}
.m5-infos-filet-gauche--actif { width: 56px; }

.m5-infos-editorial-text {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--m5-gris);
  position: relative;
  z-index: 1;
  margin: 0 0 0.9rem;
}
.m5-infos-editorial-text--small {
  font-size: 0.85rem;
  opacity: 0.62;
  font-style: italic;
  margin-bottom: 1.8rem;
}

/* Cartes droite */
.m5-infos-droite {
  display: flex;
  flex-direction: column;
}

.m5-infos-carte-v {
  padding: 1.5rem 1.8rem;
  background: var(--m5-parchemin-2);
  border: 1px solid var(--m5-gris-clair);
  transition: border-color 0.45s ease;
  position: relative;
}
.m5-infos-carte-v:first-child {
  border-radius: 2px 2px 0 0;
  border-bottom: none;
}
.m5-infos-carte-v:last-child {
  border-radius: 0 0 2px 2px;
  background: var(--m5-parchemin);
  border-top: 1px solid var(--m5-gris-clair);
}
.m5-infos-carte-v:hover {
  border-color: rgba(192,57,43,0.15);
  z-index: 1;
}

.m5-infos-cv--epicerie {
  border-top-style: dashed !important;
}

/* En-tête horizontale compacte */
.m5-infos-cv-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

.m5-infos-cv-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  justify-content: center;
}

.m5-infos-cv-num-outline {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14,12,10,0.15);
  text-stroke: 1px rgba(14,12,10,0.15);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.m5-infos-cv--epicerie .m5-infos-cv-num-outline {
  -webkit-text-stroke-color: rgba(14,12,10,0.08);
}

.m5-infos-cv-label-tag {
  font-family: 'Lato', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--m5-rouge);
}

.m5-infos-cv-nom {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--m5-encre);
  margin: 0;
  line-height: 1;
}

.m5-infos-cv-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--m5-gris);
  margin: 0 0 1rem;
  font-style: italic;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--m5-gris-clair);
}

.m5-infos-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.m5-infos-liste li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--m5-gris);
  font-weight: 300;
  line-height: 1.45;
}
.m5-infos-liste li i {
  color: var(--m5-rouge);
  margin-top: 0.12rem;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.m5-infos-liste a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.m5-infos-liste a:hover { color: var(--m5-rouge); }

.m5-infos-cv-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.m5-infos-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--m5-gris);
  opacity: 0.6;
}

.m5-infos-coming-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m5-rouge);
  flex-shrink: 0;
  animation: m5-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes m5-dot-pulse {
  0%, 100% { opacity: 0.38; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(1.5); }
}


/* ================================================================
   FOOTER
   ================================================================ */
body.m5-page .footer {
  background: var(--m5-encre);
  border-top: 1px solid rgba(247,244,239,0.05);
}
body.m5-page .footer-brand .footer-logo { color: #ffffff; }
body.m5-page .footer-brand p            { color: rgba(247,244,239,0.4); }
body.m5-page .footer-col h4             { color: rgba(247,244,239,0.5); }
body.m5-page .footer-col li,
body.m5-page .footer-col p              { color: rgba(247,244,239,0.38); opacity: 1; }
body.m5-page .footer-col li i           { color: rgba(192,57,43,0.7); }
body.m5-page .footer-col a:hover        { color: #ffffff; }
body.m5-page .footer-bottom {
  border-top-color: rgba(247,244,239,0.05);
  color: rgba(247,244,239,0.28);
}


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
  .m5-ouv-contenu    { padding: 0 2rem; }
  .m5-histoire-inner { gap: 4.5rem; }
}

@media (max-width: 900px) {
  .m5-infos-layout  { grid-template-columns: 1fr; gap: 3rem; }
  .m5-infos-bg-word { font-size: 22vw; }
}

@media (max-width: 768px) {

  .m5-dots-nav { display: none; }

  /* Hero */
  .m5-filigrane  { font-size: 40vw; }
  .m5-ouv-bas    { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .m5-version-links { left: 1.5rem; bottom: 1.5rem; }

  /* Bridges — height:0 cohérent avec le desktop */
  .m5-bridge { height: 0; }

  /* Territoires : empilés verticalement */
  .m5-univers {
    flex-direction: column !important;
    height: auto;
  }

  .m5-territoire {
    flex: none !important;
    height: 64vw;
    min-height: 240px;
    max-height: 360px;
    transition: height 0.85s var(--m5-ease);
  }

  /* V5 : bordure mobile encre — cohérente avec les cards claires */
  .m5-territoire + .m5-territoire {
    border-left: none;
    border-top: 1px solid rgba(14,12,10,0.07);
  }

  /* Contenu toujours visible sur mobile (pas de hover sur touch) */
  .m5-t-citation,
  .m5-t-accroche,
  .m5-t-desc,
  .m5-t-cta       { opacity: 1; transform: none; }
  .m5-t-filet-brand { width: 36px; }

  /* Numéro réduit proportionnellement */
  .m5-t-numero    { font-size: clamp(7rem, 20vh, 26vh); }

  /* Histoire */
  .m5-histoire       { padding: 6rem 1.5rem; }
  .m5-histoire-inner { grid-template-columns: 1fr; gap: 3rem; }
  .m5-histoire-visuel { order: -1; }
  .m5-histoire-cadre  { display: none; }

  /* Univers section */
  .m5-univers-section {
    height: auto;
    min-height: 360px;
    padding: 5rem 0;
    border-radius: 6px;
    margin: 0 0.8rem;
  }
  .m5-uv-contenu { padding: 0 2rem; }

  /* Section bg text */
  .m5-section-bg-text { font-size: 28vw; }

  /* Équipe */
  .m5-equipe { padding: 5rem 1.5rem; }
  .m5-equipe-grille {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
  }

  /* Infos */
  .m5-infos              { padding: 4rem 1.5rem; }
  .m5-infos-layout       { gap: 2rem; }
  .m5-infos-bg-word      { font-size: 30vw; bottom: -0.1em; }
  .m5-infos-titre-gauche { font-size: 2.1rem; }
  .m5-infos-carte-v      { padding: 1.3rem 1.4rem; }
}

@media (max-width: 480px) {
  .m5-mot-loryna   { letter-spacing: -0.01em; }
  .m5-ouv-univers  { font-size: 0.62rem; gap: 0.7rem; }
  .m5-t-brand      { font-size: 2rem; }
  .m5-t-categorie  { font-size: 1.4rem; }
  .m5-uv-citation  { font-size: 1.3rem; }
  .m5-histoire-titre { font-size: 2rem; }
  .m5-equipe-grille { grid-template-columns: 1fr; max-width: 260px; }
  .m5-equipe-photo  { width: 140px; height: 140px; }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .m5-marquee-piste,
  .m5-ouv-photo--1,
  .m5-ouv-photo--2,
  .m5-ouv-photo--3  { animation: none; }
  .m5-filet-trace,
  .m5-infos-filet-gauche { transition: none; }
  .m5-fleche-ligne,
  .m5-fleche-scroll i { animation: none; }
  .m5-infos-coming-dot { animation: none; }
}
