:root {
  --v900: #1E2A22;
  --v700: #2C3B31;
  --v500: #3F5245;
  --v300: #7D8F81;
  --v200: #B4C0B6;
  --v100: #DDE3DD;
  --papier: #F3F0EB;
  --clair: #FAF7F2;
}

* { box-sizing: border-box; }
/* « overflow-x: hidden » ici empêcherait l'en-tête de rester collé en haut :
   « clip » coupe le débordement horizontal sans créer de conteneur de défilement. */
html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }

/* La grille d'ingénieur */
body {
  margin: 0; 
  color: var(--v900); 
  font: 400 16px/1.6 'Space Grotesk', sans-serif;
  background-color: var(--papier);
  background-image: 
    linear-gradient(to right, var(--v100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--v100) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

/* L'Univers : Conteneur fixe où vivent les motifs animés */
#universe {
  position: fixed;
  top: -10%; left: -10%; width: 120%; height: 120%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

/* La colonne centrale contenant le texte */
main { 
  max-width: 1200px; 
  margin: 0 auto; 
  background: color-mix(in srgb, var(--papier) 40%, transparent); 
  backdrop-filter: blur(5px); 
  -webkit-backdrop-filter: blur(5px);
  border-left: 1px solid var(--v300); 
  border-right: 1px solid var(--v300); 
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

h1, h2, h3 { font-weight: 500; color: var(--v900); margin-top: 0; }
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; margin: 0 0 32px; letter-spacing: -0.01em; }
h3 { font-size: 24px; }
.mono { font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--v500); }

/* En-tête */
header { 
  display: flex; justify-content: space-between; align-items: center; padding: 24px 48px; 
  background: color-mix(in srgb, var(--papier) 85%, transparent); backdrop-filter: blur(8px); 
  border-bottom: 1px solid var(--v900); position: sticky; top: 0; z-index: 10; 
}
.brand { display:flex; align-items:center; gap:16px; border:0; text-decoration: none; color: var(--v900); }
.brand span { font-weight: 600; letter-spacing: .05em; font-size: 20px; text-transform: uppercase; }

/* ======== LE VRAI LOGO ======== */
.brand-icon-container {
  width: 32px; height: 50px; 
  background-color: var(--v700);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.brand:hover .brand-icon-container { transform: translateY(-2px); }
.brand-icon-img {
  width: 20px; height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

nav { display: flex; gap: 32px; }
nav a { text-decoration: none; color: var(--v900); font-weight: 500; }
nav a:hover, nav a.active { color: var(--v500); border-bottom: 1px solid var(--v500); }

/* Layout des sections avec notes en marge */
section { padding: 80px 48px; border-bottom: 1px solid var(--v300); display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.content { max-width: 700px; }

/* La note en marge */
.aside { background: color-mix(in srgb, var(--papier) 95%, white); padding: 24px; border: 1px solid var(--v300); font-size: 14px; line-height: 1.6; box-shadow: 4px 4px 0 var(--v100); position: relative; }
.aside-title { font-family: 'Space Mono', monospace; font-weight: 600; margin-bottom: 12px; display: block; border-bottom: 1px dashed var(--v300); padding-bottom: 8px; }

/* Les notes en marge se suivent de page en page : le lien du bas mène à la
   suivante, et la flèche fait un petit signe toutes les trois secondes. */
.aside { scroll-margin-top: 110px; }
.marge-suite { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 14px 0 6px; border-top: 1px dashed var(--v300);
  min-height: 44px;  /* au doigt, une cible confortable */
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--v500); text-decoration: none;
  transition: color .2s ease; }
.marge-suite:hover, .marge-suite:focus-visible { color: var(--laterite); }
.marge-fleche { display: inline-block; opacity: .6; transition: transform .2s ease, opacity .2s ease;
  animation: marge-appel 3.2s ease-in-out infinite; }
.marge-suite:hover .marge-fleche { animation: none; opacity: 1; transform: translateX(4px); }
@keyframes marge-appel {
  0%, 72%, 100% { transform: translateX(0); opacity: .45; }
  80%           { transform: translateX(6px); opacity: 1; }
  88%           { transform: translateX(2px); opacity: .7; }
}
/* Arrivée par ce lien : la note se signale une fois, puis se calme. */
.aside:target { animation: marge-arrivee 2s ease-out 1; }
@keyframes marge-arrivee {
  0%, 35% { border-color: var(--laterite); box-shadow: 4px 4px 0 var(--v300); }
  100%    { border-color: var(--v300);     box-shadow: 4px 4px 0 var(--v100); }
}
@media (prefers-reduced-motion: reduce) {
  .marge-fleche, .aside:target { animation: none; }
}

.lead { font-size: clamp(18px, 1.8vw, 24px); }

/* Sous le titre de l'accueil : ce que nous faisons, lisible en trois mots gras */
.offre-rapide { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }
.offre-rapide strong { font-weight: 600; color: var(--v900); }

/* Valeurs */
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.values li { border: 1px solid var(--v300); padding: 24px; background: color-mix(in srgb, var(--clair) 80%, transparent); position: relative; backdrop-filter: blur(4px); }
.values b { display: block; font-size: 20px; font-weight: 600; margin-bottom: 12px; }

/* Liste simple Penser / Pousses */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.card { border: 1px solid var(--v300); padding: 32px; background: color-mix(in srgb, var(--clair) 80%, transparent); display: flex; flex-direction: column; gap: 16px; }
.card a { color: var(--v500); text-decoration: none; font-weight: 600; align-self: flex-start; border-bottom: 1px solid var(--v500); }

/* Placeholders images */
.img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: var(--v200);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace; color: var(--v500); font-size: 12px;
  border: 1px dashed var(--v500); margin-top: 24px;
}

/* Animations CSS des motifs */
.particle { position: absolute; opacity: 0; animation: fadeAndMove linear infinite; display: flex; align-items: center; justify-content: center; }
.particle svg { width: 100%; height: 100%; animation: spin linear infinite; }

@keyframes fadeAndMove {
  0% { opacity: 0; transform: translate(0, 0); }
  10% { opacity: 0.85; }
  90% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)); }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Footer */
footer { 
  background: var(--v900); color: var(--v200); 
  padding: 64px 48px; 
  position: relative; z-index: 1;
}
.footer-links { display: flex; gap: 24px; font-family: 'Space Mono', monospace; font-size: 12px; margin-top: 24px; }
.footer-links a { color: var(--v200); text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 900px) { 
  section { grid-template-columns: 1fr; padding: 48px 24px; } 
  main { border-left: 0; border-right: 0; } 
  header, footer { padding: 24px; } 
  .card-grid { grid-template-columns: 1fr; }
}

/* ======== EVENTAIL INTERACTIF (Notre Approche) ======== */
.eventail-container {
  display: flex;
  gap: 16px;
  height: 500px;
  width: 100%;
  margin-top: 32px;
  overflow: hidden;
}

.eventail-leaf {
  flex: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--v900);
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
  will-change: flex, filter, transform;
  filter: blur(2px) grayscale(0.8);
  opacity: 0.6;
}

.eventail-leaf:hover {
  opacity: 0.8;
  filter: blur(1px) grayscale(0.5);
}

.eventail-leaf.active {
  flex: 4;
  filter: blur(0) grayscale(0);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Image de fond de chaque branche */
.eventail-leaf img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: all 0.5s;
  mix-blend-mode: screen; /* Pour se fondre avec le fond vert foncé */
}

.eventail-leaf.active img {
  opacity: 0.9;
  transform: scale(1.05); /* Effet d'agrandissement léger (Focus) */
}

/* Texte replié (Titre vertical) */
.leaf-title-vertical {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.eventail-leaf.active .leaf-title-vertical {
  opacity: 0;
  pointer-events: none;
}

/* Texte déplié (Contenu complet) */
.leaf-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, var(--v900) 0%, color-mix(in srgb, var(--v900) 92%, transparent) 45%, color-mix(in srgb, var(--v900) 55%, transparent) 75%, transparent 100%);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  pointer-events: none;
}

.eventail-leaf.active .leaf-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.leaf-content h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 8px;
}

.leaf-content p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--v100);
}

@media (max-width: 900px) {
  .eventail-container {
    flex-direction: column;
    height: 600px;
  }
  .leaf-title-vertical {
    transform: translate(-50%, -50%) rotate(0deg); /* Horizontal sur mobile */
  }
}

/* ======== A LA UNE (Bento Grid) ======== */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(6, 100px);
  gap: 24px;
  margin-top: 32px;
}

.bento-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--v900);
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

/* Explicit Grid Areas to prevent any Safari/browser auto-placement bugs */
.item-1 { grid-area: 1 / 1 / 7 / 2; }
.item-2 { grid-area: 1 / 2 / 4 / 3; }
.item-3 { grid-area: 4 / 2 / 7 / 3; }
.item-4 { grid-area: 1 / 3 / 3 / 4; }
.item-5 { grid-area: 3 / 3 / 5 / 4; }
.item-6 { grid-area: 5 / 3 / 7 / 4; }

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: screen;
  transition: opacity 0.5s, transform 0.8s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.bento-card:hover img {
  opacity: 0.85;
  transform: scale(1.03);
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  background: linear-gradient(to top, var(--v900) 45%, color-mix(in srgb, var(--v900) 70%, transparent) 75%, transparent);
  width: 100%;
  color: white;
}

.item-2 .bento-content, .item-3 .bento-content { padding: 24px; }
.item-4 .bento-content, .item-5 .bento-content, .item-6 .bento-content { padding: 16px; }

.bento-content .mono {
  color: var(--v200);
  margin-bottom: 8px;
  display: block;
}
.item-4 .bento-content .mono, .item-5 .bento-content .mono, .item-6 .bento-content .mono {
  font-size: 11px;
  margin-bottom: 4px;
}

.bento-content h3 {
  color: white;
  margin: 0 0 8px 0;
  font-size: 24px;
}
.item-2 .bento-content h3, .item-3 .bento-content h3 { font-size: 20px; }
.item-4 .bento-content h3, .item-5 .bento-content h3, .item-6 .bento-content h3 { font-size: 16px; margin: 0; }

.bento-content p {
  color: var(--v100);
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.item-2 .bento-content p, .item-3 .bento-content p { font-size: 14px; }
/* Les petites cases gardent aussi leur phrase : c'est elle qui dit ce que nous faisons. */
.item-4 .bento-content p, .item-5 .bento-content p, .item-6 .bento-content p { font-size: 13px; margin-top: 6px; }

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-rows: 250px;
  }
  .bento-card {
    grid-area: auto / 1 / auto / 2 !important;
  }
  .item-4 .bento-content p, .item-5 .bento-content p, .item-6 .bento-content p { font-size: 14px; }
}
/* ======== ANIMATION MISSION ======== */
.anim-verb {
  position: relative;
  display: inline-block;
  font-weight: 700;
  z-index: 1;
}
.anim-verb::before {
  content: '';
  position: absolute;
  bottom: 6px;
  left: -4px;
  right: -4px;
  height: 14px;
  background: var(--v200);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: highlight-verb 6s infinite ease-in-out;
}
.verb-1::before { animation-delay: 0s; }
.verb-2::before { animation-delay: 2s; }
.verb-3::before { animation-delay: 4s; }

@keyframes highlight-verb {
  0%, 10% { transform: scaleX(0); transform-origin: left; }
  15%, 45% { transform: scaleX(1); transform-origin: left; }
  50%, 100% { transform: scaleX(0); transform-origin: right; }
}

/* ======== LE JARDIN (ARBRE ARCHITECTURAL) ======== */
.sycomore-tree {
  position: relative;
  max-width: 800px;
  margin: 64px auto 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.tree-trunk {
  position: absolute;
  top: 0; bottom: -48px; left: 50%;
  width: 1px;
  background: var(--v300);
  transform: translateX(-50%);
}
.tree-branch {
  position: relative;
  width: 50%;
  display: flex;
  align-items: center;
}
.tree-branch.left {
  align-self: flex-start;
  justify-content: flex-end;
  padding-right: 48px;
}
.tree-branch.right {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 48px;
}
.tree-branch::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--v300);
}
.tree-branch.left::before { right: 0; }
.tree-branch.right::before { left: 0; }

.leaf-node {
  background: white;
  border: 1px solid var(--v100);
  padding: 16px 24px;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
  max-width: 280px;
}
.leaf-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--v300);
}
.leaf-node::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--v700);
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--papier);
}
.tree-branch.left .leaf-node::after { right: -51px; }
.tree-branch.right .leaf-node::after { left: -51px; }

.leaf-name {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--v500);
  margin-bottom: 8px;
}
.leaf-phrase {
  display: block;
  font-size: 15px;
  color: var(--v900);
  font-style: italic;
}

.btn-graine {
  display: inline-block;
  background: var(--v900);
  color: white;
  padding: 16px 32px;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-graine:hover {
  transform: translateY(-2px);
  background: var(--v700);
}

@media (max-width: 700px) {
  .tree-trunk { left: 24px; }
  .tree-branch.left, .tree-branch.right {
    width: 100%;
    padding-left: 72px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .tree-branch.left::before, .tree-branch.right::before {
    left: 24px; right: auto;
  }
  .tree-branch.left .leaf-node::after, .tree-branch.right .leaf-node::after {
    left: -51px; right: auto;
  }
}

/* ======== LE JARDIN HORIZONTAL ======== */
.jardin-horizontal-wrapper {
  margin: 48px -24px 0 -24px;
  padding: 24px 0 64px 0;
  position: relative;
}

.jardin-horizontal-wrapper::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--v200);
  z-index: 0;
  opacity: 0.5;
}

.jardin-horizontal {
  display: flex;
  gap: 24px;
  padding: 0 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: flex-start;
  min-height: 250px;
  position: relative;
  z-index: 1;
}
.jardin-horizontal::-webkit-scrollbar { display: none; }

.feuille-jardin {
  flex: 0 0 280px;
  background: color-mix(in srgb, var(--v100) 40%, transparent);
  border: 1px solid var(--v200);
  padding: 32px 24px;
  /* FORME DE FEUILLE : Coins asymétriques */
  border-radius: 4px 48px 4px 48px;
  scroll-snap-align: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: default;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  /* Text */
  color: var(--v900);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.feuille-jardin p {
  font-size: 16px;
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 24px 0;
}

.feuille-jardin .auteur {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--v500);
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.4s ease;
}

.feuille-jardin:hover {
  background: var(--v900);
  border-color: var(--v900);
  color: white;
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}
.feuille-jardin:hover .auteur {
  color: var(--v200);
}

/* Staggering the leaves to make it organic */
.feuille-jardin.style-1 { align-self: flex-start; margin-top: 0; }
.feuille-jardin.style-2 { align-self: center; margin-top: 40px; border-radius: 48px 4px 48px 4px; }
.feuille-jardin.style-3 { align-self: flex-end; margin-top: 80px; }

@media (max-width: 700px) {
  .jardin-horizontal { padding: 0 24px; }
  .feuille-jardin { flex: 0 0 240px; }
}


/* ======== LE JARDIN LUXURIANT (GRAINES / FLOCONS) ======== */
.jardin-luxuriant-bg {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 700px;
  background-color: transparent;
  padding: 80px 48px;
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
}

.jardin-illustration-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.4; /* Increased transparency as requested */
}

.jardin-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom; /* Fix truncation: keeps the right side (tree) visible */
  filter: contrast(1.4) brightness(1.1); /* Forces off-white to pure white to blend perfectly */
}

.seed-node {
  position: absolute;
  z-index: 5;
  cursor: pointer;
  /* Initial translation offset for the float animation */
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-15px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

/* Add staggered delays to the seeds directly based on their DOM position to make them float organically */
.seed-node:nth-child(2) { animation-delay: 0s; }
.seed-node:nth-child(3) { animation-delay: -2s; animation-duration: 7s; }
.seed-node:nth-child(4) { animation-delay: -4s; animation-duration: 5s; }
.seed-node:nth-child(5) { animation-delay: -1s; animation-duration: 8s; }

.seed-core {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px rgba(255,255,255,0.8), 0 0 24px 8px rgba(180,192,182,0.6);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.seed-node:hover .seed-core {
  transform: scale(1.5);
  background: var(--v900);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 0 0 6px rgba(255,255,255,0.9);
}

.seed-popup {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%) translateX(20px);
  background: white;
  border: 1px solid var(--v100);
  padding: 8px 24px 8px 8px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  pointer-events: none;
}

.seed-node:hover .seed-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.seed-node:hover .seed-popup[style*="right"] {
  transform: translateY(-50%) translateX(0);
}

.seed-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--papier);
}

.seed-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seed-text p {
  margin: 0;
  font-size: 15px;
  color: var(--v900);
  font-style: italic;
  font-weight: 500;
}

.seed-name {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--v500);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .jardin-luxuriant-bg { padding: 48px 24px; height: 100vh; }
  .seed-popup { white-space: normal; width: 280px; padding: 12px; flex-direction: column; align-items: flex-start; border-radius: 16px; }
}

/* ======== PARTNERS ECOSYSTEM ======== */
.partners-da-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 48px;
}

.partner-da-item {
  padding: 32px 24px;
  background: color-mix(in srgb, var(--papier) 50%, transparent);
  border: 1px solid var(--v200);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.partner-da-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--v900);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.partner-da-item svg {
  color: var(--v700);
  transition: all 0.4s ease;
  z-index: 1;
}

.partner-da-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--v900);
  line-height: 1.4;
  z-index: 1;
  transition: all 0.4s ease;
}

.partner-da-item:hover {
  border-color: var(--v900);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.partner-da-item:hover::before {
  opacity: 1;
}

.partner-da-item:hover svg,
.partner-da-item:hover .partner-da-name {
  color: var(--papier);
}

.real-logo {
  max-width: 140px;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.2) opacity(0.7);
  mix-blend-mode: multiply;
  transition: all 0.4s ease;
  z-index: 1;
}

.partner-da-item:hover .real-logo {
  filter: grayscale(100%) contrast(200%) brightness(1000%);
  mix-blend-mode: normal;
}

/* ------------------------------------------------------------------
   Formulaire de contact et pages légales
------------------------------------------------------------------ */
.form { margin-top: 48px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form legend { padding: 0; margin-bottom: 16px; }
.portes { display: grid; gap: 12px; }
.porte {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--v300); padding: 20px 24px 20px 56px;
  background: color-mix(in srgb, var(--clair) 80%, transparent);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.porte:hover { border-color: var(--v500); }
.porte input { position: absolute; left: 22px; top: 24px; accent-color: var(--v500); width: 16px; height: 16px; }
.porte:has(input:checked) { border-color: var(--v500); box-shadow: 4px 4px 0 var(--v100); background: color-mix(in srgb, var(--clair) 95%, transparent); }
.porte:has(input:focus-visible) { outline: 2px solid var(--v500); outline-offset: 2px; }
.porte-titre { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.porte-texte { display: block; font-size: 14px; color: var(--v500); line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.champ { margin: 0 0 24px; }
.champ label { display: block; font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--v500); margin-bottom: 8px; }
.champ .opt { text-transform: none; letter-spacing: 0; opacity: .7; }
.champ input[type="text"], .champ input[type="email"], .champ textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--v900);
  background: color-mix(in srgb, var(--clair) 90%, transparent);
  border: 1px solid var(--v300); border-radius: 0; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; min-height: 160px; line-height: 1.6; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--v500); box-shadow: 4px 4px 0 var(--v100); }
.champ input:user-invalid, .champ textarea:user-invalid { border-color: #A8552F; }
.champ-case label { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--v900); display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.champ-case input { accent-color: var(--v500); width: 16px; height: 16px; margin-top: 3px; flex: none; }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 8px 0 0; }
.btn-envoyer {
  font: inherit; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  background: var(--v900); color: var(--clair); border: 1px solid var(--v900);
  padding: 16px 32px; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-envoyer:hover { background: var(--v500); border-color: var(--v500); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--v200); }
.btn-envoyer[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-note { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--v500); }
.form-statut { margin-top: 24px; padding: 0; font-size: 15px; line-height: 1.6; }
.form-statut.ok { border-left: 3px solid var(--v500); padding: 12px 16px; background: color-mix(in srgb, var(--clair) 85%, transparent); }
.form-statut.ko { border-left: 3px solid #A8552F; padding: 12px 16px; background: color-mix(in srgb, var(--clair) 85%, transparent); color: #7a3d21; }

.texte-legal { margin-top: 40px; max-width: 42em; }
.texte-legal h2 { font-size: 22px; margin: 40px 0 12px; }
.texte-legal p { line-height: 1.7; margin-bottom: 16px; }
.texte-legal a { color: var(--v500); }
.texte-legal .maj { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--v500); margin-top: 48px; }

@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-actions { gap: 16px; }
}

/* Jardin : état de départ, avant les premières contributions */
.jardin-vide {
  position: relative; z-index: 5; max-width: 520px; margin-top: 32px;
  border-left: 2px solid var(--v500); padding: 4px 0 4px 24px;
  text-shadow: 0 2px 10px var(--papier);
}
.jardin-vide p { margin: 0 0 12px; }
.jardin-vide p:last-child { margin-bottom: 0; font-size: 16px; line-height: 1.6; max-width: 46ch; }
a.btn-graine { text-decoration: none; display: inline-block; }

/* Lisibilité renforcée du texte des cartes de valeurs */
.eventail-leaf.active img { filter: brightness(0.82) saturate(0.9); }
.leaf-content h3, .leaf-content p { text-shadow: 0 1px 12px rgba(30,42,34,.55); }

/* ------------------------------------------------------------------
   Visuels encadrés (actualités) : cadre minimal et teinte de la maison
------------------------------------------------------------------ */
.visuel {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--v700);
  border: 1px solid var(--v300); box-shadow: 4px 4px 0 var(--v100);
}
.visuel img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .78; mix-blend-mode: luminosity;
  transition: opacity .5s ease, mix-blend-mode .5s ease, transform .8s ease;
}
.actu-card:hover .visuel img { opacity: .95; mix-blend-mode: normal; transform: scale(1.02); }
.visuel .etiquette {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--v900); color: var(--clair);
  font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; padding: 4px 12px;
}
.actu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 48px; }
.actu-card { display: flex; flex-direction: column; gap: 16px; }
.actu-card .quand { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--v500); margin-bottom: 8px; }
.actu-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.actu-card p { margin: 0 0 12px; font-size: 15px; color: var(--v700); line-height: 1.55; }
.actu-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.actu-faits li { font-family: 'Space Mono', monospace; font-size: 11.5px; color: var(--v500); padding-left: 16px; position: relative; line-height: 1.5; }
.actu-faits li::before { content: '→'; position: absolute; left: 0; }

/* ------------------------------------------------------------------
   Le manifeste : un rouleau que l'on déroule
------------------------------------------------------------------ */
.rouleau { max-width: 720px; margin-top: 40px; }
.rouleau-bouton {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; cursor: pointer; font: inherit; text-align: left;
  background: color-mix(in srgb, var(--clair) 85%, transparent);
  border: 1px solid var(--v300); border-bottom: 2px solid var(--v500);
  padding: 20px 24px; color: var(--v900);
  transition: background .25s, box-shadow .25s;
}
.rouleau-bouton:hover { background: color-mix(in srgb, var(--clair) 95%, transparent); box-shadow: 4px 4px 0 var(--v100); }
.rouleau-libelle { font-family: 'Space Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--v500); }
.rouleau-fleche { font-size: 18px; color: var(--v500); transition: transform .4s ease; }
.rouleau-bouton[aria-expanded="true"] .rouleau-fleche { transform: rotate(180deg); }

.rouleau-contenu {
  overflow: hidden;
  border: 1px solid var(--v300); border-top: 0;
  background: color-mix(in srgb, var(--clair) 70%, transparent);
  transition: max-height .9s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
}
.rouleau-contenu[hidden] { display: block; }          /* on anime au lieu de masquer */
.rouleau[data-ferme="oui"] .rouleau-contenu { max-height: 0; opacity: 0; border-bottom-width: 0; }
.rouleau-texte { padding: 40px 48px 48px; position: relative; }
.rouleau-texte::after {
  content: ''; position: absolute; left: 48px; right: 48px; bottom: 24px; height: 1px;
  background: repeating-linear-gradient(to right, var(--v300) 0 8px, transparent 8px 16px);
}
.rouleau-texte p { font-size: 18px; line-height: 1.75; margin: 0 0 28px; }
.rouleau-chute { font-size: 20px !important; color: var(--v500); }

/* Les valeurs en détail */
.valeurs-detail { list-style: none; counter-reset: v; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.valeurs-detail li {
  border-left: 2px solid var(--v500); padding: 4px 0 4px 24px;
  background: linear-gradient(to right, color-mix(in srgb, var(--clair) 55%, transparent), transparent 60%);
}
.valeur-num { display: block; margin-bottom: 8px; }
.valeurs-detail h3 { font-size: 24px; margin: 0 0 12px; }
.valeurs-detail p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.valeur-refus { color: var(--v500); }
.valeur-refus .mono { font-size: 11px; letter-spacing: .08em; }

@media (max-width: 700px) {
  .rouleau-texte { padding: 28px 24px 32px; }
  .rouleau-texte p { font-size: 16px; }
}

/* ------------------------------------------------------------------
   Pages des pousses
------------------------------------------------------------------ */
.pousse-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pousse-entete h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.pousse-titre { font-size: clamp(17px, 1.6vw, 21px); color: var(--v500); margin: 0; max-width: 34ch; }
.statut {
  font-family: 'Space Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 14px; border: 1px solid var(--v500); color: var(--v500); white-space: nowrap;
}
.statut-en { background: color-mix(in srgb, var(--clair) 80%, transparent); }
.statut-prototype { border-style: dashed; }

.pousse-corps { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.pousse-visuel { aspect-ratio: 1 / 1; }
.pousse-chapo { font-size: 17px; line-height: 1.7; margin: 0 0 24px; }
.pousse-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pousse-points li { padding-left: 24px; position: relative; font-size: 15px; line-height: 1.6; color: var(--v700); }
.pousse-points li::before { content: '·'; position: absolute; left: 6px; top: -2px; color: var(--v500); font-size: 22px; }
.pousse-lien { margin: 28px 0 0; }
.pousse-lien a { font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: .06em; color: var(--v500); border-bottom: 1px solid var(--v300); text-decoration: none; }
.pousse-lien a:hover { border-color: var(--v500); }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--v300); }
.chiffres dt { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; color: var(--v500); line-height: 1.1; }
.chiffres dd { margin: 6px 0 0; font-size: 14px; color: var(--v700); line-height: 1.5; max-width: 28ch; }

@media (max-width: 860px) {
  .pousse-corps { grid-template-columns: 1fr; gap: 28px; }
  .pousse-visuel { aspect-ratio: 4 / 3; }
}

/* Écosystème : un bandeau de noms, large et bas */
.partners-compact { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 40px; }
.partners-compact .partner-da-item { padding: 18px 16px; min-height: 0; align-items: center; justify-content: center; text-align: center; gap: 0; }
.partners-compact .partner-da-name { font-size: 13.5px; line-height: 1.35; }
@media (min-width: 1100px) { .partners-compact { grid-template-columns: repeat(4, 1fr); } }
.pousse-attente { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--v300); }
@media (min-width: 1100px) { .actu-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* ==================================================================
   MOBILE — corrections d'ensemble
   ================================================================== */

/* En-tête : le nom respire, la navigation se met sur sa propre ligne */
@media (max-width: 760px) {
  header {
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px 20px 12px;
  }
  .brand span { font-size: 17px; }
  .brand-icon-container { width: 34px; height: 34px; }
  nav {
    display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px; -webkit-overflow-scrolling: touch;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: 13px; white-space: nowrap; }
}

/* L'éventail (valeurs et offres) devient un accordéon tactile.
   Le survol n'existe pas au doigt : chaque carte affiche donc son titre en clair,
   et s'ouvre quand on la touche. */
@media (max-width: 900px) {
  .eventail-container {
    display: grid; grid-template-columns: 1fr; height: auto;
    gap: 12px; overflow: visible;
  }
  .eventail-leaf {
    flex: none; display: block; min-height: 0; border-radius: 6px;
    filter: none !important; opacity: 1 !important; transform: none !important;
    cursor: pointer;
    transition: box-shadow .35s ease;
  }
  .eventail-leaf img { opacity: .3 !important; transform: none !important; transition: opacity .4s ease; }
  .eventail-leaf.active { box-shadow: 0 8px 24px rgba(30,42,34,.22); }
  .eventail-leaf.active img { opacity: .5 !important; }

  /* Le titre replié : lisible, horizontal, avec un chevron */
  .leaf-title-vertical {
    position: relative; inset: auto; transform: none; opacity: 1 !important;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 20px; letter-spacing: .16em; font-size: 12.5px; text-align: left;
    white-space: normal; pointer-events: none;
  }
  .leaf-title-vertical::after {
    content: '+'; font-family: 'Space Mono', monospace; font-size: 18px;
    font-weight: 400; transition: transform .35s ease; flex: none;
  }
  .eventail-leaf.active .leaf-title-vertical { opacity: 1 !important; pointer-events: none; }
  .eventail-leaf.active .leaf-title-vertical::after { content: '−'; }

  /* Le contenu déplié */
  .leaf-content {
    position: relative; inset: auto; width: 100%;
    opacity: 0; max-height: 0; overflow: hidden; padding: 0 20px;
    transform: none !important; pointer-events: none; background: none;
    transition: max-height .45s cubic-bezier(.22,.61,.36,1), opacity .3s ease, padding .35s ease;
  }
  .eventail-leaf.active .leaf-content {
    opacity: 1 !important; max-height: 420px; padding: 0 20px 26px; pointer-events: auto;
  }
  .leaf-content h3 { font-size: 21px; line-height: 1.25; margin-bottom: 10px; }
  .eventail-leaf.titre-double .leaf-content h3 { display: none; }
  .titre-double .leaf-title-vertical { font-size: 14px; letter-spacing: .1em; }
  .leaf-content p { font-size: 15px; }
}

/* Pousses, chiffres, actualités, formulaire, jardin */
@media (max-width: 760px) {
  h1 { font-size: clamp(30px, 8vw, 40px); }
  .pousse-entete { flex-direction: column; gap: 16px; }
  .pousse-titre { max-width: none; }
  .chiffres { grid-template-columns: 1fr 1fr; gap: 20px; }
  .chiffres dt { font-size: 26px; }
  .chiffres dd { font-size: 13px; }
  .actu-grid { gap: 28px; }
  .visuel { aspect-ratio: 16 / 10; }
  .partners-compact { grid-template-columns: 1fr 1fr; }
  .valeurs-detail { grid-template-columns: 1fr; gap: 24px; }
  .porte { padding: 16px 16px 16px 48px; }
  .porte input { left: 16px; top: 20px; }
  .btn-envoyer { width: 100%; text-align: center; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-note { text-align: center; }
  .jardin-vide { border-left-width: 2px; padding-left: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .aside { font-size: 13.5px; }
}

/* Très petits écrans : on évite tout débordement horizontal */
@media (max-width: 400px) {
  section { padding: 40px 16px; }
  header, footer { padding: 16px; }
  .chiffres { grid-template-columns: 1fr; }
  .partners-compact { grid-template-columns: 1fr; }
}

/* Respect du réglage « moins d'animations » du système */
@media (prefers-reduced-motion: reduce) {
  .anim-verb::before { animation: none; transform: scaleX(1); opacity: .5; }
  .particle, .particle svg, .seed-node { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* Le jardin : bouton placé en bas de l'illustration sur grand écran,
   dans le fil du texte sur mobile. */
.jardin-action { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); z-index: 10; }
@media (max-width: 900px) {
  .jardin-luxuriant-bg { height: auto; min-height: 0; padding: 56px 24px 64px; }
  .jardin-action { position: static; transform: none; margin-top: 32px; }
  .jardin-illustration-wrapper { opacity: .28; }
}
/* Accessibilité : on voit où l'on est au clavier */
.eventail-leaf:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--v500); outline-offset: 3px;
}
.langues { margin-left: auto; letter-spacing: .06em; }
.langues strong { color: var(--clair); font-weight: 600; }
.langues a { color: var(--v200); }
@media (max-width: 760px) { .langues { margin-left: 0; } }

/* Bouton de langue : petit carré vert dans l'en-tête */
.btn-langue {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  background: var(--v500); color: var(--clair);
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .06em;
  border: 1px solid var(--v500); border-radius: 4px; text-decoration: none;
  transition: background .25s ease, transform .2s ease, color .25s ease;
}
.btn-langue:hover { background: var(--v900); border-color: var(--v900); transform: translateY(-1px); color: var(--clair); }
@media (max-width: 760px) {
  header {
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    grid-template-areas: "marque langue" "nav nav"; gap: 12px;
  }
  header .brand { grid-area: marque; }
  header nav { grid-area: nav; }
  .btn-langue { grid-area: langue; width: 32px; height: 32px; }
}
