/* Jolie Machine: site-wide custom styles (the "standard Odoo blocks only" rule was lifted by the owner on 2026-11-25).
   Loaded from the website's custom head code as /jm/media/site.css. Colours come from the Odoo theme variables
   (--o-color-1 accent, --o-color-3 paper alt, --o-color-4 paper, --o-color-5 ink), so the Theme tab still drives them.
   Motion: load animations and scroll-driven reveals are CSS only, are skipped under prefers-reduced-motion, in
   browsers without animation-timeline (content is then simply shown) and in the Website editor. */

:root {
  --jm-ink: var(--o-color-5, #14213d);
  --jm-accent: var(--o-color-1, #b93a0a);
  --jm-paper: var(--o-color-4, #fbf8f2);
  --jm-paper-alt: var(--o-color-3, #f3ede1);
  --jm-line: color-mix(in srgb, var(--jm-ink) 14%, transparent);
  --jm-ease: cubic-bezier(.2, .7, .2, 1);
  --jm-spring-snap: .39s linear(0, .188, .508, .769, .929, 1.003, 1.027, 1.026, 1.018, 1.009, 1.003, 1);
  --jm-spring-soft: .81s linear(0, .064, .21, .387, .561, .713, .834, .924, .984, 1.021, 1.04, 1.046, 1.044, 1.038, 1.03, 1.022, 1.014, 1.009, 1.004, 1.001, .999, .998, .998, .998, 1);
  --jm-spring-firm: .51s linear(0, .12, .333, .531, .686, .796, .87, .919, .95, .97, .982, .989, .993, .996, .998, 1);
}

/* ---------- shared ---------- */
.jm-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.jm-eyebrow::before { content: ""; width: 2.5rem; height: 2px; background: var(--jm-accent); }
.jm-display { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; }
.jm-section { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.jm-ink.jm-ink { background-color: var(--jm-ink); }
.jm-ink .jm-eyebrow::before, .jm-hero .jm-eyebrow::before { background: #fff; }

.jm-photo { position: relative; overflow: hidden; border-radius: 10px; margin: 0; }
.jm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jm-photo--tall { aspect-ratio: 4 / 5; }
.jm-photo--wide { aspect-ratio: 4 / 3; }

/* ---------- hero ---------- */
.jm-hero.jm-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(92vh, 62rem);
  padding-block: clamp(6rem, 12vh, 10rem) clamp(3rem, 7vh, 5.5rem);
  background-color: var(--jm-ink);
}
.jm-hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
}
.jm-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--jm-ink) 94%, transparent) 0%, color-mix(in srgb, var(--jm-ink) 78%, transparent) 42%, color-mix(in srgb, var(--jm-ink) 12%, transparent) 100%),
    linear-gradient(0deg, color-mix(in srgb, var(--jm-ink) 70%, transparent) 0%, transparent 45%);
}
.jm-hero h1 {
  max-width: 17ch; margin-bottom: 1.75rem;
  font-size: clamp(2.5rem, 1.1rem + 5vw, 5rem); line-height: 1.02; letter-spacing: -.022em;
}
.jm-hero .lead { max-width: 38rem; }
.jm-hero__note {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; font-size: .875rem;
}
.jm-hero__note::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff;
  animation: jm-beat 2.4s ease-in-out infinite;
}

/* ---------- marquee ---------- */
.jm-marquee { overflow: hidden; padding-block: 1.1rem; border-block: 1px solid var(--jm-line); }
.jm-marquee__track { display: flex; width: max-content; animation: jm-marquee 38s linear infinite; }
.jm-marquee:hover .jm-marquee__track, .jm-marquee:active .jm-marquee__track { animation-play-state: paused; }
.jm-marquee__track p {
  display: flex; flex: none; margin: 0;
  font-family: var(--headings-font, Georgia), Georgia, serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); white-space: nowrap;
}
.jm-marquee__track span { display: inline-flex; align-items: center; }
.jm-marquee__track span::after {
  content: ""; width: .5rem; height: .5rem; margin-inline: 2rem; border-radius: 50%; background: var(--jm-accent);
}

/* ---------- cards ---------- */
.jm-card {
  position: relative; height: 100%; padding: 2rem 1.75rem 1.75rem;
  background: #fff; border: 1px solid var(--jm-line); border-radius: 10px;
  transition: transform .45s var(--jm-ease), box-shadow .45s var(--jm-ease), border-color .45s;
}
.jm-card:hover, .jm-card:focus-within {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--jm-ink) 45%, transparent);
}
.jm-card__num {
  display: block; margin-bottom: 2.5rem;
  font-family: var(--headings-font, Georgia), Georgia, serif;
  font-size: 3.25rem; line-height: 1; color: var(--jm-accent);
}
.jm-card a.stretched-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.jm-card a.stretched-link > span { transition: transform .35s var(--jm-ease); }
.jm-card:hover a.stretched-link > span { transform: translateX(6px); }

/* ---------- rows (pour qui, services) ---------- */
.jm-rows { margin: 0; padding: 0; list-style: none; }
.jm-rows > li { padding-block: 1.5rem; border-top: 1px solid var(--jm-line); }
.jm-rows > li:last-child { border-bottom: 1px solid var(--jm-line); }
.jm-ink .jm-rows > li { border-color: rgba(255, 255, 255, .22); }
.jm-rows h3 { margin-bottom: .5rem; }
.jm-rows p { margin: 0; }
.jm-rows--links > li { transition: padding-left .4s var(--jm-ease); }
.jm-rows--links > li:hover { padding-left: .75rem; }

/* ---------- assistant: photo with the example conversation ---------- */
.jm-stage { position: relative; padding-bottom: 3rem; }
.jm-chat {
  position: absolute; right: -1rem; bottom: 0; width: min(24rem, 86%);
  padding: 1.25rem; background: #fff; color: var(--jm-ink);
  border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.jm-chat__head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; font-size: .8125rem; }
.jm-chat__head strong { font-weight: 600; }
.jm-chat ul { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.jm-chat li { max-width: 88%; padding: .55rem .85rem; border-radius: 10px; }
.jm-chat li:nth-child(odd) { align-self: flex-end; background: var(--jm-paper-alt); }
.jm-chat li:nth-child(even) { align-self: flex-start; border: 1px solid var(--jm-line); }

/* ---------- schema + method ---------- */
.jm-schema { display: block; width: 100%; max-width: 60rem; height: auto; margin-inline: auto; }
.jm-steps { counter-reset: jm-step; position: relative; }
.jm-steps__rule { height: 2px; margin-bottom: 2rem; background: var(--jm-ink); transform-origin: left center; }
.jm-step { counter-increment: jm-step; }
.jm-step::before {
  content: "0" counter(jm-step); display: block; margin-bottom: .75rem;
  font-family: var(--headings-font, Georgia), Georgia, serif; font-size: 2.5rem; line-height: 1; color: var(--jm-accent);
}

/* ---------- closing band ---------- */
.jm-cta { position: relative; isolation: isolate; overflow: hidden; }
.jm-cta__media {
  position: absolute; inset: 0 0 0 auto; z-index: -1; width: 55%; height: 100%;
  object-fit: cover; opacity: .28; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
}

/* ---------- inner pages ---------- */
.jm-hero--page.jm-hero { min-height: min(64vh, 40rem); }
.jm-hero--page h1 { max-width: 20ch; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); }
.jm-hero--page .jm-hero__media { object-position: 80% 50%; }
.jm-card--plain { padding-top: 2.25rem; }
.jm-card--plain::before {
  content: ""; position: absolute; top: 0; left: 1.75rem; width: 2.5rem; height: 3px; background: var(--jm-accent);
  transform-origin: left center; transition: transform var(--jm-spring-snap);
}
.jm-card--plain:hover::before { transform: scaleX(2); }
.jm-rows > li > strong:first-child { font-weight: 600; }
.jm-form .jm-card { height: auto; }
.jm-form .form-control, .jm-form .form-select { transition: border-color .25s, box-shadow .25s; }
@media (min-width: 992px) { body:not(.editor_enable) .jm-split__head { position: sticky; top: 7rem; } }

/* ---------- header menu (spring easings sampled from Motion's spring: duration + bounce) ---------- */
header#top .navbar-brand img { transition: transform var(--jm-spring-soft); }
header#top .navbar-brand:hover img, header#top .navbar-brand:focus-visible img { transform: scale(1.1) rotate(-5deg); }
header#top .top_menu .nav-link > span { position: relative; display: inline-block; transition: transform var(--jm-spring-snap); }
header#top .top_menu .nav-link > span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.3rem; height: 2px; background: var(--jm-accent);
  transform: scaleX(0); transform-origin: right center; transition: transform var(--jm-spring-firm);
}
header#top .top_menu .nav-link:hover > span, header#top .top_menu .nav-link:focus-visible > span { transform: translateY(-2px); }
header#top .top_menu .nav-link:not(.active):hover > span::after, header#top .top_menu .nav-link:not(.active):focus-visible > span::after {
  transform: scaleX(1); transform-origin: left center;
}
header#top .top_menu .nav-link:active > span { transform: scale(.96); }
/* the mobile panel's items slide in from the right: no sideways scrollbar while they do */
header#top .offcanvas-body { overflow-x: hidden; }
header#top .navbar-toggler-icon { transition: transform var(--jm-spring-snap); }
header#top button:hover .navbar-toggler-icon { transform: scaleX(1.15); }

/* ---------- motion ---------- */
@keyframes jm-beat { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes jm-marquee { to { transform: translateX(-50%); } }
@keyframes jm-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes jm-reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes jm-drift { from { transform: scale(1.18) translateY(-4%); } to { transform: scale(1.18) translateY(4%); } }
@keyframes jm-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes jm-nav-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes jm-nav-side { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes jm-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes jm-chat-1 { 0%, 3% { opacity: 0; transform: translateY(10px); } 7%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes jm-chat-2 { 0%, 16% { opacity: 0; transform: translateY(10px); } 20%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes jm-chat-3 { 0%, 34% { opacity: 0; transform: translateY(10px); } 38%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes jm-chat-4 { 0%, 50% { opacity: 0; transform: translateY(10px); } 54%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  body:not(.editor_enable) .jm-hero .jm-rise { animation: jm-rise .9s var(--jm-ease) both; }
  body:not(.editor_enable) .jm-hero .jm-rise:nth-child(2) { animation-delay: .12s; }
  body:not(.editor_enable) .jm-hero .jm-rise:nth-child(3) { animation-delay: .24s; }
  body:not(.editor_enable) .jm-hero .jm-rise:nth-child(4) { animation-delay: .36s; }
  body:not(.editor_enable) .jm-hero .jm-rise:nth-child(5) { animation-delay: .48s; }
  body:not(.editor_enable) .jm-hero .jm-rise:nth-child(6) { animation-delay: .6s; }
  /* still image shown when the video cannot play: a slow push-in */
  body:not(.editor_enable) img.jm-hero__media { animation: jm-kenburns 24s ease-in-out infinite alternate; }

  body:not(.editor_enable) .jm-chat li { animation: 16s var(--jm-ease) infinite both; }
  body:not(.editor_enable) .jm-chat li:nth-child(1) { animation-name: jm-chat-1; }
  body:not(.editor_enable) .jm-chat li:nth-child(2) { animation-name: jm-chat-2; }
  body:not(.editor_enable) .jm-chat li:nth-child(3) { animation-name: jm-chat-3; }
  body:not(.editor_enable) .jm-chat li:nth-child(4) { animation-name: jm-chat-4; }

  /* header: logo and menu items settle in one after the other on load; the mobile panel does the same when it opens */
  body:not(.editor_enable) header#top .navbar-brand { animation: jm-nav-in var(--jm-spring-soft) both; }
  body:not(.editor_enable) header#top nav.d-lg-block .top_menu > li { animation: jm-nav-in var(--jm-spring-soft) both; }
  body:not(.editor_enable) header#top .offcanvas:is(.showing, .show) .top_menu > li { animation: jm-nav-side var(--jm-spring-soft) both; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(1) { animation-delay: 0.05s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(2) { animation-delay: 0.10s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(3) { animation-delay: 0.15s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(4) { animation-delay: 0.20s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(5) { animation-delay: 0.25s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(6) { animation-delay: 0.30s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(7) { animation-delay: 0.35s; }
  body:not(.editor_enable) header#top .top_menu > li:nth-child(8) { animation-delay: 0.40s; }

  @supports (animation-timeline: view()) {
    body:not(.editor_enable) .jm-reveal {
      animation: jm-reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 60%;
    }
    body:not(.editor_enable) .jm-photo--drift img {
      animation: jm-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
    }
    body:not(.editor_enable) .jm-steps__rule {
      animation: jm-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .jm-marquee__track, .jm-hero__note::before { animation: none; }
  .jm-marquee__track { flex-wrap: wrap; width: auto; padding-inline: 1rem; }
  .jm-marquee__track p { flex-wrap: wrap; white-space: normal; row-gap: .5rem; }
  .jm-marquee__track p[aria-hidden] { display: none; }
  .jm-card, .jm-card--plain::before, .jm-rows--links > li, .jm-card a.stretched-link > span { transition: none; }
  header#top .navbar-brand img, header#top .top_menu .nav-link > span, header#top .top_menu .nav-link > span::after, header#top .navbar-toggler-icon, .jm-form .form-control, .jm-form .form-select { transition: none; }
  video.jm-hero__media { display: none; }
}

/* in the Website editor nothing moves under the pointer */
body.editor_enable .jm-marquee__track, body.editor_enable .jm-hero__note::before { animation: none; }
body.editor_enable .jm-marquee__track { flex-wrap: wrap; width: auto; padding-inline: 1rem; }
body.editor_enable .jm-marquee__track p { flex-wrap: wrap; white-space: normal; row-gap: .5rem; }
body.editor_enable .jm-marquee__track p[aria-hidden] { display: none; }
body.editor_enable .jm-card:hover, body.editor_enable .jm-card:focus-within { transform: none; }
body.editor_enable .jm-rows--links > li:hover { padding-left: 0; }

@media (max-width: 991.98px) {
  .jm-chat { position: relative; right: auto; width: 100%; margin-top: -3rem; }
  .jm-stage { padding-bottom: 0; }
  .jm-cta__media { width: 100%; opacity: .16; }
  .jm-hero.jm-hero { min-height: 86vh; }
  .jm-hero--page.jm-hero { min-height: 56vh; }
  .jm-hero::after { background: color-mix(in srgb, var(--jm-ink) 80%, transparent); }
}

/* on the ink surfaces the main button is the accent, as on the light ones */
.jm-hero.jm-hero .btn-primary, .jm-ink.jm-ink .btn-primary {
  background-color: var(--jm-accent); border-color: var(--jm-accent); color: #fff;
}
.jm-hero.jm-hero .btn-primary:hover, .jm-ink.jm-ink .btn-primary:hover, .jm-hero.jm-hero .btn-primary:focus-visible, .jm-ink.jm-ink .btn-primary:focus-visible {
  background-color: color-mix(in srgb, var(--jm-accent) 85%, #000); border-color: color-mix(in srgb, var(--jm-accent) 85%, #000); color: #fff;
}
