/* ================================================================
   MAISON LORYNA — VERSION 4 — "Continuité"

   Correction centrale V3 :
   — Fond unifié --m4-encre (#0E0C0A) pour TOUTES les sections sombres
     (expanding cards, Notre Univers, footer) → un seul système de couleur.
   — Cards purement typographiques : outline/stroke comme architecture,
     pas de photos (même registre que le hero).
   — Ponts gradient parchemin↔encre entre chaque alternance lumière/sombre.
   — Numéros dimensionnés en vh (pas en vw) : restent dans le cadre.

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

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


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

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


/* ================================================================
   NAVIGATION
   ================================================================ */
body.m4-page .m4-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.m4-page .m4-nav .m4-nav-logo {
  color: var(--m4-encre);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  transition: color 0.4s ease;
}

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

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

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

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


/* ── Dots nav ───────────────────────────────────────────────────── */
.m4-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: m4-apparaitre 1s 2s ease forwards;
}

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

.m4-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;
}
.m4-dot:hover,
.m4-dot--actif {
  background: var(--m4-rouge);
  transform: scale(1.4);
}


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

.m4-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;
}

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

.m4-ouv-photo--1 {
  background-position: center 40%;
  opacity: 0.07;
  filter: grayscale(1) contrast(0.78);
  transform: scale(1.04);
  animation: m4-respire-a 28s ease-in-out infinite alternate;
}
.m4-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: m4-respire-b 34s ease-in-out infinite alternate;
}
.m4-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: m4-respire-c 40s ease-in-out infinite alternate;
}

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

.m4-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;
}

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

.m4-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: m4-glisse-bas 1.2s ease both;
}

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

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

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

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

.m4-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: m4-glisse-bas 1.2s ease both;
}

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

.m4-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;
}

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

.m4-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;
}
.m4-decouvrir:hover { color: var(--m4-rouge); }

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

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

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

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

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

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

.m4-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;
}
.m4-version-link:hover { color: var(--m4-rouge); }

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


/* ================================================================
   MARQUEE
   ================================================================ */
.m4-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--m4-gris-clair);
  /* Pas de border-bottom — le bridge gradient suit immédiatement */
  padding: 1.1rem 0;
  background: var(--m4-parchemin);
}

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

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

.m4-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 fins entre sections
   Les cards étant maintenant claires (parchemin), les ponts
   gradients sombre/clair ne sont plus nécessaires.
   On les réduit à de simples filets discrets.
   ================================================================ */
.m4-bridge {
  height: 0;
  pointer-events: none;
}

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


/* ================================================================
   LES UNIVERS — V4 : Colonnes éditoriales typographiques
   ─────────────────────────────────────────────────────────────────
   Fond : beige/blanc chaud — dans le registre du hero et de
   l'ensemble de la page. Continuité visuelle totale.
   Numéros : dimensionnés en vh, restent dans le cadre.
   Catégorie : stroke sombre → élément graphique lisible.
   Brand "Loryna" : rouge vif sur fond clair = très impactant.
   ================================================================ */
.m4-univers {
  display: flex;
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  /* Fond parchemin — cohérent avec le hero, aucune rupture */
  background: var(--m4-parchemin);
  border-top: 1px solid var(--m4-gris-clair);
  border-bottom: 1px solid var(--m4-gris-clair);
}

/* ── Territoire individuel ─────────────────────────────────────── */
.m4-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 — fin, encre sur fond clair */
.m4-territoire + .m4-territoire {
  border-left: 1px solid rgba(14,12,10,0.07);
}

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

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

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

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

.m4-univers:has(.m4-t--coming:hover)     .m4-t--restaurant,
.m4-univers:has(.m4-t--coming:hover)     .m4-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 V4.
   Positionnées dans le tiers supérieur (derrière le numéro).
   ──────────────────────────────────────────────────────────────── */
.m4-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;
}
.m4-territoire:hover .m4-t-fond {
  opacity: 0.14;
  transform: scale(1.0);
  transition: transform 10s ease, opacity 0.9s ease;
}

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

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

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

/* ── Grain naturel — texture papier/impression ─────────────────── */
.m4-t-grain {
  position: absolute;
  inset: 0;
  z-index: 2; /* au-dessus de .m4-t-fond (z-index: 1) */
  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,
   jamais débordant. Positionné dans le tiers supérieur.
   Même registre stroke que le filigrane "MAISON" du hero.
   ──────────────────────────────────────────────────────────────── */
.m4-t-numero {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  /* vh : garantit que le chiffre tient dans la section quelle que soit la largeur */
  font-size: clamp(9rem, 29vh, 40vh);
  color: transparent;
  /* Même stroke que le filigrane "MAISON" du hero — encre sur fond clair */
  -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(--m4-ease-long);
}

.m4-territoire:hover .m4-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 ──────────────────── */
.m4-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;
  /* Gradient parchemin depuis le bas — cohérent avec le fond clair de la section */
  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(--m4-encre);
  overflow: hidden;
}

/* ── Catégorie — label en stroke, élément graphique principal ──────
   La typographie stroke est LE matériau visuel des cards V4.
   Même principe que les m4-section-bg-text mais à taille lisible,
   stroke plus présent → élément structurant, pas purement décoratif.
   ──────────────────────────────────────────────────────────────── */
.m4-t-categorie {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 4.2rem);
  color: transparent;
  /* Stroke encre sur fond clair — même logique que m4-section-bg-text mais plus lisible */
  -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(--m4-ease-long);
}

.m4-territoire:hover .m4-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 m4-filet-trace du hero */
.m4-t-filet-brand {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--m4-rouge), rgba(192,57,43,0.22));
  margin-bottom: 0.95rem;
  transition: width 0.7s var(--m4-ease-long);
}
.m4-territoire:hover .m4-t-filet-brand { width: 46px; }

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

/* Titre bg LORYNA — même technique que les autres titres outline de la page.
   Police Playfair = cohérence avec le titre principal.
   Taille relative à vh — reste proportionnel, ne déborde pas.
   Stroke : légèrement plus visible que le numéro (il est au premier plan). */
.m4-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;
  /* Stroke encre sur fond clair — même gamme que le filigrane "MAISON" */
  -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;
}
.m4-territoire:hover .m4-t-brand-bg {
  -webkit-text-stroke-color: rgba(14,12,10,0.11);
}

/* Brand principal — au premier plan */
.m4-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(--m4-ease-long), letter-spacing 0.9s var(--m4-ease-long);
}
.m4-territoire:hover .m4-t-brand {
  transform: translateY(-4px);
  letter-spacing: 0.02em;
}

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

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

/* Coming : outline encre — en attente */
.m4-t--coming .m4-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(--m4-ease-long),
    letter-spacing 0.9s var(--m4-ease-long);
}
.m4-t--coming:hover .m4-t-brand {
  -webkit-text-stroke-color: rgba(14,12,10,0.50);
}

/* ── Contenu révélé au hover ────────────────────────────────────── */
.m4-t-citation {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.66rem;
  color: rgba(14,12,10,0.38);
  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(--m4-ease-long);
}
.m4-territoire:hover .m4-t-citation {
  opacity: 1;
  transform: translateY(0);
}

.m4-t-accroche {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.86rem;
  color: rgba(14,12,10,0.44);
  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(--m4-ease-long);
}
.m4-territoire:hover .m4-t-accroche { opacity: 1; transform: translateY(0); }

.m4-t-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.79rem;
  font-weight: 300;
  color: rgba(14,12,10,0.46);
  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(--m4-ease-long);
}
.m4-territoire:hover .m4-t-desc { opacity: 1; transform: translateY(0); }

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

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

/* ── Signatures visuelles per-univers ──────────────────────────────
   V4 : pas de voiles colorés, pas de halos.
   La distinction vient du numéro + de la couleur du brand name.
   Un léger fond secondaire différencie chaque colonne (lumière propre).
   ──────────────────────────────────────────────────────────────── */

/* Restaurant : beige chaud rosé — chaleur du bois et de la cuisine */
.m4-t--restaurant {
  background: linear-gradient(
    170deg,
    #FDFAF7 0%,
    #F5EDE3 100%
  );
}

/* Épicerie : blanc bleuté très léger — évoque la céramique, la faïence espagnole */
.m4-t--epicerie {
  background: linear-gradient(
    170deg,
    #FAFBFD 0%,
    #ECF1F6 100%
  );
}

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

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


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

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

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

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

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

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

.m4-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(--m4-encre);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  gap: 0.4rem;
  transition: color 0.3s ease;
}
.m4-btn-editorial:hover { color: var(--m4-rouge); }

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

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

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

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

.m4-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;
}

.m4-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
   V4 : fond --m4-encre au lieu du bleu-nuit V3 → cohérence system
   ================================================================ */
.m4-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);
}

.m4-uv-fond {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 38%;
  /* Plus présent que V3 pour compenser l'absence de voile bleu */
  opacity: 0.45;
  filter: saturate(0.60) contrast(0.9) grayscale(0.3);
  transform: scale(1.06);
  transition: transform 12s ease;
}
.m4-univers-section:hover .m4-uv-fond { transform: scale(1.01); }

/* Voile bleu nuit — identique V3 */
.m4-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%
  );
}

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

.m4-uv-surtitre {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.28);
  font-weight: 300;
  display: block;
  margin-bottom: 1.8rem;
}

.m4-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;
}

.m4-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);
}

.m4-uv-citation em { color: rgba(247,244,239,0.48); }

.m4-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.26);
}

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


/* ================================================================
   ÉQUIPE
   ================================================================ */
body.m4-page .ml-equipe {
  position: relative;
  overflow: hidden;
}

body.m4-page .ml-equipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(14,12,10,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

body.m4-page .ml-equipe .container {
  position: relative;
  z-index: 1;
}


/* ================================================================
   TYPOGRAPHIE OUTLINE — Bg-texts décoratifs
   ================================================================ */
.m4-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;
}

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

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

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

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


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

.m4-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;
}

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

.m4-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;
}

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

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

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

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

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

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

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

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

.m4-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;
}
.m4-infos-cv--epicerie .m4-infos-cv-num-outline {
  -webkit-text-stroke-color: rgba(14,12,10,0.08);
}

.m4-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(--m4-rouge);
}

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

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

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

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

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

.m4-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(--m4-gris);
  opacity: 0.6;
}

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

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


/* ================================================================
   FOOTER
   ================================================================ */
body.m4-page .footer {
  /* Même encre que les sections sombres → continuité visuelle */
  background: var(--m4-encre);
  border-top: 1px solid rgba(247,244,239,0.05);
}
body.m4-page .footer-brand .footer-logo { color: #ffffff; }
body.m4-page .footer-brand p            { color: rgba(247,244,239,0.4); }
body.m4-page .footer-col h4             { color: rgba(247,244,239,0.5); }
body.m4-page .footer-col li,
body.m4-page .footer-col p              { color: rgba(247,244,239,0.38); opacity: 1; }
body.m4-page .footer-col li i           { color: rgba(192,57,43,0.7); }
body.m4-page .footer-col a:hover        { color: #ffffff; }
body.m4-page .footer-bottom {
  border-top-color: rgba(247,244,239,0.05);
  color: rgba(247,244,239,0.28);
}


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

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

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

@media (max-width: 768px) {

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

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

  /* Bridges — réduits sur mobile */
  .m4-bridge { height: 72px; }

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

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

  .m4-territoire + .m4-territoire {
    border-left: none;
    border-top: 1px solid rgba(247,244,239,0.05);
  }

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

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

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

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

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

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

@media (max-width: 480px) {
  .m4-mot-loryna   { letter-spacing: -0.01em; }
  .m4-ouv-univers  { font-size: 0.62rem; gap: 0.7rem; }
  .m4-t-brand      { font-size: 2rem; }
  .m4-t-categorie  { font-size: 1.4rem; }
  .m4-uv-citation  { font-size: 1.3rem; }
  .m4-histoire-titre { font-size: 2rem; }
}

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