/* Page Histoire — mise en page et frise animée sur smartphone */
@media (max-width: 760px) {
  body.histoire-page .history-wow-hero {
    min-height: 0 !important;
    padding: 112px 20px 32px !important;
    gap: 20px !important;
  }

  body.histoire-page .history-wow-copy h1 {
    max-width: 19ch !important;
    margin: 12px 0 18px !important;
    font-size: 2rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
  }

  body.histoire-page .hm-intro {
    max-width: 34ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  body.histoire-page .history-wow-pills {
    display: none;
  }

  body.histoire-page .history-wow-visual {
    min-height: 180px !important;
    border-radius: 8px;
  }

  body.histoire-page .history-main-logo {
    width: 58%;
  }

  body.histoire-page .history-app-float {
    width: 32%;
    max-width: 150px;
  }

  body.histoire-page .history-mini-card {
    padding: 8px 10px;
    border-radius: 8px;
  }

  body.histoire-page .history-mini-card strong {
    font-size: 0.85rem;
  }

  body.histoire-page .history-mini-card span {
    font-size: 0.65rem;
  }

  /* Frise chronologique */
  body.histoire-page .timeline-section {
    padding: 32px 24px 48px;
  }

  body.histoire-page .timeline-section .section-title {
    margin: 12px 0 28px;
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  body.histoire-page .timeline-grid {
    position: relative;
    display: block;
    margin: 0 0 0 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    overflow: visible;
  }

  /* Ligne violette qui progresse au défilement */
  body.histoire-page .timeline-grid::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 2px;
    background: linear-gradient(180deg, #8278ff 0%, #6257ff 65%, rgba(98, 87, 255, 0.38) 100%);
    box-shadow: 0 0 12px rgba(98, 87, 255, 0.42);
    transform: scaleY(1);
    transform-origin: top;
    pointer-events: none;
  }

  body.histoire-page .timeline-grid .timeline-item,
  body.histoire-page .hm-origin {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0 0 32px 22px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  body.histoire-page .timeline-grid .timeline-item::before,
  body.histoire-page .history-recognition-v69::before,
  body.histoire-page .hm-origin::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 6px;
    left: -4px;
    width: 7px;
    height: 7px;
    border: 1px solid rgba(160, 153, 255, 0.7);
    border-radius: 50%;
    background: #11101d;
    box-shadow: 0 0 0 4px rgba(98, 87, 255, 0.08);
    opacity: 0.55;
    transform: scale(0.85);
  }

  body.histoire-page .timeline-grid .timeline-item > span,
  body.histoire-page .hm-date {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    padding: 0;
    background: none;
    color: var(--logada2);
    box-shadow: none;
    font-size: 0.75rem;
    font-weight: 700;
  }

  body.histoire-page .timeline-item h3,
  body.histoire-page .hm-origin h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: 0;
  }

  body.histoire-page .timeline-item p,
  body.histoire-page .hm-origin .lead {
    max-width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.75;
  }

  body.histoire-page .hm-duplicate {
    display: none !important;
  }

  /* Étape de reconnaissance intégrée à la frise */
  body.histoire-page .history-recognition-v69 {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 32px 22px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  body.histoire-page .history-recognition-orbit {
    display: none;
  }

  body.histoire-page .history-recognition-v69 h2,
  body.histoire-page .history-recognition-v69 h3 {
    margin: 8px 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
    letter-spacing: 0;
  }

  body.histoire-page .history-recognition-v69 > p {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  body.histoire-page .history-recognition-v69 .section-kicker {
    color: var(--logada2);
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  /* Les portraits des fondateurs */
  body.histoire-page .team-story-section {
    padding: 12px 0 40px;
  }

  body.histoire-page .team-story-head {
    margin-bottom: 24px;
    padding: 0 20px;
  }

  body.histoire-page .team-story-head .section-title {
    margin: 10px 0 18px;
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }

  body.histoire-page .team-story-head > p:last-child {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  body.histoire-page .founders-editorial.founders-editorial {
    display: flex;
    flex-direction: row;
    align-items: start;
    gap: 16px;
    padding: 0 20px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.histoire-page .founders-editorial::-webkit-scrollbar {
    display: none;
  }

  body.histoire-page .founder-editorial-card,
  body.histoire-page .founder-editorial-card.reverse {
    display: flex;
    flex: 0 0 86%;
    flex-direction: column;
    max-width: 360px;
    min-height: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    box-shadow: none;
    scroll-snap-align: start;
    overflow: hidden;
  }

  body.histoire-page .founder-editorial-card .founder-editorial-media {
    flex: 0 0 auto;
    height: 190px !important;
    min-height: 0 !important;
    border-radius: 8px;
  }

  body.histoire-page .founder-editorial-copy {
    padding: 18px 0 0;
  }

  body.histoire-page .founder-index {
    display: none;
  }

  body.histoire-page .founder-editorial-copy h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
    letter-spacing: 0;
  }

  body.histoire-page .founder-editorial-copy .role {
    min-height: 2.8em;
    margin: 0 0 12px;
    font-size: 0.7rem;
    line-height: 1.6;
    letter-spacing: 0;
  }

  body.histoire-page .founder-editorial-copy p:not(.role) {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  body.histoire-page .hm-bio summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-top: 1px solid var(--border);
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    list-style: none;
  }

  body.histoire-page .hm-bio summary::-webkit-details-marker {
    display: none;
  }

  body.histoire-page .hm-bio summary::after {
    content: "+";
    color: var(--logada2);
    font-size: 1.3rem;
  }

  body.histoire-page .hm-bio[open] summary::after {
    content: "−";
  }

  body.histoire-page .founder-mission {
    padding: 12px 0;
    border-width: 1px 0 0;
    border-radius: 0;
    background: none;
    font-size: 0.85rem;
  }

  body.histoire-page .hm-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
  }

  body.histoire-page .hm-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  body.histoire-page .hm-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
  }

  body.histoire-page .hm-dot[aria-current="true"]::before {
    background: var(--logada);
  }

  body.histoire-page .hm-dot:focus-visible,
  body.histoire-page .hm-bio summary:focus-visible {
    outline: 2px solid var(--logada2);
    outline-offset: 2px;
  }

  /* Galerie des coulisses */
  body.histoire-page .team-secret-entry {
    margin: 36px 20px 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
  }

  body.histoire-page .secret-entry-copy {
    padding: 0;
  }

  body.histoire-page .secret-entry-copy h3 {
    margin: 10px 0;
    font-size: 1.4rem;
    line-height: 1.25;
    letter-spacing: 0;
  }

  body.histoire-page .secret-entry-copy p:not(.section-kicker) {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  body.histoire-page .team-secret-strip.team-secret-strip {
    display: flex !important;
    gap: 14px;
    padding: 20px 0 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.histoire-page .memory-phone-card {
    flex: 0 0 76%;
    scroll-snap-align: start;
  }

  body.histoire-page .memory-phone-card figure {
    height: 250px;
    border-radius: 8px;
    transform: none;
  }

  body.histoire-page .memory-phone-card img {
    height: 100%;
    object-fit: cover;
  }

  body.histoire-page .secret-gallery-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 8px 0 0;
    font-size: 0.85rem;
  }

  /* Manifeste */
  body.histoire-page .story-manifesto {
    margin: 0;
    padding: 28px 20px 48px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  body.histoire-page .story-manifesto h2 {
    margin: 12px 0 20px;
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
  }

  body.histoire-page .story-manifesto p {
    margin: 0 0 16px;
    font-size: 0.94rem;
    line-height: 1.75;
  }

  body.histoire-page .story-manifesto .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 24px;
  }

  /* Animation de la ligne et des points dans les navigateurs compatibles */
  @supports (animation-timeline: view()) {
    body.histoire-page .timeline-grid::after {
      animation: history-mobile-timeline-draw 1s linear both;
      animation-timeline: view(block);
      animation-range: entry 0% exit 100%;
    }

    body.histoire-page .timeline-grid .timeline-item::before {
      animation: history-mobile-timeline-node 1s linear both;
      animation-timeline: view(block);
      animation-range: entry 35% cover 55%;
    }
  }

  @keyframes history-mobile-timeline-draw {
    from {
      transform: scaleY(0);
    }
    to {
      transform: scaleY(1);
    }
  }

  @keyframes history-mobile-timeline-node {
    from {
      opacity: 0.5;
      transform: scale(0.85);
      background: #11101d;
      box-shadow: 0 0 0 4px rgba(98, 87, 255, 0.08);
    }
    to {
      opacity: 1;
      transform: scale(1.12);
      background: #8278ff;
      box-shadow:
        0 0 0 4px rgba(98, 87, 255, 0.16),
        0 0 16px rgba(130, 120, 255, 0.8);
    }
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  body.histoire-page .timeline-grid::after {
    animation: none !important;
    transform: scaleY(1);
  }

  body.histoire-page .timeline-grid .timeline-item::before {
    animation: none !important;
    opacity: 1;
    transform: none;
    background: #8278ff;
  }
}
/* Page Histoire — ouverture mobile */
@media (max-width: 760px) {
  body.histoire-page .history-wow-hero {
    gap: 18px !important;
    padding: 104px 20px 30px !important;
  }

  body.histoire-page .history-wow-bg::before {
    background:
      radial-gradient(circle at 72% 38%, rgba(88, 80, 255, 0.24), transparent 48%),
      linear-gradient(180deg, rgba(4, 4, 10, 0.58) 0%, rgba(4, 4, 10, 0.7) 55%, rgba(4, 4, 10, 0.82) 100%);
  }

  body.histoire-page .history-wow-bg img[src*="agency-sofa-daniel-gautier"] {
    object-position: center 46% !important;
    filter: saturate(1.06) contrast(1.02) brightness(0.72) !important;
    opacity: 0.68 !important;
  }

  body.histoire-page .history-wow-copy .section-kicker {
    margin-bottom: 10px;
    color: #a49aff;
  }

  body.histoire-page .history-wow-copy h1 {
    max-width: none !important;
    margin: 10px 0 16px !important;
    font-size: clamp(1.9rem, 8.4vw, 2.25rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance;
  }

  body.histoire-page .history-wow-copy .lead {
    max-width: 38ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.65;
  }

  body.histoire-page .history-wow-visual {
    min-height: 218px !important;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 24px;
    background:
      radial-gradient(circle at 52% 36%, rgba(91, 78, 255, 0.24), transparent 58%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(15, 14, 28, 0.58));
    box-shadow:
      0 20px 55px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.histoire-page .history-main-logo {
    z-index: 1;
    top: 10%;
    left: 8%;
    width: 66%;
  }

  body.histoire-page .history-app-float {
    z-index: 2;
    right: 2%;
    bottom: 5%;
    width: 34%;
    max-width: 130px;
    opacity: 0.95;
  }

  body.histoire-page .history-mini-card {
    z-index: 3;
    right: 7%;
    bottom: 8%;
    left: 7%;
    max-width: none;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(17, 16, 29, 0.76);
  }

  body.histoire-page .history-mini-card strong {
    font-size: 0.82rem;
  }

  body.histoire-page .history-mini-card span {
    font-size: 0.66rem;
    line-height: 1.45;
  }

  body.histoire-page .history-orbit {
    opacity: 0.5;
  }
}
/* Page Histoire — cartes des fondateurs mobile */
@media (max-width: 760px) {
  body.histoire-page .team-story-head > p:last-child {
    max-width: 38ch;
    margin-bottom: 22px;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  body.histoire-page .founders-editorial.founders-editorial {
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
    margin: 0;
    padding: 0 20px 12px;
    scroll-padding-inline: 20px;
  }

  body.histoire-page .founder-editorial-card,
  body.histoire-page .founder-editorial-card.reverse {
    box-sizing: border-box;
    flex: 0 0 calc(100vw - 40px);
    width: calc(100vw - 40px);
    max-width: none;
    scroll-snap-align: start;
  }

  body.histoire-page .founder-editorial-card .founder-editorial-media {
    height: clamp(205px, 58vw, 245px) !important;
    overflow: hidden;
  }

  body.histoire-page .founder-editorial-copy {
    padding: 18px 2px 0;
  }

  body.histoire-page .founder-editorial-copy .role {
    min-height: 0;
    margin-bottom: 12px;
    line-height: 1.55;
  }

  body.histoire-page .founder-editorial-copy p:not(.role) {
    max-width: 52ch;
    line-height: 1.65;
  }
}
/* Profils des fondateurs — cartes mobiles */
@media (max-width: 760px) {
  body.histoire-page .founders-editorial.founders-editorial {
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
    margin: 0;
    padding: 0 20px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  body.histoire-page .founder-editorial-card,
  body.histoire-page .founder-editorial-card.reverse {
    box-sizing: border-box;
    flex: 0 0 calc(100vw - 40px);
    width: calc(100vw - 40px);
    max-width: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.histoire-page .founder-editorial-card .founder-editorial-media {
    height: clamp(215px, 58vw, 245px) !important;
    overflow: hidden;
    border-radius: 16px;
  }

  body.histoire-page .founder-editorial-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.histoire-page .founder-loick img {
    object-position: center 34%;
  }

  body.histoire-page .founder-gautier img {
    object-position: center 30%;
  }

  body.histoire-page .founder-daniel img {
    object-position: center 36%;
  }

  body.histoire-page .founder-editorial-copy {
    padding: 18px 2px 0;
  }

  body.histoire-page .founder-editorial-copy .role {
    min-height: 0;
    margin-bottom: 12px;
  }

  body.histoire-page .founder-editorial-copy .hm-short {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.65;
  }

  body.histoire-page .hm-bio {
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }

  body.histoire-page .hm-bio summary {
    min-height: 46px;
    border-top: 0;
    color: #fff;
    font-weight: 650;
  }

  body.histoire-page .hm-bio > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
  }

  body.histoire-page .founder-mission {
    margin-top: 8px;
    padding: 14px 0 2px;
    border-top: 1px solid var(--border);
  }
}

/* Révision mobile du 16 novembre 2026 — ordinateur et tablette inchangés. */
@media (max-width: 760px) {
  /* Héros : photo claire, voile limité au bas et signature sans cadre. */
  body.histoire-page .history-wow-hero {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 24px !important;
    min-height: 0 !important;
    padding: 96px 18px 0 !important;
  }

  body.histoire-page .history-wow-bg::before {
    background: linear-gradient(
      to top,
      rgba(3, 3, 6, 0.94) 0%,
      rgba(3, 3, 6, 0.58) 24%,
      rgba(3, 3, 6, 0) 45%
    );
  }

  body.histoire-page .history-wow-bg img[src*="agency-sofa-daniel-gautier"] {
    filter: saturate(1.02) contrast(1.02) brightness(0.9) !important;
    opacity: 0.88 !important;
  }

  body.histoire-page .history-wow-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 0 !important;
    height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }

  body.histoire-page .history-wow-visual::before,
  body.histoire-page .history-app-float,
  body.histoire-page .history-mini-card {
    display: none;
  }

  body.histoire-page .history-main-logo {
    position: static;
    width: auto;
    height: 32px;
    max-width: 150px;
    object-fit: contain;
    filter: none;
  }

  body.histoire-page .hm-hero-signature {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }

  body.histoire-page .history-wow-copy .section-kicker,
  body.histoire-page .timeline-section > .reveal .section-kicker,
  body.histoire-page .team-story-head .section-kicker,
  body.histoire-page .secret-entry-copy .section-kicker {
    background: linear-gradient(115deg, #d2ceff 0%, var(--logada2) 48%, var(--logada) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  body.histoire-page .history-wow-copy h1 {
    max-width: none !important;
    margin: 12px 0 18px !important;
    font-size: clamp(1.625rem, 8.4vw, 2.25rem) !important;
    font-weight: 950;
    line-height: 1.08 !important;
    letter-spacing: -0.065em !important;
    text-wrap: initial;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
  }

  body.histoire-page .hm-title-line {
    display: block;
    white-space: nowrap;
  }

  body.histoire-page .history-wow-copy .lead {
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  }

  body.histoire-page .history-orbit {
    opacity: 0.35;
  }

  /* Un intervalle régulier de 56 px entre les grands blocs. */
  body.histoire-page .timeline-section {
    margin: 56px 0 0;
    padding: 0;
  }

  body.histoire-page .timeline-section > .reveal {
    padding: 0 20px;
  }

  body.histoire-page .timeline-section .section-title {
    margin: 12px 0 0;
  }

  body.histoire-page .hm-timeline-rail {
    height: 1px;
    margin: 26px 20px 20px;
    background: linear-gradient(90deg, var(--logada), rgba(130, 120, 255, 0.12));
    opacity: 0.7;
  }

  body.histoire-page .timeline-grid {
    position: relative;
    display: flex !important;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px 12px;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body.histoire-page .timeline-grid::-webkit-scrollbar {
    display: none;
  }

  body.histoire-page .timeline-grid::after,
  body.histoire-page .timeline-grid .timeline-item::before,
  body.histoire-page .history-recognition-v69::before,
  body.histoire-page .history-recognition-orbit {
    display: none;
  }

  body.histoire-page .timeline-grid .timeline-item,
  body.histoire-page .timeline-grid .history-recognition-v69 {
    position: relative;
    display: flex;
    flex: 0 0 min(280px, calc(100vw - 56px));
    flex-direction: column;
    align-items: flex-start;
    width: min(280px, calc(100vw - 56px));
    min-height: 270px;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    box-shadow: none;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.histoire-page .history-recognition-v69 > div {
    display: contents;
  }

  body.histoire-page .timeline-grid .hm-timeline-date,
  body.histoire-page .history-recognition-v69 .section-kicker.hm-timeline-date {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 18px;
    padding: 0;
    background: none;
    color: var(--logada2);
    box-shadow: none;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  body.histoire-page .timeline-grid .hm-timeline-title,
  body.histoire-page .history-recognition-v69 h3.hm-timeline-title {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }

  body.histoire-page .timeline-grid .hm-timeline-summary,
  body.histoire-page .history-recognition-v69 > p.hm-timeline-summary {
    display: -webkit-box;
    max-width: 100%;
    min-height: 3.3em;
    margin: auto 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  body.histoire-page .hm-timeline-status {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    margin: 10px 20px 0;
  }

  body.histoire-page .hm-timeline-count {
    min-width: 48px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  body.histoire-page .hm-timeline-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }

  body.histoire-page .hm-timeline-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--logada2);
    transform: scaleX(0.1667);
    transform-origin: left;
    transition: transform 180ms ease-out;
  }

  body.histoire-page .timeline-grid:focus-visible {
    outline: 2px solid var(--logada2);
    outline-offset: 2px;
  }

  /* Trois profils comparables, au même ratio et avec le même filtre. */
  body.histoire-page .team-story-section {
    margin: 56px 0 0;
    padding: 0;
  }

  body.histoire-page .team-story-head {
    margin: 0 0 26px;
    padding: 0 20px;
  }

  body.histoire-page .team-story-head .section-title {
    margin: 10px 0 18px;
  }

  body.histoire-page .team-story-head > p:last-child {
    margin: 0;
  }

  body.histoire-page .founders-editorial.founders-editorial {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  body.histoire-page .founder-editorial-card,
  body.histoire-page .founder-editorial-card.reverse {
    display: flex;
    flex: 0 0 min(280px, calc(100vw - 56px));
    flex-direction: column;
    width: min(280px, calc(100vw - 56px));
    max-width: none;
    min-height: 0;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    box-shadow: none;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.histoire-page .founder-editorial-card .founder-editorial-media {
    flex: 0 0 auto;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
  }

  body.histoire-page .founder-editorial-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.05) brightness(0.9);
  }

  body.histoire-page .founder-loick img {
    object-position: center 32%;
  }

  body.histoire-page .founder-gautier img {
    object-position: center 28%;
  }

  body.histoire-page .founder-daniel img {
    object-position: center 32%;
  }

  body.histoire-page .founder-editorial-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
  }

  body.histoire-page .founder-editorial-copy h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.2;
  }

  body.histoire-page .founder-editorial-copy .role {
    min-height: 0;
    margin: 0 0 14px;
    color: var(--logada2);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.55;
  }

  body.histoire-page .founder-editorial-copy p.hm-short {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    line-height: 1.65;
  }

  body.histoire-page .founder-mission {
    display: block;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
  }

  body.histoire-page .founder-mission strong,
  body.histoire-page .hm-bio {
    display: none;
  }

  body.histoire-page .hm-dots {
    margin: 4px 20px 0;
  }

  body.histoire-page .founders-editorial:focus-visible {
    outline: 2px solid var(--logada2);
    outline-offset: 2px;
  }

  /* Coulisses et manifeste suivent le même rythme vertical. */
  body.histoire-page .team-secret-entry {
    margin: 56px 20px 0;
    padding: 0;
    border-top: 0;
  }

  body.histoire-page .story-manifesto {
    margin: 56px 0 0;
    padding: 0 20px 56px;
    border: 0;
    background: none;
    box-shadow: none;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  body.histoire-page .hm-timeline-progress > span {
    transition: none;
  }
}
