/* ================================================================
   MAISON LORYNA — VERSION 3 — "Fusion"

   Esthétique V2 (parchement, éditorial) +
   Comportements V1 (territoires expansifs, atmosphère).
   Hero V2 enrichi de couches photographiques subtiles.
   Sections inédites : Notre Histoire, Notre Univers.

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

/* ── Variables V3 ──────────────────────────────────────────────── */
:root {
  --m3-parchemin:    #F7F4EF;
  --m3-parchemin-2:  #EFEBE3;
  --m3-rouge:        #C0392B;
  --m3-rouge-fonce:  #7A1520;
  --m3-bleu:         #0D2035;
  --m3-bleu-mid:     #1B3A5C;
  /* Bleu méditerranéen — titre épicerie sur fond sombre */
  --m3-bleu-clair:   #8CB5C8;
  --m3-encre:        #0E0C0A;
  --m3-gris:         #6B6560;
  --m3-gris-clair:   rgba(14,12,10,0.12);
  --m3-ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --m3-ease-long:    cubic-bezier(0.16, 1, 0.3, 1);
}


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

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


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

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

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

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

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


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

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

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


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

/* Filigrane MAISON en lettres fantômes */
.m3-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;
}

/* ── Couches photographiques du hero ───────────────────────────── */
/* Traitement : faible opacité, noir & blanc, flou progressif */

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

/* Couche 1 — image principale, cadrage centré */
.m3-ouv-photo--1 {
  background-position: center 40%;
  opacity: 0.07;
  filter: grayscale(1) contrast(0.78);
  transform: scale(1.04);
  animation: m3-respire-a 28s ease-in-out infinite alternate;
}

/* Couche 2 — même image, autre cadrage, droite */
.m3-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: m3-respire-b 34s ease-in-out infinite alternate;
}

/* Couche 3 — texture, coin gauche bas, très floue */
.m3-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: m3-respire-c 40s ease-in-out infinite alternate;
}

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

/* Contenu principal — structure identique à V2 */
.m3-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;
}

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

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

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

/* Filet qui se trace de gauche à droite */
.m3-filet-trace {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, var(--m3-rouge), rgba(192,57,43,0.18));
  transition: width 1.2s var(--m3-ease-long);
}
.m3-filet-trace--actif { width: 100%; }

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

/* "LORYNA" — grand, rouge, héroïque */
.m3-mot-loryna {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(5rem, 14vw, 12rem);
  color: var(--m3-rouge);
  letter-spacing: -0.02em;
  line-height: 0.92;
  animation: m3-glisse-bas 1.4s 0.1s ease both;
  display: block;
}

/* "Maison" — petit, italique, posé au-dessus */
.m3-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: m3-glisse-bas 1.2s ease both;
}

/* Bas : univers + CTA */
.m3-ouv-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  animation: m3-glisse-bas 1.8s 0.35s ease both;
}

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

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

/* Flèche scroll */
.m3-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;
}
.m3-decouvrir:hover { color: var(--m3-rouge); }

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

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

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

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

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

/* Liens version (discrets, coin bas gauche) */
.m3-version-links {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  gap: 1.8rem;
  z-index: 3;
}

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

/* Animation entrée commune */
@keyframes m3-glisse-bas {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   MARQUEE — Bande éditoriale défilante
   ================================================================ */
.m3-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--m3-gris-clair);
  border-bottom: 1px solid var(--m3-gris-clair);
  padding: 1.1rem 0;
  background: var(--m3-parchemin);
}

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

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

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


/* ================================================================
   TROIS UNIVERS — Expanding Cards — esthétique éditoriale intégrée
   Même langage visuel que le hero : encre, parchment, outline, neutralité
   ================================================================ */
.m3-territoires-section {
  display: flex;
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  /* Fond neutre chaud — encre profonde, cohérent avec la variable --m3-encre */
  background: #080604;
}

/* Couche atmosphérique — neutralisée, sans halo coloré */
/* L'élément est conservé en HTML mais n'émet aucun glow artificiel */
.m3-atmo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  /* Pas de transition visible — couche inerte */
}

/* Séparation architecturale discrète entre cartes */
.m3-territoire + .m3-territoire {
  border-left: 1px solid rgba(255,255,255,0.038);
}

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

/* Texture grain léger via SVG noise — sensation "papier / matière" */
.m3-territoire::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.028;
  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.85' 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;
  mix-blend-mode: overlay;
}

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

/* Expansion CSS :has() — plus douce que V1 (2.4 vs 3.0) */
.m3-territoires-section:has(.m3-t--restaurant:hover) .m3-t--restaurant { flex: 2.4; }
.m3-territoires-section:has(.m3-t--epicerie:hover)   .m3-t--epicerie   { flex: 2.4; }
.m3-territoires-section:has(.m3-t--coming:hover)     .m3-t--coming     { flex: 2.4; }

/* Inactifs : rétractés, assombris, légèrement flous — effet cinématographique */
.m3-territoires-section:has(.m3-t--restaurant:hover) .m3-t--epicerie,
.m3-territoires-section:has(.m3-t--restaurant:hover) .m3-t--coming  { flex: 0.8; filter: brightness(0.50) saturate(0.38) blur(0.8px); }

.m3-territoires-section:has(.m3-t--epicerie:hover)   .m3-t--restaurant,
.m3-territoires-section:has(.m3-t--epicerie:hover)   .m3-t--coming  { flex: 0.8; filter: brightness(0.50) saturate(0.38) blur(0.8px); }

.m3-territoires-section:has(.m3-t--coming:hover)     .m3-t--restaurant,
.m3-territoires-section:has(.m3-t--coming:hover)     .m3-t--epicerie { flex: 0.8; filter: brightness(0.50) saturate(0.38) blur(0.8px); }

/* Pas de box-shadow coloré / halo — contraste naturel uniquement
   Le panel actif gagne en présence par l'expansion flex,
   sans émettre de lumière artificielle */

/* Fond photographique */
.m3-t-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 14s ease;
  will-change: transform;
}
.m3-territoire:hover .m3-t-bg {
  transform: scale(1.0);
  transition: transform 10s ease;
}

/* Voile de couleur */
.m3-t-voile {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: background 0.65s ease;
}

/* Corps texte — gradient bas neutre (encre chaude, pas de teinte bleue-tech) */
.m3-t-corps {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.8rem;
  /* Gradient aligné sur --m3-encre (#0E0C0A) — cohérent avec le reste de la page */
  background: linear-gradient(
    to top,
    rgba(8,5,3,0.94)  0%,
    rgba(8,5,3,0.36)  46%,
    transparent       72%
  );
  color: #ffffff;
  overflow: hidden;
}

/* ── Numéro fantôme — même traitement que le filigrane MAISON du hero
   Le hero utilise -webkit-text-stroke: 1px rgba(14,12,10,0.052) sur fond clair.
   Ici sur fond sombre, l'équivalent est rgba(255,255,255,0.048).
   Même poids visuel, même subtilité : système graphique unifié.
   ──────────────────────────────────────────────────────────────── */
.m3-t-num-fantome {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(7rem, 16vw, 20rem);
  color: transparent;
  /* Calqué sur le filigrane du hero (0.052 sur fond clair ≈ 0.048 sur fond sombre) */
  -webkit-text-stroke: 1px rgba(255,255,255,0.048);
  text-stroke: 1px rgba(255,255,255,0.048);
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 1.2s ease;
}
.m3-territoire:hover .m3-t-num-fantome {
  /* Légèrement plus présent au hover — toujours subtil, jamais exhibé */
  -webkit-text-stroke-color: rgba(255,255,255,0.085);
}

/* ── Mot outline éditorial géant — même langage que les sections bg-text ─
   Cohérent avec .m3-section-bg-text (HISTOIRE, ÉQUIPE, ADRESSE) :
   même approche de layering typographique en arrière-plan.
   Taille augmentée : élément graphique puissant, pas un sous-titre.
   ──────────────────────────────────────────────────────────────── */
.m3-t-bg-word {
  position: absolute;
  bottom: -0.12em;
  left: -0.06em;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  /* Plus grand — véritable élément graphique de composition */
  font-size: clamp(11rem, 23vw, 34rem);
  color: transparent;
  /* Stroke légèrement renforcé pour la nouvelle taille */
  -webkit-text-stroke: 1px rgba(255,255,255,0.060);
  text-stroke: 1px rgba(255,255,255,0.060);
  line-height: 0.88;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transform-origin: bottom left;
  animation: m3-bg-word-drift 26s ease-in-out infinite;
  transition: -webkit-text-stroke-color 1.4s ease;
}

@keyframes m3-bg-word-drift {
  0%    { transform: scale(1)      translateY(0px); }
  38%   { transform: scale(1.012)  translateY(-7px); }
  72%   { transform: scale(0.996)  translateY(3px); }
  100%  { transform: scale(1)      translateY(0px); }
}

.m3-territoire:hover .m3-t-bg-word {
  -webkit-text-stroke-color: rgba(255,255,255,0.090);
}

/* ── Meta — typographie de surtitre (cohérente avec m3-ouv-surtitre) ─
   Le hero utilise : Lato 300, 0.68rem, letter-spacing 0.45em, opacity 0.3
   On reproduit exactement ce langage ici.
   ──────────────────────────────────────────────────────────────── */
.m3-t-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
  /* Départ plus discret — sensation de découverte progressive */
  opacity: 0.38;
  transition: opacity 0.85s ease;
}
.m3-territoire:hover .m3-t-meta { opacity: 1; }

/* Numéro — même style que m3-ouv-surtitre mais sous forme de chiffre */
.m3-t-num-label {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.60rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.28);
}

/* Séparateur fin entre numéro et label */
.m3-t-meta::before {
  content: '';
  display: block;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.14);
  order: 1;
}
.m3-t-num-label  { order: 0; }
.m3-t-label      { order: 2; }

.m3-t-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  transition: color 0.8s ease, letter-spacing 0.8s ease;
}
.m3-territoire:hover .m3-t-label {
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.55em;
}

/* ── Citation éditoriale — même registre que m3-histoire-citation ─
   Le site utilise Playfair italic + border-left rouge pour les citations.
   Ici : même typographie mais adaptée au fond sombre.
   ──────────────────────────────────────────────────────────────── */
.m3-t-citation {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.68rem;
  /* Même opacité de départ que la m3-histoire-citation */
  color: rgba(255,255,255,0.28);
  margin: 0 0 0.6rem;
  /* Léger padding gauche avec filet — cohérent avec la citation de l'histoire */
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.10em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.9s 0.04s ease, transform 0.9s 0.04s var(--m3-ease-long);
}
.m3-territoire:hover .m3-t-citation {
  opacity: 1;
  transform: translateY(0);
}

/* ── Titre principal — OUTLINE typography, cohérent avec le hero ─
   Même traitement que le filigrane "MAISON" du hero et les
   m3-section-bg-text : color transparent + -webkit-text-stroke.
   Transition : s'intensifie au hover (stroke plus présent).
   ──────────────────────────────────────────────────────────────── */
.m3-t-titre {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  /* Hollow par défaut — même langage visuel que le filigrane MAISON */
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.62);
  text-stroke: 1.5px rgba(255,255,255,0.62);
  margin: 0 0 0.4rem;
  line-height: 1.0;
  transition:
    transform               0.9s var(--m3-ease-long),
    letter-spacing          0.9s var(--m3-ease-long),
    -webkit-text-stroke-color 0.8s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m3-territoire:hover .m3-t-titre {
  /* Plus présent au hover — stroke s'intensifie */
  -webkit-text-stroke-color: rgba(255,255,255,0.92);
  transform: translateY(-8px);
  letter-spacing: 0.04em;
}

/* ── RESTAURANT : titre en rouge — signature chromatique exacte du hero ─
   "LORYNA" dans le hero est color: var(--m3-rouge), solid, sans stroke.
   Le titre de la carte Restaurant reprend ce traitement identique.
   Le bg-word "TABLE" (outline blanc géant) joue le rôle de filigrane.
   ──────────────────────────────────────────────────────────────── */
.m3-t--restaurant .m3-t-titre {
  color: rgba(192, 57, 43, 0.72);   /* rouge, légèrement retenu au repos */
  -webkit-text-stroke-width: 0;
  text-stroke-width: 0;
  /* Transition sur color plutôt que stroke */
  transition:
    transform     0.9s var(--m3-ease-long),
    letter-spacing 0.9s var(--m3-ease-long),
    color          0.8s ease;
}
.m3-t--restaurant:hover .m3-t-titre {
  color: var(--m3-rouge);           /* rouge plein au hover */
  -webkit-text-stroke-width: 0;
}

/* ── ÉPICERIE : titre bleu méditerranéen ─────────────────────────
   Bleu doux et désaturé — évoque la céramique espagnole, la mer.
   Le bg-word "TERROIR" (outline blanc) fournit le layering.
   ──────────────────────────────────────────────────────────────── */
.m3-t--epicerie .m3-t-titre {
  color: rgba(140, 181, 200, 0.68);  /* bleu méditerranéen, retenu */
  -webkit-text-stroke-width: 0;
  text-stroke-width: 0;
  transition:
    transform     0.9s var(--m3-ease-long),
    letter-spacing 0.9s var(--m3-ease-long),
    color          0.8s ease;
}
.m3-t--epicerie:hover .m3-t-titre {
  color: var(--m3-bleu-clair);       /* bleu plein au hover */
  -webkit-text-stroke-width: 0;
}

/* Coming : titre encore plus fantôme, italique éditorial */
.m3-t--coming .m3-t-titre {
  -webkit-text-stroke-color: rgba(255,255,255,0.28);
  font-style: italic;
  letter-spacing: 0.14em;
}
.m3-t--coming:hover .m3-t-titre {
  -webkit-text-stroke-color: rgba(255,255,255,0.52);
}

/* ── Double titre — LORYNA outline derrière chaque titre de carte ─
   Même langage visuel que les filigranes de la page :
   · hero "MAISON"          → -webkit-text-stroke: 1px rgba(14,12,10,0.052) [fond clair]
   · bg-words TABLE/TERROIR → -webkit-text-stroke: 1px rgba(255,255,255,0.060) [fond sombre]
   · section-bg-text        → -webkit-text-stroke: 1px rgba(14,12,10,0.038) [fond clair]
   Ici sur fond sombre, on s'aligne sur les bg-words : stroke blanc très atténué.
   La police Playfair crée une cohérence avec le titre principal (.m3-t-titre).
   ──────────────────────────────────────────────────────────────── */
.m3-t-titre-group {
  position: relative;
  margin-bottom: 0.4rem;
  overflow: visible;
}

/* Titre fantôme LORYNA — superposé derrière le titre principal */
.m3-t-titre-bg {
  position: absolute;
  bottom: -0.15em;
  left: -0.04em;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  /* ~2.5× la taille du titre principal → élément graphique fort */
  font-size: clamp(5rem, 11vw, 14rem);
  color: transparent;
  /* Stroke aligné sur les bg-words (TABLE, TERROIR) */
  -webkit-text-stroke: 1px rgba(255,255,255,0.068);
  text-stroke: 1px rgba(255,255,255,0.068);
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: -webkit-text-stroke-color 0.9s ease;
}

/* S'intensifie légèrement au hover — comme les bg-words */
.m3-territoire:hover .m3-t-titre-bg {
  -webkit-text-stroke-color: rgba(255,255,255,0.11);
}

/* Titre principal au premier plan dans le groupe */
.m3-t-titre-group .m3-t-titre {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Accroche — même registre que m3-histoire-corps (Lato 300, légère) */
.m3-t-accroche {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.88rem;
  /* Cohérent avec les textes secondaires de la page */
  color: rgba(255,255,255,0.32);
  margin: 0 0 0.7rem;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.85s 0.12s ease, transform 0.85s 0.12s var(--m3-ease-long);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m3-territoire:hover .m3-t-accroche { opacity: 1; transform: translateY(0); }

/* Description — Lato 300, même traitement que m3-histoire-corps */
.m3-t-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.34);
  margin: 0 0 1.6rem;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.85s 0.20s ease, transform 0.85s 0.20s var(--m3-ease-long);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.m3-territoire:hover .m3-t-desc { opacity: 1; transform: translateY(0); }

/* CTA */
.m3-t-cta {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s 0.28s ease, transform 0.65s 0.28s var(--m3-ease-long);
}
.m3-territoire:hover .m3-t-cta { opacity: 1; transform: translateY(0); }
.m3-t-cta .btn { font-size: 0.82rem; padding: 0.55rem 1.5rem; }

/* Filet supérieur — ligne architecturale fine (1px, neutre)
   Même logique que les filets m3-filet-trace du hero et histoire */
.m3-territoire::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: transparent;
  z-index: 4;
  transition: background 0.9s ease;
}
/* Au hover : filet blanc très discret — pas de couleur, pas de glow */
.m3-territoire:hover::before {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.10), transparent);
}

/* ── Direction artistique — signatures par univers ────────────────
   Principe éditorial : pas de glow artificiel, pas de halo coloré.
   Chaque univers se distingue par sa photographie et sa densité
   de contraste — comme un magazine premium ou un hôtel haut de gamme.
   Les voiles sont de simples gradients linéaires neutres,
   cohérents avec la grammaire du reste de la page.
   ──────────────────────────────────────────────────────────────── */

/* ════ RESTAURANT : matière photographique, contraste élégant ════ */
.m3-t--restaurant .m3-t-bg {
  background-image: url('../../../assets/images/restaurant/accueil/IMG_8948-edited-1.jpg');
  /* Désaturé — traitement éditorial cohérent avec les photos du hero */
  filter: saturate(0.72) contrast(1.05) brightness(0.88);
}
/* Voile : gradient linéaire neutre depuis le bas — aucun radial glow */
.m3-t--restaurant .m3-t-voile {
  background: linear-gradient(
    to top,
    rgba(8,5,3,0.82)  0%,
    rgba(6,4,2,0.22)  52%,
    transparent       100%
  );
  transition: background 0.9s ease;
}
.m3-t--restaurant:hover .m3-t-voile {
  background: linear-gradient(
    to top,
    rgba(8,5,3,0.72)  0%,
    rgba(6,4,2,0.14)  54%,
    transparent       100%
  );
}

/* ════ ÉPICERIE : douceur sépia, lumière naturelle ════ */
.m3-t--epicerie .m3-t-bg {
  background-image: url('../../../assets/images/restaurant/galerie/IMG_9230.jpg');
  /* Sépia discret — évoque la matière, l'organique, l'artisanal */
  filter: saturate(0.62) sepia(0.24) contrast(1.08) brightness(0.85);
}
.m3-t--epicerie .m3-t-voile {
  background: linear-gradient(
    to top,
    rgba(6,4,2,0.84)  0%,
    rgba(5,3,1,0.22)  52%,
    transparent       100%
  );
  transition: background 0.9s ease;
}
.m3-t--epicerie:hover .m3-t-voile {
  background: linear-gradient(
    to top,
    rgba(6,4,2,0.74)  0%,
    rgba(5,3,1,0.14)  54%,
    transparent       100%
  );
}

/* ════ COMING SOON : vide éditorial, silence ════
   Fond pur encre — pas de teinte bleue, juste le noir chaud de --m3-encre */
.m3-t--coming .m3-t-bg {
  background: #080604; /* Même couleur que la section — continuité */
}
.m3-t--coming .m3-t-voile {
  /* Vignette douce depuis les bords et le haut — crée la profondeur */
  background: linear-gradient(
    to top,
    rgba(8,5,3,0.96)  0%,
    rgba(8,5,3,0.62)  40%,
    rgba(8,5,3,0.30)  72%,
    rgba(8,5,3,0.14)  100%
  );
  transition: background 0.9s ease;
}
.m3-t--coming:hover .m3-t-voile {
  background: linear-gradient(
    to top,
    rgba(8,5,3,0.88)  0%,
    rgba(8,5,3,0.50)  42%,
    rgba(8,5,3,0.22)  74%,
    rgba(8,5,3,0.08)  100%
  );
}
/* Typographie encore plus spectrale sur la carte vide */
.m3-t--coming .m3-t-bg-word {
  letter-spacing: 0.08em;
  font-weight: 300;
  opacity: 0.80;
  -webkit-text-stroke: 1px rgba(255,255,255,0.032);
}
.m3-t--coming .m3-t-meta { opacity: 0.32; }
.m3-t--coming:hover .m3-t-meta { opacity: 0.68; }


/* ================================================================
   NOTRE HISTOIRE — Section éditoriale
   ================================================================ */
.m3-histoire {
  background: var(--m3-parchemin);
  padding: 9rem 2rem;
  position: relative;
}

/* Transition douce depuis la section "Territoires" sombre */
.m3-histoire::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(7,16,30,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

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

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

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

/* Filet animé sous le titre */
.m3-histoire-filet {
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--m3-rouge), rgba(192,57,43,0.12));
  margin-bottom: 2.2rem;
  transition: width 1.1s var(--m3-ease-long);
}
.m3-histoire-filet--actif { width: 56px; }

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

/* Bouton éditorial */
.m3-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(--m3-encre);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  gap: 0.4rem;
  transition: color 0.3s ease;
}
.m3-btn-editorial:hover { color: var(--m3-rouge); }
.m3-btn-editorial--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

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

/* Visuel droite */
.m3-histoire-visuel { position: relative; }

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

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

/* Cadre décoratif (inspiré V1) */
.m3-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;
}

/* Citation flottante */
.m3-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
   ================================================================ */
.m3-univers-section {
  height: 68vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Border-radius sur l'image — clip via overflow:hidden */
  border-radius: 10px;
  margin: 0 clamp(1rem, 2.5vw, 2.5rem);
}

/* Fond photographique */
.m3-uv-fond {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 38%;
  opacity: 0.52;
  filter: saturate(0.72) contrast(0.9);
  transform: scale(1.06);
  transition: transform 12s ease;
}
.m3-univers-section:hover .m3-uv-fond {
  transform: scale(1.01);
}

/* Voile dégradé */
.m3-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%
  );
}

/* Images décoratives flottantes */
.m3-uv-grille {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.m3-uv-cell {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 1px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.m3-uv-cell--1 {
  width: 180px;
  height: 260px;
  top: 12%;
  right: 10%;
  opacity: 0.14;
  filter: grayscale(0.5);
}
.m3-univers-section:hover .m3-uv-cell--1 {
  opacity: 0.2;
  transform: translateY(-4px);
}

.m3-uv-cell--2 {
  width: 140px;
  height: 190px;
  top: 38%;
  right: 22%;
  opacity: 0.08;
  filter: grayscale(0.7);
}
.m3-univers-section:hover .m3-uv-cell--2 {
  opacity: 0.13;
  transform: translateY(4px);
}

/* Contenu textuel */
.m3-uv-contenu {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 5vw;
}

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

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

.m3-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(255,255,255,0.82);
  margin: 0;
  padding: 0 0 0 1.8rem;
  border-left: 2px solid rgba(192,57,43,0.42);
}

.m3-uv-citation em { color: rgba(255,255,255,0.48); }

.m3-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(255,255,255,0.26);
}

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


/* ================================================================
   ÉQUIPE — Fond rouge foncé (style V2)
   ================================================================ */
.m3-equipe {
  background: var(--m3-rouge-fonce);
  padding: 8rem 2rem;
  position: relative;
}
/* Transition douce depuis la section Univers */
body.m3-page .ml-equipe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(13,32,53,0.18), transparent);
  pointer-events: none;
  z-index: 0;
}

.m3-label-clair   { color: rgba(255,255,255,0.45) !important; }
.m3-titre-clair   { color: rgba(255,255,255,0.9)  !important; }
.m3-sub-clair     { color: rgba(255,255,255,0.45) !important; }
.m3-divider-clair { color: rgba(255,255,255,0.22) !important; }

.m3-team-card {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.m3-team-card h3     { color: rgba(255,255,255,0.88) !important; }
.m3-team-card .role  { color: rgba(255,255,255,0.42) !important; }
.m3-team-card .team-photo { border-color: rgba(255,255,255,0.15) !important; }


/* ================================================================
   NOUS TROUVER
   ================================================================ */
.m3-infos {
  background: var(--m3-parchemin);
  padding: 6.5rem 2rem;  /* 8rem → 6.5rem — section plus concise */
  border-top: 1px solid var(--m3-gris-clair);
}

.m3-infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.m3-infos-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--m3-encre);
  line-height: 1.18;
  margin: 0.5rem 0 2.5rem;
}
.m3-infos-titre em {
  color: var(--m3-rouge);
  font-style: italic;
}

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

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

.m3-infos-carte {
  background: var(--m3-parchemin-2);
  border: 1px solid var(--m3-gris-clair);
  padding: 3.5rem;
  border-radius: 2px;
}

.m3-infos-carte-sur {
  font-family: 'Lato', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--m3-rouge);
  margin: 0 0 1rem;
  font-weight: 700;
}

.m3-infos-carte-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--m3-encre);
  line-height: 1.25;
  margin: 0 0 2.2rem;
}
.m3-infos-carte-titre em {
  color: var(--m3-rouge);
  font-style: italic;
}

.m3-infos-carte-btns {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}


/* ================================================================
   FOOTER — Fond bleu nuit
   ================================================================ */
body.m3-page .footer {
  background: #060e1c;
  border-top: 1px solid rgba(255,255,255,0.05);
}
body.m3-page .footer-brand .footer-logo { color: #ffffff; }
body.m3-page .footer-brand p            { color: rgba(255,255,255,0.4); }
body.m3-page .footer-col h4             { color: rgba(255,255,255,0.5); }
body.m3-page .footer-col li,
body.m3-page .footer-col p              { color: rgba(255,255,255,0.38); opacity: 1; }
body.m3-page .footer-col li i           { color: #b03030; }
body.m3-page .footer-col a:hover        { color: #ffffff; }
body.m3-page .footer-bottom {
  border-top-color: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.28);
}


/* ================================================================
   TYPOGRAPHIE OUTLINE — Cohérence avec le filigrane "MAISON" du hero
   Textes décoratifs en arrière-plan des sections
   ================================================================ */

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

/* Fond clair (parchment) → stroke sombre très atténué */
.m3-section-bg-text--light {
  -webkit-text-stroke: 1px rgba(14,12,10,0.036);
  text-stroke: 1px rgba(14,12,10,0.036);
}

/* "ADRESSE" — légèrement décalé vers le bas pour ne pas gêner le titre */
.m3-section-bg-text--adresse {
  top: 62%;
}

/* ── Isolation z-index pour les sections avec bg-text ─────────── */
.m3-histoire  { overflow: hidden; }
.m3-infos     { position: relative; overflow: hidden; }

body.m3-page .ml-equipe {
  position: relative;
  overflow: hidden;
}

/* Les conteneurs au-dessus du bg-text */
.m3-histoire .container,
.m3-infos .container {
  position: relative;
  z-index: 1;
}
body.m3-page .ml-equipe .container {
  position: relative;
  z-index: 1;
}


/* ================================================================
   NOUS TROUVER — Layout éditorial split
   Texte à gauche · Cartes empilées à droite
   ================================================================ */

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

/* ── Colonne gauche — éditoriale ───────────────────────────────── */
.m3-infos-gauche {
  padding-top: 0.5rem;
  position: relative;
}

/* Mot outline décoratif en fond */
.m3-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;
}

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

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

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

/* ── Colonne droite — cartes empilées ──────────────────────────── */
.m3-infos-droite {
  display: flex;
  flex-direction: column;
}

/* ── Carte verticale — compacte et éditoriale ─────────────────── */
.m3-infos-carte-v {
  /* Padding réduit pour éviter les "longs blocs" */
  padding: 1.5rem 1.8rem;
  background: var(--m3-parchemin-2);
  border: 1px solid var(--m3-gris-clair);
  transition: border-color 0.45s ease;
  position: relative;
}
.m3-infos-carte-v:first-child {
  border-radius: 2px 2px 0 0;
  border-bottom: none;
}
.m3-infos-carte-v:last-child {
  border-radius: 0 0 2px 2px;
  background: var(--m3-parchemin);
  border-top: 1px solid var(--m3-gris-clair);
}
.m3-infos-carte-v:hover {
  border-color: rgba(192,57,43,0.15);
  z-index: 1;
}

/* Séparateur dashed épicerie */
.m3-infos-cv--epicerie {
  border-top-style: dashed !important;
}

/* ── En-tête horizontale compacte : num-outline + label/nom côte à côte ──
   Remplace l'ancienne pile (tag puis h3) — économise ~1.8rem de hauteur.
   Le numéro en outline sert d'icône architecturale, le texte s'empile à côté.
   ──────────────────────────────────────────────────────────────── */
.m3-infos-cv-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

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

/* Dans le contexte cv-head, le nom est directement sous le label */
.m3-infos-cv-head .m3-infos-cv-nom {
  margin: 0;
}

/* Tag : header compact (conservé pour rétrocompatibilité) */
.m3-infos-cv-tag {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}

/* Numéro outline — réduit, ne prend plus de place inutile */
.m3-infos-cv-num-outline {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 2rem;  /* 3rem → 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;
}
.m3-infos-cv--epicerie .m3-infos-cv-num-outline {
  -webkit-text-stroke-color: rgba(14,12,10,0.08);
}

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

/* Nom compact */
.m3-infos-cv-nom {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;  /* 1.65rem → 1.4rem */
  color: var(--m3-encre);
  margin: 0 0 0.2rem;
  line-height: 1;
}

/* Description — séparateur fin, espacements réduits */
.m3-infos-cv-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--m3-gris);
  margin: 0 0 1rem;  /* 1.4rem → 1rem */
  font-style: italic;
  padding-bottom: 0.9rem;  /* 1.2rem → 0.9rem */
  border-bottom: 1px solid var(--m3-gris-clair);
}

/* Liste d'infos — espacements compactés dans le contexte carte */
.m3-infos-carte-v .m3-infos-liste {
  gap: 0.65rem;  /* 1.3rem → 0.65rem */
}
.m3-infos-carte-v .m3-infos-liste li {
  font-size: 0.82rem;  /* 0.92rem → 0.82rem */
  gap: 0.8rem;
  line-height: 1.45;
}
.m3-infos-carte-v .m3-infos-liste li i {
  font-size: 0.72rem;
  margin-top: 0.12rem;
}

/* Actions — margin réduite */
.m3-infos-cv-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;  /* 1.4rem → 1rem */
}

/* Badge animé "En préparation" */
.m3-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(--m3-gris);
  opacity: 0.6;
}

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

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

/* Note descriptive épicerie */
.m3-infos-carte-note {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--m3-gris);
  opacity: 0.55;
  font-style: italic;
  margin: 0;
}


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

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

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

@media (max-width: 768px) {

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

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

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

  .m3-territoire {
    flex: none !important;
    height: 56vw;
    min-height: 220px;
    max-height: 330px;
    transition: height 0.85s var(--m3-ease);
  }

  .m3-territoire + .m3-territoire {
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  /* Contenu toujours visible sur mobile (pas de hover sur touch) */
  .m3-t-desc     { opacity: 1; transform: none; }
  .m3-t-accroche { opacity: 1; transform: none; }
  .m3-t-cta      { opacity: 1; transform: none; }
  .m3-t-citation { opacity: 1; transform: none; }
  .m3-t-meta     { opacity: 0.75; }
  .m3-t-num-fantome { font-size: 18vw; }
  /* Titre outline — stroke plein sur mobile (état comme si hover) */
  .m3-t-titre {
    -webkit-text-stroke-color: rgba(255,255,255,0.88);
  }

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

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

  /* Section bg text — réduit sur mobile */
  .m3-section-bg-text { font-size: 28vw; }

  /* Équipe */
  .m3-equipe { padding: 5rem 1.5rem; }

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

  /* Séparation verticale cartes → devient horizontale sur mobile */
  .m3-territoire + .m3-territoire { border-left: none; }
}

@media (max-width: 480px) {
  .m3-mot-loryna   { letter-spacing: -0.01em; }
  .m3-ouv-univers  { font-size: 0.62rem; gap: 0.7rem; }
  /* Titre outline — minimum 2rem pour que le stroke reste lisible */
  .m3-t-titre      { font-size: 2rem; }
  .m3-uv-citation  { font-size: 1.3rem; }
  .m3-histoire-titre { font-size: 2rem; }
}

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