/* =========================================================================
   ToileDev — direction épurée façon Google (Material).
   Clair, aéré, coins arrondis, bleu Google, touches de couleur discrètes.
   Polices libres proches de Google : DM Sans (titres) + Roboto (texte).
   Aucun dégradé. CSP 'self' : polices self-hébergées, aucun style en ligne.
   ========================================================================= */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Roboto Flex"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("/assets/fonts/roboto-latin.woff2") format("woff2"); }

:root {
    --blue:      #1a73e8;   /* bleu Google */
    --blue-600:  #1765cc;
    --blue-050:  #e8f0fe;   /* bleu tonal (Material) */

    --text:      #202124;   /* Google grey 900 */
    --muted:     #5f6368;   /* Google grey 700 — 6:1 sur blanc */
    --faint:     #6b7075;   /* petits libellés — ≥ 4,7:1 sur blanc et sur --bg-soft */
    --bg:        #ffffff;
    --bg-soft:   #f8f9fa;
    --line:      #dadce0;
    --line-soft: #e8eaed;
    --error:     #c5221f;

    --display:   "DM Sans", "Segoe UI", system-ui, sans-serif;
    --sans:      "Roboto Flex", "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;

    --maxw: 1160px; --gutter: 24px; --header-h: 72px;
    --r: 16px; --r-lg: 28px; --r-sm: 10px;
    --elev-1: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --elev-2: 0 1px 2px rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --amber:     #e39400;   /* ambre du logo (décoratif) */
    --chev-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M9 3 3 12l6 9' fill='none' stroke='%231a73e8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --chev-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 24'%3E%3Cpath d='M3 3l6 9-6 9' fill='none' stroke='%23e39400' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px);
    scrollbar-color: #c4c7c5 transparent; accent-color: var(--blue); }
html.no-scroll { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
    font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.01em;
    line-height: 1.15; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
input, textarea, button { font: inherit; }
sup { line-height: 0; }
::selection { background: var(--blue-050); color: var(--blue-600); }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 500; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typographie ---------- */
.display { font-weight: 700; font-size: clamp(2.4rem, 5.2vw, 3.8rem); letter-spacing: -.02em; line-height: 1.1; }
.display--page { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.headline { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.015em; }
.headline--md { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.accent { color: var(--blue); white-space: nowrap; }
.hero-lead { color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; max-width: 56ch; }

/* ---------- Boutons & liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
    font-weight: 500; font-size: 1rem; line-height: 1; padding: .85rem 1.6rem; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer; text-align: center;
    transition: box-shadow .18s, background-color .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); box-shadow: var(--elev-1); }
.btn-primary:disabled { background: #8ab4f8; cursor: progress; box-shadow: none; }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--line); }
.btn-outline:hover { background: #f7faff; border-color: #c6d4f2; }
.btn-nav { background: var(--blue); color: #fff; min-height: 42px; padding: .6rem 1.3rem; font-size: .96rem; }
.btn-nav:hover { background: var(--blue-600); box-shadow: var(--elev-1); }

.link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--blue); }
.link:hover { color: var(--blue-600); text-decoration: underline; }
.chev { flex: none; transition: transform .2s var(--ease-out); }
.link:hover .chev { transform: translateX(3px); }

/* ---------- Icônes de service (pastilles tonales, une couleur Google par service) ---------- */
.icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; }
.icon--web         { color: #1967d2; background: #e8f0fe; }
.icon--mobile      { color: #c5221f; background: #fce8e6; }
.icon--logiciel    { color: #b06000; background: #fef7e0; }
.icon--conseil     { color: #137333; background: #e6f4ea; }
.icon--maintenance { color: #8430ce; background: #f3e8fd; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: var(--elev-1); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 24px; width: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.8rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.primary-nav ul a { color: var(--muted); font-weight: 500; transition: color .15s; }
.primary-nav ul a:hover, .primary-nav ul a.is-active { color: var(--text); }
.primary-nav ul a.is-active { position: relative; }
.primary-nav ul a.is-active::before, .primary-nav ul a.is-active::after { content: ""; position: absolute; top: 50%; width: .42em; height: .84em;
    margin-top: -.42em; background: var(--chev-l) no-repeat center / contain; }
.primary-nav ul a.is-active::before { left: -.75em; }
.primary-nav ul a.is-active::after { right: -.75em; background-image: var(--chev-r); }
.nav-toggle { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; padding: 13px 12px; margin-left: auto; border-radius: 50%; }
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle-bar { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease-out); }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
.nav-scrim { display: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-inner { max-width: 54rem; margin-inline: auto; }
.hero .hero-lead { margin: 1.4rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }
.hero--page { text-align: left; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }
.hero--page .hero-inner { margin-inline: 0; max-width: 46rem; }
.hero--page .hero-lead { margin: 1.2rem 0 0; }
.hero--compact { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* Accès directs aux services (page Services) */
.anchors ul { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 2rem 0 0; padding: 0; }


/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding-top: clamp(1rem, 3vw, 2rem); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: .9rem; }
.sheet { background: var(--bg); }

/* Offre (accueil) : titre à gauche, liste éditoriale à droite */
.offer { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.offer-head { position: sticky; top: calc(var(--header-h) + 32px); }
.offer-head p { color: var(--muted); font-size: 1.15rem; margin: 1rem 0 1.4rem; max-width: 40ch; }
.offer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.offer-item { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
    padding: 1.35rem 1rem 1.35rem .75rem; border-bottom: 1px solid var(--line-soft); }
/* Fond de survol arrondi, distinct du filet (qui reste droit) */
.offer-item::before { content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: var(--r);
    background: var(--bg-soft); opacity: 0; transition: opacity .18s; }
.offer-item:hover::before { opacity: 1; }
.offer-item h3 { font-size: 1.2rem; }
.offer-item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.offer-item h3 a:focus-visible { outline: none; }
.offer-item:has(a:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.offer-body p { color: var(--muted); margin-top: .2rem; }
.offer-item > .chev { color: var(--faint); }
.offer-item:hover > .chev { color: var(--blue); transform: translateX(3px); }

/* Page Services : une rangée par service */
.service { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem clamp(2rem, 6vw, 5rem);
    padding: clamp(2.5rem, 5vw, 3.6rem) 0; border-top: 1px solid var(--line-soft); }
.service:first-child { border-top: 0; }
.service-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; align-content: start; }
.service-title { font-family: var(--display); font-size: 1.3rem; font-weight: 500; line-height: 1.35; color: var(--text); }
.service-text { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin-top: .7rem; }
.tags-title { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--faint); margin-top: 1.7rem; }
.tags { display: flex; flex-wrap: wrap; gap: .25rem 0; list-style: none; padding: 0; margin: .5rem 0 0; color: var(--text); }
.tags li { font-weight: 500; }
.tags li + li::before { content: "·"; margin: 0 .6rem; color: var(--faint); font-weight: 400; }

/* Méthode */
.method { background: var(--bg-soft); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.4rem); }
.step { display: grid; grid-template-rows: auto auto 1fr; gap: .75rem; align-content: start; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--text);
    letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 1rem; }

/* Appel à l'action final */
.cta { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "title actions" "text actions";
    column-gap: clamp(2rem, 6vw, 5rem); align-items: end; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.cta-panel h2 { grid-area: title; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.03em; line-height: 1.05; }
.cta-panel p { grid-area: text; color: var(--muted); max-width: 46ch; margin-top: 1rem; font-size: 1.15rem; }
.cta-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; justify-content: flex-end; align-items: center; }
.cta-mail { color: var(--blue-600); font-weight: 500; }
.cta-mail:hover { text-decoration: underline; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-text h2 { margin: 2.6rem 0 1rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--muted); margin-bottom: 1rem; max-width: 62ch; }
.facts-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--elev-1); }
.about .facts-card, .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside { display: grid; gap: 1.2rem; }
.facts-title { font-size: 1.1rem; margin-bottom: 1.3rem; }
.facts { margin: 0; display: grid; gap: 1rem; }
.facts > div { display: grid; gap: .2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .82rem; font-weight: 500; color: var(--faint); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--blue); }
.facts a:hover { text-decoration: underline; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; gap: 1.3rem; }
.form-intro { color: var(--muted); font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: .8rem 1rem; background: #fff; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--r-sm); caret-color: var(--blue);
    transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 168px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: #bdc1c6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .3rem; }
.form-note { color: var(--faint); font-size: .9rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.notice:focus { outline: 2px solid var(--error); outline-offset: 3px; }
.notice h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.notice p { color: var(--muted); }
.notice--success { border-color: #ceead6; background: #e6f4ea; }
.notice--success:focus { outline-color: #137333; }
.notice--success h2 { color: #137333; }
.notice--success .link { margin-top: 1rem; }
.notice--error { border-color: #f3c9c6; background: #fce8e6; }
.notice--error p { color: var(--error); font-weight: 500; }
.notice--error ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.notice--error a { color: var(--error); text-decoration: underline; }

/* Prose (mentions légales) */
.prose { max-width: calc(36rem + 2 * var(--gutter)); }
.prose h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose strong { color: var(--text); }

/* Pied de page */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line-soft); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-title { font-family: var(--sans); font-size: .85rem; letter-spacing: .02em; color: var(--faint); font-weight: 500; margin-bottom: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-links a, .footer-address a { color: var(--muted); }
.footer-links a:hover, .footer-address a:hover { color: var(--blue); text-decoration: underline; }
.footer-address { font-style: normal; color: var(--muted); line-height: 2.25; margin-top: -.3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; border-top: 1px solid var(--line-soft); padding: 1.5rem 0; }
.footer-logo { height: 20px; width: auto; }
.footer-bottom p { color: var(--faint); font-size: .9rem; margin-right: auto; }
.footer-bottom a { color: var(--muted); font-size: .9rem; }
.footer-bottom a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .offer { grid-template-columns: 1fr; }
    .offer-head { position: static; }
    .service { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .about, .contact { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; grid-template-areas: "title" "text" "actions"; }
    .cta-actions { justify-content: flex-start; margin-top: 2rem; }
    .about .facts-card, .contact-aside { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .primary-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 61; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-top: 1px solid var(--line-soft); box-shadow: var(--elev-2);
        padding: .5rem var(--gutter) 1.5rem; visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s; }
    .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav ul a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-soft);
        font-size: 1.15rem; color: var(--text); }
    .primary-nav ul a.is-active { color: var(--blue); }
    .primary-nav ul a.is-active::before, .primary-nav ul a.is-active::after { display: none; }
    .primary-nav .btn-nav { margin-top: 1.2rem; min-height: 48px; }
    .nav-scrim { display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; background: rgba(32, 33, 36, .32);
        visibility: hidden; opacity: 0; transition: opacity .2s var(--ease-out), visibility 0s linear .2s; }
    .site-header.menu-open .nav-scrim { visibility: visible; opacity: 1; transition-delay: 0s; }
    .site-header.menu-open { box-shadow: none; }

    .hero-actions .btn { flex: 1 1 100%; }
    .offer-item { padding-inline: .25rem .5rem; gap: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; }
    .cta-actions .btn { width: 100%; }
}
@media (max-width: 540px) {
    .steps, .footer-grid { grid-template-columns: 1fr; }
    .icon { width: 44px; height: 44px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Contact : note sous l'introduction, étapes suivantes */
.hero-note { margin-top: 1rem; color: var(--muted); }
.hero-note a { color: var(--blue); font-weight: 500; }
.hero-note a:hover { text-decoration: underline; }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.next-steps li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.step-num--sm { font-size: 1rem; margin: 0; flex: none; min-width: 3.2em; }

/* ---------- Motif signature : chevrons du logo ---------- */
.chev-wrap { display: inline-flex; align-items: center; gap: .32em; }
.chev-wrap::before, .chev-wrap::after { content: ""; flex: none; width: .42em; height: .84em;
    background: var(--chev-l) no-repeat center / contain; transition: transform .35s var(--ease-out); }
.chev-wrap::after { background-image: var(--chev-r); }

/* ---------- Hero de l'accueil : composition éditoriale ---------- */
.hero--home { text-align: left; padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.display--xl { font-size: clamp(2.6rem, 5.2vw, 4.5rem); letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.hero--home .hero-lead { margin: 1.6rem 0 0; max-width: 46ch; }
.hero--home .hero-actions { justify-content: flex-start; }

.hero-services ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.hero-services li:nth-child(2) { margin-left: 2.6rem; }
.hero-services li:nth-child(3) { margin-left: 1.1rem; }
.hero-services li:nth-child(4) { margin-left: 3.6rem; }
.hero-services li:nth-child(5) { margin-left: .5rem; }
.pill { display: inline-flex; align-items: center; min-height: 52px; padding: .7rem 1.3rem; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; font-family: var(--display); font-weight: 500;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -.01em; color: var(--text); white-space: nowrap;
    transition: border-color .25s, box-shadow .25s var(--ease-out), transform .35s var(--ease-out); }
.pill:hover { border-color: transparent; box-shadow: var(--elev-2); transform: translateY(-2px); }
.pill:hover .chev-wrap::before { transform: translateX(-.18em); }
.pill:hover .chev-wrap::after { transform: translateX(.18em); }

/* Entrée du hero : un seul moment, chorégraphié (texte puis services) */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
    .hero--home .hero-text > * { animation: rise .8s var(--ease-out) both; }
    .hero--home .hero-text > :nth-child(2) { animation-delay: .08s; }
    .hero--home .hero-text > :nth-child(3) { animation-delay: .16s; }
    .hero-services li { animation: rise .8s var(--ease-out) both; }
    .hero-services li:nth-child(1) { animation-delay: .3s; }
    .hero-services li:nth-child(2) { animation-delay: .36s; }
    .hero-services li:nth-child(3) { animation-delay: .42s; }
    .hero-services li:nth-child(4) { animation-delay: .48s; }
    .hero-services li:nth-child(5) { animation-delay: .54s; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-services ul { flex-direction: row; flex-wrap: wrap; gap: .6rem; }
    .hero-services li:nth-child(n) { margin-left: 0; }
    .pill { min-height: 48px; padding: .55rem 1.05rem; }
}

.pill--sm { min-height: 44px; padding: .45rem 1rem; font-size: 1rem; }
@media (max-width: 720px) {
    .hero-services { display: none; }   /* la liste détaillée des services suit juste après */
}
