/* Home of services.lexxika.com. Colours, fonts and spacing come from site.css (the look of textes.lexxika.com); names start with hm-. */
.hm { --wrap: 1180px; --gutter: max(20px, calc((100% - var(--wrap)) / 2)); --radius: 12px; --shadow: 0 6px 24px rgba(0, 40, 70, .10); color: var(--text); }
.hm .sv-icon { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm :focus-visible { outline: 3px solid #f0a35e; outline-offset: 2px; }

/* Buttons */
.hm-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 17px/1 var(--display); text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s, color .2s; }
.hm-btn--primary { background: var(--action); color: #fff; box-shadow: 0 6px 18px rgba(143, 64, 0, .35); }
.hm-btn--primary:hover { background: var(--action-dark); transform: translateY(-2px); }
.hm-btn--ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.hm-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* 1. Hero */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; background: #1879b1; color: #fff; padding: 52px 0 128px; }  /* the bottom padding leaves room for the reassurance card that overlaps the edge */
.hm-hero > .hero-slides { position: absolute; inset: 0; z-index: 0; }  /* the photos (hero.js), same as the site of the texts */
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 69, 109, .52) 0%, rgba(0, 69, 109, .74) 30%, rgba(14, 100, 150, .60) 56%, rgba(82, 176, 216, .18) 100%); }  /* deepest in the middle of the text, light toward the documents: the photo stays visible */  /* light: the photo stays visible, the text side is a little deeper */
.hm-hero .hero-credit { z-index: 2; bottom: 88px; }
.hm-hero__in { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hm-eyebrow { margin: 0 0 14px; font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #bfe3f6; }
.hm-hero h1 { color: #fff; margin: 0 0 20px; font: 700 clamp(30px, min(4.6vw, 6.4vh), 54px)/1.1 var(--display); text-shadow: 0 2px 14px rgba(0, 30, 50, .35); }
.hm-hero__lead { text-shadow: 0 1px 8px rgba(0, 30, 50, .35); margin: 0 0 clamp(14px, 3.4vh, 30px); max-width: 540px; font-size: clamp(16px, 2.5vh, 20px); line-height: 1.55; color: #e8f4fb; }
.hm-hero__lead strong { color: #fff; }
.hm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

/* Pages of the models, fanned out */
.hm-fan { position: relative; height: min(450px, 52vh); }
.hm-fan__sheet { position: absolute; top: 12px; width: min(250px, 29vh); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 18px 40px rgba(0, 20, 40, .42); border: 1px solid rgba(255, 255, 255, .8); }
.hm-fan__sheet--1 { left: 0; transform: rotate(-8deg) translateY(30px); }
.hm-fan__sheet--2 { left: 50%; z-index: 2; transform: translate(-50%, -6px); }
.hm-fan__sheet--3 { right: 0; transform: rotate(8deg) translateY(30px); }

/* 2. Reassurance, overlapping the hero */
.hm-trust { position: relative; z-index: 2; max-width: var(--wrap); margin: -74px auto 0; padding: 0 20px; }
.hm-trust ul { list-style: none; margin: 0; padding: 26px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 40, 70, .16); }
.hm-trust li { display: flex; gap: 14px; align-items: flex-start; }
.hm-trust .sv-icon { color: var(--blue-surface); padding: 9px; box-sizing: content-box; background: #e6f3fa; border-radius: 12px; }
.hm-trust strong { display: block; font: 600 16px/1.3 var(--display); color: var(--ink); }
.hm-trust span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* Sections */
.hm-section { padding: 96px var(--gutter) 24px; }
.hm-section--cream { margin-top: 72px; padding-bottom: 96px; }
.hm-section--cream { background: var(--cream); }
.hm-section--cream .hm-head h2::after { background: var(--orange); }
.hm-head { text-align: center; margin: 0 auto 38px; max-width: 700px; }
.hm-head h2 { margin: 0; font: 600 clamp(28px, 3.4vw, 38px)/1.2 var(--display); color: var(--ink); }
.hm-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--blue); margin: 16px auto 14px; }
.hm-head p { margin: 0; font-size: 18px; color: var(--muted); }

/* 3. Catalogue */
.hm-tools { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 340px); padding: 0 18px; border: 1.5px solid #c9d3dc; border-radius: 999px; background: #fff; color: var(--muted); }
.hm-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 133, 195, .18); }
.hm-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; font: 400 16px var(--body); color: var(--ink); }

.hm-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }  /* the last row is centred instead of leaving one card alone on the left */
.hm-card { flex: 0 1 calc((100% - 60px) / 3); min-width: 290px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 40, 70, .05); transition: box-shadow .22s, transform .22s, border-color .22s; }
.hm-card[hidden] { display: none; }
.hm-card:hover, .hm-card:focus-visible { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #9ccbe3; }
.hm-card__thumb { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #eef2f5; border-bottom: 1px solid var(--line); }
.hm-card__thumb img { display: block; width: 78%; margin: 18px auto 0; border-radius: 3px; box-shadow: 0 8px 24px rgba(0, 40, 70, .22); transition: transform .35s ease; }
.hm-card:hover .hm-card__thumb img { transform: translateY(-6px) scale(1.02); }
.hm-card__thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, #eef2f5, rgba(238, 242, 245, 0)); pointer-events: none; }
.hm-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; font: 700 13px var(--display); letter-spacing: .02em; }
.hm-badge--free { background: #2e9e4f; color: #fff; box-shadow: 0 3px 10px rgba(30, 110, 55, .35); }
.hm-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 18px; }
.hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-tag { padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--orange-dark); font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.hm-chipmini { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.hm-card h3 { margin: 0; font: 600 20px/1.3 var(--display); color: var(--ink); }
.hm-summary { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.5; color: var(--text); }
.hm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.hm-price { font: 700 19px var(--display); color: var(--action); }
.hm-price small { font: 500 14px var(--body); color: var(--muted); }
.hm-more { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--display); color: var(--link); }
.hm-card:hover .hm-more .sv-icon { transform: translateX(4px); }
.hm-more .sv-icon { transition: transform .2s; }
.hm-empty { text-align: center; font-size: 18px; color: var(--muted); }
.hm-link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

/* 5. Steps */
.hm-steps { list-style: none; counter-reset: s; margin: 0 auto; padding: 0; max-width: 1060px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.hm-steps li { position: relative; text-align: center; padding: 0 8px; }
.hm-steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; left: calc(50% + 62px); right: calc(-50% + 62px); border-top: 2px dashed #b9d4e4; }
.hm-steps__ico { position: relative; display: inline-grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #e6f3fa; color: var(--blue-surface); }
.hm-steps__n { position: absolute; top: -6px; left: calc(50% + 20px); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--action); color: #fff; font: 700 14px var(--display); }
.hm-steps h3 { margin: 18px 0 8px; font: 600 20px/1.3 var(--display); color: var(--ink); }
.hm-steps p { margin: 0 auto; max-width: 300px; font-size: 16px; line-height: 1.55; }

/* 6. FAQ */
.hm-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.hm-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 600 17px/1.4 var(--display); color: var(--ink); cursor: pointer; list-style: none; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e6f3fa; color: var(--blue-surface); transition: transform .25s, background .25s; }
.hm-faq details[open] summary span { transform: rotate(45deg); background: var(--blue-surface); color: #fff; }
.hm-faq details > p { margin: 0; padding: 0 22px 20px; font-size: 16.5px; line-height: 1.6; }

/* 7. Closing call to action */
.hm-final { margin-top: 0; padding: 84px 20px; text-align: center; background: linear-gradient(135deg, var(--navy), #0f6a9e); color: #fff; }
.hm-final h2 { color: #fff; margin: 0 0 10px; font: 700 clamp(28px, 3.6vw, 40px)/1.2 var(--display); }
.hm-final p { margin: 0 0 28px; font-size: 19px; color: #d7edf8; }

@media (max-width: 960px) {
  .hm-hero { padding: 36px 0 120px; }
  .hm-hero__in { grid-template-columns: 1fr; gap: 20px; }
  .hm-fan { height: 360px; max-width: 460px; margin: 0 auto; width: 100%; }
  .hm-fan__sheet { width: 200px; }
  .hm-trust ul { grid-template-columns: repeat(2, 1fr); }
  .hm-steps { grid-template-columns: 1fr; gap: 40px; }
  .hm-steps li::after { display: none; }
}
@media (max-width: 560px) {
    .hm-card { flex-basis: 100%; }
  .hm-trust { margin-top: -60px; }
  .hm-trust ul { grid-template-columns: 1fr; padding: 22px 20px; }
  .hm-section { padding-top: 72px; }
  .hm-fan { height: 310px; }
  .hm-fan__sheet { width: 170px; }
  .hm-btn { padding: 13px 22px; font-size: 16px; }
  .hm-search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; } }


/* Touches of colour: blue for the brand, orange for the actions, green for what is free or included */



.hm-steps li:nth-child(1) { --c: #1879b1; --cbg: #e1f1fa; }
.hm-steps li:nth-child(2) { --c: #c4560a; --cbg: #ffeadb; }
.hm-steps li:nth-child(3) { --c: #1d7a3c; --cbg: #e1f4e7; }
.hm-steps__ico { background: var(--cbg); color: var(--c); }
.hm-steps__n { background: var(--c); }

.hm-faq summary span { background: #ffe9d6; color: var(--action); }
.hm-faq details[open] summary span { background: var(--action); color: #fff; }
.hm-faq details[open] { border-color: #f1c9a6; }

.hm-final { background: linear-gradient(135deg, #a64a00 0%, #d16412 58%, #e5873a 100%); }
.hm-final p { color: #fff3e8; }
.hm-final .hm-btn--primary { background: #fff; color: var(--action-dark); box-shadow: 0 6px 18px rgba(80, 30, 0, .3); }
.hm-final .hm-btn--primary:hover { background: var(--cream); }


/* Cards of the models: a bar on top in the colour of the discipline (colours of disciplines.py, the table of the site of the texts) */
.hm-card { border-top: 5px solid var(--accent, var(--line)); }
.hm-card:hover, .hm-card:focus-visible { border-color: var(--accent, #9ccbe3); }
.hm-tag { background: var(--accent, var(--blue-surface)); color: #fff; }
.hm-card:hover .hm-tag { background: var(--accent-hover, var(--accent)); }
.hm-card h3 { transition: color .2s; }
.hm-card:hover h3 { color: var(--accent-hover, var(--ink)); }

/* Formulas on a photo (the graphic element photo_stage, styles .tp-* come from site.css) */
.hm-stage { margin-top: 90px; padding-bottom: 110px; }
.hm-stage .tp-head h2 { margin: 4px 0 16px; color: #fff; font: 700 clamp(28px, 3.6vw, 42px)/1.15 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.hm-stage .tp-head h2::after { content: ""; display: block; width: 90px; height: 3px; background: var(--orange); margin: 14px auto 0; }
.hm-stage .hero-credit { z-index: 2; }
.hm-plan { text-align: left; }
.hm-plan .plan-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 14px; }
.hm-plan--essentiel .plan-icon { background: #e1f4e7; color: #1d7a3c; }
.hm-plan--personnalisable .plan-icon { background: #ffeadb; color: #c4560a; }
.hm-plan--business .plan-icon { background: #dcebf6; color: #00456d; }
.hm-plan h3 { margin: 0 0 4px; font: 600 22px var(--display); color: var(--ink); }
.hm-plan .price small { font: 500 14px var(--body); color: var(--muted); }
.hm-plan__format { margin: -8px 0 16px; color: var(--muted); font-size: 15px; }
.hm-plan .plan-status { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--grey); color: var(--muted); font: 600 14px var(--display); text-align: center; }
.hm-plan .button { align-self: flex-start; }


/* Filter buttons: every state is set here, so the global button:hover of site.css (brown) does not show through */
.hm .hm-chip { padding: 10px 20px; border: 1.5px solid #c9d3dc; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1.2 var(--display); cursor: pointer; transition: background .18s, border-color .18s, color .18s, box-shadow .18s; }
.hm .hm-chip:hover { background: #e6f3fa; border-color: var(--blue); color: var(--navy); }
.hm .hm-chip:active { background: #d3e9f6; }
.hm .hm-chip.is-on { background: var(--blue-surface); border-color: var(--blue-surface); color: #fff; box-shadow: 0 3px 10px rgba(24, 121, 177, .32); }  /* the usual blue of the site (the banner blue) */
.hm .hm-chip.is-on:hover { background: #0f6a9e; border-color: #0f6a9e; color: #fff; }
.hm .hm-chip:focus-visible { outline: 3px solid #f0a35e; outline-offset: 2px; }
.hm .hm-link:hover { background: none; color: var(--action); }
.hm .hm-search input:hover { background: transparent; }


.hm-trust li:nth-child(1) .sv-icon { color: #1879b1; background: #e1f1fa; }
.hm-trust li:nth-child(2) .sv-icon { color: #c4560a; background: #ffeadb; }
.hm-trust li:nth-child(3) .sv-icon { color: #1d7a3c; background: #e1f4e7; }
.hm-trust li:nth-child(4) .sv-icon { color: #8a5a00; background: #fff1cc; }

/* Tall enough that the first screen ends right under the reassurance card: the title of the next section stays out of sight.
   (screen height - menu - the part of the card that hangs below the hero, plus a little air; the content is centred in what is left) */
@media (min-width: 961px) {
  .hm-hero { display: flex; align-items: center; min-height: calc(100vh - var(--header-h) - 96px); min-height: calc(100svh - var(--header-h) - 96px); }
  .hm-hero__in { width: 100%; }
}

/* Formulas band: a lighter veil than the pricing page of the texts (site.css .tp-stage::before is .66 / .5 / .38); the title keeps its shadow */
.hm-stage::before { background: linear-gradient(180deg, rgba(0, 38, 62, .48) 0%, rgba(0, 62, 100, .30) 55%, rgba(0, 62, 100, .20) 100%); }
.hm-stage .tp-head { text-shadow: 0 1px 10px rgba(0, 30, 50, .45); }

.hm-more { margin-left: auto; }  /* alone in the footer of a free card: stays on the right */
