/* Accueil institutionnel. Les fiches projet conservent les styles communs. */
.home {
  --home-night: #1c1326;
  --home-line: #dfd5e2;
  --home-amber: #f99b35;
  --home-orange: #f99b35;
  --home-caption: #f99b35;
  --home-thread: #f99b35;
  --home-direction: 1;
  --home-pad: clamp(56px, 7.7vw, 118px);
  --radius: 18px;
  background: #fdfbfc;
}

.home .section { padding-block: var(--home-pad); }
.home h2 { font-size: clamp(2.1rem, 4.2vw, 3.8rem); }
.home .section-head { margin-block-end: clamp(26px, 4vw, 46px); }
.home .section-head p { max-inline-size: 52ch; font-size: 1.11rem; }
.home .eyebrow { letter-spacing: .12em; text-transform: uppercase; }

.home-icon {
  display: block;
  flex: none;
  inline-size: 20px;
  block-size: 20px;
}

[dir="rtl"] .home { --home-direction: -1; }

.home :is(.icon-forward, .icon-external) { transform: scaleX(var(--home-direction)); }

.home .header { background: white; }
.home .main-nav a { font-size: .95rem; }

.home .main-nav .nav-contact {
  padding-inline: 15px;
  border: 1px solid #e4d1d2;
  border-radius: 9px;
}

.home .main-nav .nav-contact:hover { background: #fbede3; }
.home .langs { border: 0; }
.home .langs a { min-inline-size: 55px; border-radius: 18px; }
.home .langs a.active { background: #eee1ee; color: var(--purple); }
.home .menu-btn { border-radius: 16px; }

.home .hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 83% 55%, #412046 0%, transparent 57%),
    #151020;
}

.home .hero::before {
  inset: 0;
  opacity: .45;
  background: url('methode-relief.webp') center 48% / cover;
  mask-image: linear-gradient(90deg, transparent 18%, black 92%);
}

.home .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #f6e5ff12 1px, transparent 1px),
    linear-gradient(#f6e5ff12 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 82% 36%, black, transparent 68%);
}

[dir="rtl"] .home .hero::before { mask-image: linear-gradient(270deg, transparent 18%, black 92%); }
[dir="rtl"] .home .hero::after { mask-image: radial-gradient(ellipse at 18% 36%, black, transparent 68%); }

.home .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(52px, 7vw, 100px) clamp(48px, 6vw, 84px);
}

.home .hero .eyebrow {
  margin-block-end: clamp(16px, 2.3vw, 26px);
  color: var(--orange);
  font-size: .8rem;
}

.home .hero .eyebrow i {
  inline-size: 8px;
  block-size: 8px;
  box-shadow: 0 0 0 4px #f99b3524;
}

.home .hero h1 {
  font-size: clamp(2.82rem, 5.35vw, 5.05rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.home .hero h1 em { display: block; margin-block-start: .09em; color: var(--home-amber); }
.home .hero p { margin-block: 23px 26px; font-size: clamp(1.08rem, 1.55vw, 1.25rem); color: #eee2ef; }
.home .cta-row { gap: 11px; }

.home .btn {
  gap: 10px;
  min-block-size: 48px;
  border-radius: 9px;
  padding-inline: 16px;
  transition: background-color .18s, border-color .18s;
}

.home .btn.primary {
  color: #2c1a23;
  background: var(--home-orange);
  border-color: var(--home-orange);
}

.home .btn.primary:hover { background: #ffad56; border-color: #ffad56; }
.home .btn.primary:active { background: #e98620; border-color: #e98620; }

.home .btn.outline {
  padding-inline: 9px;
  color: white;
  border-color: transparent;
  text-decoration: underline;
  text-decoration-color: #be8e7c;
  text-underline-offset: .3em;
}

.home .btn.outline:hover { background: #f6c4af12; text-decoration-color: currentColor; }
.home .btn .home-icon { inline-size: 18px; block-size: 18px; }

.field-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  min-inline-size: 0;
  padding: 5px;
  background: var(--home-caption);
  border: 1px solid var(--home-caption);
  border-radius: 14px 14px 9px 9px;
  color: #35222e;
  transition: background-color .2s;
}

.field-frame:hover { background: #fff1e4; }

.field-frame img {
  inline-size: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
  object-position: center 54%;
  border-radius: 9px 9px 4px 4px;
}

.field-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-block: 10px 7px;
  padding-inline: 12px 9px;
}

.field-caption > span:first-child { display: flex; align-items: center; gap: 12px; }
.field-caption > span:first-child > svg { color: #88465d; }
.field-caption strong, .field-caption small { display: block; line-height: 1.3; }
.field-caption strong { font-size: 1.09rem; }
.field-caption small { color: #634854; margin-block-start: 3px; font-size: .88rem; }
.field-action {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border-inline-start: 1px solid #be9b94;
  color: #88465d;
}

.field-thread {
  display: block;
  inline-size: 100%;
  block-size: clamp(22px, 2.4vw, 32px);
  overflow: visible;
  pointer-events: none;
  transform: scaleX(var(--home-direction));
}

.field-thread path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.thread-track { stroke: var(--home-thread); stroke-width: 1.2; }
.thread-flow { stroke: var(--home-orange); stroke-width: 1.8; opacity: 0; }

.field-links { display: grid; grid-template-columns: 58% 42%; }
.field-links a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-block-size: 46px;
  margin-inline: 4px;
  padding: 8px 5px;
  color: #fff2e6;
  border-block-end: 1px solid #b88b7772;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
  transition: background-color .18s, border-color .18s;
}

.field-links a::before {
  position: absolute;
  inset-inline-start: calc(50% - 3px);
  inset-block-start: -3px;
  inline-size: 6px;
  block-size: 6px;
  border-radius: 50%;
  background: var(--home-orange);
  content: '';
  pointer-events: none;
}

.field-links a:hover, .field-links a:focus-visible {
  background: #f99b351a;
  border-block-end-color: var(--home-orange);
}

.field-links svg { color: var(--home-orange); inline-size: 16px; block-size: 16px; }

/* Mosaïque documentaire du héros. Trois terrains, trois accès directs. */
.terrain-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(180px, .78fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-block-size: clamp(410px, 35vw, 520px);
}

.terrain-mosaic::before {
  position: absolute;
  z-index: -1;
  inset: -26px;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 68% 35%, #f99b3533, transparent 54%);
  filter: blur(8px);
}

.terrain-card {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  min-inline-size: 0;
  min-block-size: 0;
  border: 1px solid #ffffff42;
  border-radius: 6px 22px 6px 22px;
  background: #24162c;
  box-shadow: 0 16px 44px #10081352;
}

.terrain-card-main {
  grid-row: 1 / -1;
  border-radius: 22px 6px 22px 6px;
}

.terrain-card::before {
  position: absolute;
  z-index: 3;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 3px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--orange) 32%, #ffc06f 50%, var(--orange) 68%, transparent);
  transform: scaleX(.22);
  transform-origin: center;
  opacity: .9;
}

.terrain-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, #140c19d9 76%, #140c19 100%);
}

.terrain-card img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}

.terrain-card-main img { object-position: center center; }
.terrain-card:nth-child(2) img { object-position: center 44%; }

.terrain-overlay {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-end: 0;
  display: grid;
  gap: 3px;
  padding: clamp(15px, 2vw, 25px);
  padding-inline-end: clamp(54px, 5vw, 68px);
  color: white;
}

.terrain-overlay small {
  color: var(--orange);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.terrain-overlay strong {
  font-family: var(--heading);
  font-size: clamp(1.08rem, 1.55vw, 1.48rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.terrain-card-main .terrain-overlay strong { font-size: clamp(1.55rem, 2.7vw, 2.45rem); }
.terrain-overlay > span { color: #f1e9ef; font-size: .9rem; line-height: 1.35; }

.terrain-arrow {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 17px;
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  color: var(--orange);
  font: 400 1.15rem/1 Arial, sans-serif;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}

.terrain-card:hover img,
.terrain-card:focus-visible img { transform: scale(1.045); filter: saturate(1.08) contrast(1.03); }
.terrain-card:hover .terrain-arrow,
.terrain-card:focus-visible .terrain-arrow { color: #1c1326; background: var(--orange); border-color: var(--orange); transform: translate(2px,-2px); }

[dir="rtl"] .terrain-overlay strong { letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .terrain-arrow { transform: scaleX(-1); }
[dir="rtl"] .terrain-card:hover .terrain-arrow,
[dir="rtl"] .terrain-card:focus-visible .terrain-arrow { transform: scaleX(-1) translate(2px,-2px); }

.home .news-section { padding-block: clamp(34px, 4.1vw, 62px); background: #f5edf6; }
.home .news-layout { grid-template-columns: minmax(0, .62fr) minmax(0, 2.38fr); gap: clamp(20px, 3.6vw, 52px); }
.home .news-layout h2 { font-size: clamp(2rem, 3.4vw, 3.05rem); }
.home .news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

.home .news-grid article {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  padding: clamp(16px, 2.5vw, 26px);
  border: 1px solid #e5d4e6;
  border-radius: var(--radius);
  background: #fdfbfc;
}

.news-icon, .contact-mark {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  margin-block-end: 13px;
  border-radius: 11px;
  color: var(--purple);
  background: #f0e3f1;
}

.home .news-grid h3 { margin-block: 7px; }
.home .news-grid .text-link { margin-block-start: 6px; }

.home #terrains { background: #fdfbfc; }
.home .section-head h2 { text-wrap: balance; }

.home .filters {
  gap: 7px;
  margin-block-end: 26px;
}

.home .filter {
  border-radius: 9px;
  padding-inline: 16px;
  transition: background-color .18s, border-color .18s;
}

.home .filter[aria-pressed="false"]:hover { background: #f6f1f7; border-color: #a46c87; }
.home .project-toggle:hover { background: #f6f1f7; }
.home .project { background: #fff; }
.home .project:hover, .home .project:focus-within { border-color: #9b5a9b; }
.home .cover { aspect-ratio: 1.76; }
.home .cover img { transition: transform .27s; }
.home .project:hover .cover img { transform: scale(1.025); }

.home #project-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.catalog-photo figcaption {
  padding: 9px 20px;
  background: #f8efe8;
  color: #5c4448;
  font-size: .9rem;
  line-height: 1.45;
}
.home .catalog-photo .cover { aspect-ratio: 2.35; }
.home .project-brief h3 a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.project-brief .project-emblem {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 11px;
  background: #f5ecf4;
}
.home .project-brief h3 .project-emblem svg {
  inline-size: 25px;
  block-size: 25px;
  margin: 0;
  color: var(--purple);
}
.home .project-brief .project-text { gap: 12px; padding: 22px; }
@media (min-width: 751px) {
  #project-list:has(.project-brief[data-category="education"]:not([hidden])):has(.project-brief[data-category="research"]:not([hidden])) > .project:first-child {
    grid-row: span 2;
  }
}
@media (max-width: 750px) {
  .home #project-list { grid-template-columns: minmax(0, 1fr); }
}
.home .project-text { padding: 17px 20px 25px; }
.home .project h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

.home .project h3 a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.home .project h3 svg { color: #934e68; margin-block-start: .15em; }
.home .project p { line-height: 1.48; }

.home #vision {
  inline-size: 100%;
  max-inline-size: none;
  padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  background: #f2eaf3;
}

.home .vision-copy { gap: 12px; padding-block-start: 0; }
.home .vision-copy .lead { line-height: 1.48; }
.home .values { margin-block-start: 38px; }
.home .values article { border-block-color: #d7c6db; }
.home .values h3 { font-size: clamp(1.16rem, 1.55vw, 1.43rem); }

.home .certification-teaser {
  display: inline-flex;
  gap: 13px;
  max-inline-size: 100%;
  margin-block-start: 7px;
  padding: 7px 13px;
  border: 1px solid #dfcfe1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.home .certification-teaser:hover { border-color: var(--purple); }
.home .certification-teaser img { inline-size: 62px; }
.home .certification-teaser strong, .home .certification-teaser small { display: block; }
.home .certification-teaser strong { line-height: 1.25; }
.home .certification-teaser small { color: var(--purple); }
.home .certification-teaser > svg { color: var(--purple); inline-size: 16px; block-size: 16px; }

.home #expertises {
  color: white;
  background: radial-gradient(ellipse at 95% 0%, #4b244e, transparent 75%), var(--home-night);
}

.home #expertises .eyebrow { color: var(--home-amber); }
.home #expertises p { color: #e5d5e9; }

.home .expertise {
  margin-block-start: 0;
  gap: 1px;
  border: 1px solid #816585;
  border-radius: var(--radius);
  overflow: hidden;
  background: #816585;
}

.home .expertise article {
  padding: clamp(19px, 3vw, 32px);
  border: 0;
  background: #281a33;
}

.expertise-icon {
  display: grid;
  place-items: center;
  inline-size: 50px;
  block-size: 50px;
  margin-block-end: 18px;
  border: 1px solid #a47a97;
  border-radius: 14px;
  background: #4b2c4f;
  color: var(--home-amber);
}

.expertise-icon .home-icon { inline-size: 26px; block-size: 26px; }

.home .steps { gap: 28px 0; }

.home .steps article {
  position: relative;
  border-block-start: 1px solid #cbaab6;
  padding-block-start: 14px;
  padding-inline-end: clamp(14px, 3vw, 36px);
}

.home .steps article::before, .home .steps article::after {
  position: absolute;
  inset-inline-start: 0;
  content: '';
  pointer-events: none;
}

.home .steps article::before {
  z-index: 1;
  inset-block-start: -5px;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: #a4576e;
}

.home .steps article::after {
  inset-block-start: -1px;
  inline-size: 100%;
  block-size: 1px;
  background: #9c4b64;
  opacity: 0;
  transform-origin: left;
}

[dir="rtl"] .home .steps article::after { transform-origin: right; }

.home .step-no { font-size: .9rem; }

.home .method-feature {
  margin-block-start: clamp(30px, 5vw, 62px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  background: #151020;
}

.home .method-art img { aspect-ratio: 1.6; object-fit: cover; }
[dir="rtl"] .home .method-art img { transform: scaleX(-1); }
.home .method-copy { padding: clamp(22px, 4vw, 50px); }
.home .method-copy h3 { font-size: clamp(1.65rem, 3.15vw, 2.9rem); }

.home .results { background: #f2eaf3; color: var(--ink); }
.home .results .eyebrow, .home .journey-card strong { color: var(--purple); }
.home .results p { color: var(--muted); }

.home .journey-grid { gap: 0; }
.home .journey-card { position: relative; padding-block-start: 24px; padding-inline-end: clamp(16px, 3.5vw, 48px); border-block-color: #b79ab9; }

.home .journey-card::before {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: 0;
  inline-size: 11px;
  block-size: 11px;
  border: 2px solid #f2eaf3;
  border-radius: 50%;
  background: var(--purple);
  content: '';
}

.home #recherche .pub { grid-template-columns: minmax(50px, .18fr) minmax(0, 1fr); }
.home #recherche .pub h3 { text-align: start; }
.home .research-note { border-radius: 0 12px 12px 0; }
[dir="rtl"] .home .research-note { border-radius: 12px 0 0 12px; }

.home #cooperations { background: #f5eff6; }
.home #cooperations .values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.home #cooperations .media {
  align-items: center;
  margin-block-start: 16px;
  padding: clamp(15px, 3vw, 32px);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: #fdfbfc;
}

.home .partners-section { padding-block: var(--home-pad); background: #fdfbfc; }
.home .partner-group { margin-block-start: 29px; }
.home .logo-band { overflow: hidden; border-radius: 12px; }
.home .logo-slot { min-block-size: 110px; }

.home .contact {
  isolation: isolate;
  position: relative;
  background: radial-gradient(ellipse at 90% 110%, #592451, transparent 65%), var(--home-night);
}

.home .contact::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: .17;
  background:
    radial-gradient(ellipse at 85% 120%, transparent 39%, #efe0f1 39.2% 39.35%, transparent 39.6%),
    radial-gradient(ellipse at 82% 120%, transparent 44%, #efe0f1 44.2% 44.35%, transparent 44.6%),
    radial-gradient(ellipse at 79% 120%, transparent 49%, #efe0f1 49.2% 49.35%, transparent 49.6%);
}

.home .contact-grid { align-items: end; }
.home .contact-grid p { max-inline-size: 50ch; font-size: 1.1rem; }
.home .contact-mark { background: #512f51; color: var(--home-amber); }
.home .contact p.email { font-size: .95rem; text-align: start; }
[dir="rtl"] .home .contact p.email { text-align: end; }
.home footer { background: var(--dark); }

[dir="rtl"] .home .hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.9rem);
  line-height: 1.4;
  letter-spacing: 0;
}

[dir="rtl"] .home .eyebrow { letter-spacing: 0; }

@media (max-width: 1000px) {
  .home .main-nav .nav-contact { border: 0; padding-inline: 8px; }
}

@media (max-width: 900px) {
  .home .news-layout { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 780px) {
  .home .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 34px 39px; }
  .home .hero h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); }
  [dir="rtl"] .home .hero h1 { font-size: clamp(2.1rem, 7.7vw, 4rem); }
  .home .hero p { margin-block: 14px 19px; }
  .home .hero::before, [dir="rtl"] .home .hero::before { mask-image: linear-gradient(transparent, black); }
  .home .field-frame img { aspect-ratio: 1.66; }
  .home #cooperations .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terrain-mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 320px 210px; min-block-size: 0; }
  .terrain-card-main { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 520px) {
  .home .hero-grid { gap: 21px; }
  .home .langs a { min-inline-size: 38px; }
  .home .hero .eyebrow { margin-block-end: 15px; }
  .home .hero h1 { letter-spacing: -.06em; }
  .home .cta-row { gap: 7px; }
  .home .cta-row .btn { padding-inline: 11px; font-size: .86rem; }
  .home .cta-row .home-icon { inline-size: 15px; block-size: 15px; }
  .field-caption { padding-inline: 6px; }
  .field-caption > span:first-child { gap: 6px; }
  .field-caption small { font-size: .82rem; }
  .field-links a { font-size: .85rem; }
  .home .news-grid { grid-template-columns: minmax(0, 1fr); }
  .home .values { margin-block-start: 27px; }
  .home .filter { padding-inline: 11px; font-size: .88rem; }
  .home .steps { row-gap: 21px; }
  .home .steps p { font-size: .95rem; }
  .home .method-feature { grid-template-columns: minmax(0, 1fr); }
  .home .method-art { max-block-size: none; }
  .home .method-art img { aspect-ratio: 1.9; }
  .home .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .home .journey-card { border-block: 0; border-inline-start: 1px solid #b79ab9; padding-block: 0 22px; padding-inline: 19px 0; }
  .home .journey-card:last-child { padding-block-end: 0; }
  .home .journey-card::before { inset-block-start: 8px; inset-inline-start: -6px; }
  .home .logo-slot { min-block-size: 95px; }
  .terrain-mosaic { grid-template-columns: minmax(0,1fr); grid-template-rows: 300px 190px 190px; gap: 8px; }
  .terrain-card-main { grid-column: auto; }
  .terrain-overlay { padding: 16px; padding-inline-end: 56px; }
}

@media (max-width: 360px) {
  .home .hero h1 { font-size: 2.46rem; }
  .home .cta-row .btn { font-size: .83rem; padding-inline: 9px; gap: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home .icon-forward, .home .icon-down { transition: translate .18s ease-out; }

  .home :is(a:hover, a:focus-visible) .icon-forward,
  .home :is(.project:hover, .project:focus-within) .icon-forward {
    translate: calc(var(--home-direction) * 3px) 0;
  }

  .home :is(a:hover, a:focus-visible) .icon-down { translate: 0 3px; }

  .field-thread.is-connected .thread-flow {
    stroke-dasharray: 1;
    animation: trace-terrain 1.35s ease-out both;
  }

  .home .steps article.is-connected::after { animation: trace-method .65s ease-out both; }
  .home .steps article:nth-child(3n + 2)::after { animation-delay: .09s; }
  .home .steps article:nth-child(3n)::after { animation-delay: .18s; }

  .terrain-mosaic.is-connected .terrain-card::before { animation: terrain-signal 1.15s ease-out both; }
  .terrain-mosaic.is-connected .terrain-card:nth-child(2)::before { animation-delay: .12s; }
  .terrain-mosaic.is-connected .terrain-card:nth-child(3)::before { animation-delay: .24s; }
}

@keyframes terrain-signal {
  0% { opacity: 0; transform: scaleX(0); }
  45% { opacity: 1; transform: scaleX(1); }
  100% { opacity: .9; transform: scaleX(.22); }
}

@keyframes trace-terrain {
  0% { stroke-dashoffset: 1; opacity: 0; }
  14% { opacity: 1; }
  76% { stroke-dashoffset: 0; opacity: .95; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes trace-method {
  0% { opacity: 0; transform: scaleX(0); }
  20% { opacity: 1; }
  75% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .home .project:hover .cover img { transform: none; }
  .terrain-card:hover img, .terrain-card:focus-visible img { transform: none; }
}

@media print {
  .home .hero .eyebrow, .home .hero h1 em, .home .hero p,
  .home #expertises .eyebrow, .home #expertises p, .home .contact p { color: #151020; }
  .home .hero, .home #expertises, .home .expertise article, .home .contact { color: #151020; background: white; }
  .home .hero::after, .home .contact::before, .home .method-art { display: none; }
  .home .section { padding-block: 18px; }
}


/* The directory and home share the same reading rhythm and field photography. */
.home .hero {
  background: radial-gradient(ellipse at 83% 32%, #63355f, transparent 48%), linear-gradient(115deg,#201523,#281a33 62%,#35253d);
}
.home .hero::before { opacity: .63; }
.home .hero-grid { padding-block: clamp(40px,6.2vw,91px); }
.home .hero .btn.primary,.home .contact .btn.primary { border-radius: 999px; padding-inline: 22px; }
.home .hero .btn.outline { border-radius: 999px; padding-inline: 16px; border: 1px solid #af929e; text-decoration: none; }
.home .field-frame { border-radius: 22px 22px 12px 12px; box-shadow: 0 15px 55px #10081345; }
.home .field-frame img { border-radius: 17px 17px 5px 5px; }
.route-icon { display: block; inline-size: 24px; block-size: 24px; flex: none; }
.route-icon.go { inline-size: 19px; block-size: 19px; }
[dir=rtl] .route-icon.go { transform: scaleX(-1); }
.audience-section,.field-selection,.service-details { padding-block: clamp(46px,6.7vw,96px); }
.audience-section h2,.field-selection h2 { margin: 0; }
.profile-grid,.service-details,.selected-projects { display: grid; gap: 16px; }
.profile-grid { margin-block-start: 28px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; }
.profile-link { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 22px 9px; border-block-end: 1px solid #d8ced8; color: #312235; }
.service-icon { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 14px 14px 14px 3px; background: #efe4f0; color: #692d69; }
.profile-link:nth-child(3n + 2) .service-icon,.service-entry:nth-child(3n + 2) .service-icon { background:#f9e7d6; color:#733f25; }
.profile-link:nth-child(3n) .service-icon,.service-entry:nth-child(3n) .service-icon { background:#e2eee9; color:#345746; }
.profile-link strong,.profile-link small { display: block; line-height: 1.35; }
.profile-link strong { font-size: clamp(1.1rem,1.8vw,1.35rem); }
.profile-link small { margin-block-start: 3px; font-size: 1rem; color: #625465; }
.profile-link>.go { color:#773c75; }
.profile-link:hover,.profile-link:focus-visible { background:#f4eef4; }
.field-selection { background:#f2edf2; }
.selection-head { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap: 16px; margin-block-end:32px; }
.route-link,.service-actions a { display:inline-flex; align-items:center; min-block-size:44px; gap:9px; color:#693266; font-weight:650; text-decoration:underline; text-underline-offset:4px; }
.selected-projects { grid-template-columns:repeat(3,minmax(0,1fr)); }
.selected-projects .project { min-inline-size:0; align-self: stretch; }
.selected-projects .project .cover { aspect-ratio:1.65; }
.selected-projects .project h3 { font-size:clamp(1.35rem,2.4vw,2rem); }
.directory-head { position:relative; isolation:isolate; overflow:hidden; color:#fff8f3; background:linear-gradient(110deg,#25192c,#37203c 62%,#543455); }
.directory-head::before { content:""; position:absolute; z-index:-1; inset:0; background:url('methode-relief.webp') center 52% / cover; opacity:.28; mask-image:linear-gradient(100deg,transparent,#000 90%); }
.directory-intro { padding-block:clamp(32px,5.6vw,78px); }
.directory-intro h1 { margin:14px 0 10px; font-size:clamp(2.65rem,6.2vw,5.7rem); line-height:1.06; color:white; letter-spacing:-.045em; }
.directory-intro p { margin:0; max-inline-size:54ch; font-size:clamp(1.1rem,1.8vw,1.35rem); color:#f3e6ee; }
.crumb { display:inline-flex; align-items:center; min-block-size:44px; color:var(--orange); text-decoration:underline; text-underline-offset:4px; }
.service-details { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.service-entry { min-inline-size:0; scroll-margin-block-start:100px; display:grid; grid-template-columns:auto minmax(0,1fr); align-content:start; gap:16px; padding:clamp(20px,3vw,36px); border:1px solid #dacdda; border-radius:20px 20px 20px 5px; background:white; }
.service-entry:target { border-color:#783f76; box-shadow:0 0 0 2px #783f7633; }
.home .service-entry h2 { margin:4px 0 12px; font-size:clamp(1.5rem,2.5vw,2.2rem); }
.service-entry p { margin:0; }
.service-entry .profile-label { color:#6c4767; font-weight:600; }
.service-actions { display:flex; flex-wrap:wrap; gap:4px 18px; margin-block-start:14px; }
.home.route-actualites .news-layout { display:block; }
.home.route-projets #terrains { padding-block-start:clamp(32px,5vw,68px); }
[dir=rtl] .directory-intro h1 { line-height:1.5; letter-spacing:normal; }
@media (max-width:780px) {
  .selected-projects,.service-details { grid-template-columns:1fr; }
  .selected-projects { gap:24px; }
  .profile-grid { grid-template-columns:1fr; }
  .profile-link { padding-block:15px; }
}
@media (max-width:420px) {
  .service-entry { grid-template-columns:1fr; gap:12px; }
}
@media (prefers-reduced-motion:no-preference) {
  @keyframes route-arrival { from { transform:translateY(9px); } to { transform:translateY(0); } }
  @keyframes route-signal { from { transform:scaleX(0); } to { transform:scaleX(1); } }
  .hero-copy,.directory-intro,.service-entry.is-connected,.profile-link.is-connected,.selected-projects .is-connected { animation:route-arrival .5s ease-out both; }
  .profile-link::after { content:""; position:absolute; inset-inline-start:9px; bottom:-1px; block-size:2px; inline-size:38px; background:#a7698c; }
  .profile-link.is-connected::after { transform-origin:left; animation:route-signal .75s ease-out both; }
  [dir=rtl] .profile-link.is-connected::after { transform-origin:right; }
}

