/* Figelys Systems */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
    --bg: #FFFFFF;
    --bg-alt: #F5F6F8;
    --surface: #FFFFFF;

    --text: #10151C;
    --text-muted: #5A6472;
    --text-faint: #8A93A1;

    /* Palette vive à plat, dans l'esprit des SaaS israéliens (monday, Wix) :
       forte saturation, aucun dégradé, chaque teinte code une catégorie. */
    --blue:   #0B63F6;
    --cyan:   #00BFC4;
    --green:  #00B85C;
    --lime:   #7ED321;
    --amber:  #FFAE00;
    --coral:  #FF4F32;
    --pink:   #FF2E86;
    --violet: #7C4DFF;

    --accent: var(--blue);
    --accent-hover: #0A4FC7;
    --accent-tint: #E7F0FE;

    /* Teinte courante d'un bloc, redéfinie par les classes .c1 à .c6. */
    --c: var(--accent);
    --c-tint: var(--accent-tint);

    --line: #E1E4EA;
    --line-strong: #C7CDD6;

    --radius: 10px;
    --radius-sm: 7px;
    --ease: cubic-bezier(0.32, 0.08, 0.24, 1);

    --font-he: 'Heebo', system-ui, sans-serif;
    --font-lat: 'Inter', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

body.dark-mode {
    --bg: #0C1017;
    --bg-alt: #131922;
    --surface: #131922;

    --text: #E7EBF0;
    --text-muted: #9BA6B4;
    --text-faint: #6E7987;

    /* Mêmes teintes, remontées en luminosité pour rester lisibles sur fond sombre. */
    --blue:   #4D93FF;
    --cyan:   #22D3D8;
    --green:  #2BD67B;
    --lime:   #A8E44B;
    --amber:  #FFC24D;
    --coral:  #FF7A63;
    --pink:   #FF62A5;
    --violet: #A182FF;

    --accent: var(--blue);
    --accent-hover: #7BB0FF;
    --accent-tint: #10243F;

    --line: #212A36;
    --line-strong: #31404F;
}

/* Teintes de catégorie. La variable --c irrigue filets, chiffres et libellés. */
.c1 { --c: var(--blue);   --c-tint: color-mix(in srgb, var(--blue)   12%, transparent); }
.c2 { --c: var(--green);  --c-tint: color-mix(in srgb, var(--green)  12%, transparent); }
.c3 { --c: var(--amber);  --c-tint: color-mix(in srgb, var(--amber)  16%, transparent); }
.c4 { --c: var(--violet); --c-tint: color-mix(in srgb, var(--violet) 12%, transparent); }
.c5 { --c: var(--coral);  --c-tint: color-mix(in srgb, var(--coral)  12%, transparent); }
.c6 { --c: var(--cyan);   --c-tint: color-mix(in srgb, var(--cyan)   14%, transparent); }

html { scroll-behavior: smooth; }
html[dir="rtl"] { font-family: var(--font-he); }
html[dir="ltr"] { font-family: var(--font-lat); }

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 2000;
    text-decoration: none;
}
.skip-link:focus { inset-inline-start: 0; }

/* Layout ------------------------------------------------------------------ */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    max-width: 720px;
    margin-bottom: 3.5rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.section-lead {
    margin-top: 1.15rem;
    font-size: 1.075rem;
    color: var(--text-muted);
    max-width: 62ch;
}

.section-note {
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.975rem;
}

/* L'hébreu n'a pas de casse et supporte mal l'interlettrage : les libellés en
   petites capitales espacées ne valent que pour le latin. */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .panel-kicker,
html[dir="rtl"] .marquee-label,
html[dir="rtl"] .stack-label,
html[dir="rtl"] .compare thead th,
html[dir="rtl"] .contact-list dt,
html[dir="rtl"] .footer h3 {
    font-family: var(--font-he);
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.8rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-lg { gap: 2rem; }

/* Header ------------------------------------------------------------------ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-lat);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    color: var(--text);
    /* Marque latine : l'ordre marque, FIGELYS, SYSTEMS ne s'inverse pas en RTL. */
    direction: ltr;
}

.logo-mark {
    width: 34px;
    height: 34px;
    flex: none;
}

.logo-figelys {
    margin-left: 0.55rem;
    max-width: 120px;
    overflow: hidden;
    transition: max-width 0.45s var(--ease), opacity 0.3s var(--ease), margin-left 0.45s var(--ease);
}

.logo-systems {
    margin-left: 0.4rem;
    color: var(--text-faint);
    font-weight: 600;
    transition: color 0.3s var(--ease);
}

/* Au scroll, comme sur figelys.com : FIGELYS se replie, la marque reste.
   Ici SYSTEMS reste aussi et prend l'accent, la marque F disant deja Figelys. */
.header.scrolled .logo-figelys {
    max-width: 0;
    opacity: 0;
    margin-left: 0.15rem;
}
.header.scrolled .logo-systems { color: var(--accent); }
.header.scrolled { box-shadow: 0 4px 18px rgba(16, 21, 28, 0.06); }
body.dark-mode .header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.85rem;
}

.nav-link {
    font-size: 0.925rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.15s var(--ease);
}
.nav-link:hover { color: var(--text); }

.nav-link-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
}
.nav-link-cta:hover { background: var(--accent-hover); color: #fff; }
body.dark-mode .nav-link-cta { color: #0D1117; }
body.dark-mode .nav-link-cta:hover { color: #0D1117; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher {
    display: flex;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    padding: 0.4rem 0.65rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-btn + .lang-btn { border-inline-start: 1px solid var(--line); }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }
body.dark-mode .lang-btn.active { color: #0D1117; }

.icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.i-moon, body.dark-mode .i-sun { display: none; }
body.dark-mode .i-moon { display: block; }

.nav-toggle { display: none; }
.i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-bars { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* Hero -------------------------------------------------------------------- */

.hero {
    padding: 6.5rem 0 5.5rem;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    grid-template-areas:
        "copy visual"
        "facts visual";
    align-items: center;
    column-gap: 4rem;
}

.hero-copy { grid-area: copy; }
.hero-visual { grid-area: visual; }
.hero-grid > .hero-facts { grid-area: facts; align-self: end; }

/* --- Maquette d'application (decor, en hebreu dans toutes les langues) --- */

.hero-visual {
    position: relative;
    direction: rtl;
}

.app-window {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px -18px rgba(16, 21, 28, 0.22);
}
body.dark-mode .app-window { box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6); }

.app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--line);
    direction: ltr;
}

.app-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line-strong);
}

.app-url {
    margin: 0 auto;
    padding: 0.2rem 1.4rem;
    background: var(--bg-alt);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-faint);
}

.app-body {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.app-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.9rem 0.6rem;
    border-inline-end: 1px solid var(--line);
    background: var(--bg-alt);
}

.app-side-item {
    padding: 0.42rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.app-side-item.is-active {
    background: var(--accent);
    color: #fff;
}
body.dark-mode .app-side-item.is-active { color: #0C1017; }

.app-main {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.app-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.app-kpi {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.app-kpi b {
    display: block;
    font-family: var(--font-lat);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--c);
}
.app-kpi span {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-faint);
}

.app-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 74px;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.app-chart i {
    flex: 1;
    height: var(--h);
    background: var(--accent-tint);
    border-radius: 3px 3px 0 0;
}
.app-chart i.is-now { background: var(--accent); }

.app-rows {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}
.app-row + .app-row { border-top: 1px solid var(--line); }

.app-pill {
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.14rem 0.55rem;
    border-radius: 20px;
    color: var(--c);
    background: var(--c-tint);
}

/* Cartes flottantes par-dessus la maquette */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px -10px rgba(16, 21, 28, 0.25);
}
body.dark-mode .float-card { box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.65); }

.float-wa { top: -1.1rem; inset-inline-end: -0.9rem; }
.float-tax { bottom: -1.2rem; inset-inline-start: -0.9rem; }

.float-icon {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1F8F4E;
    color: #fff;
}
.float-icon svg { width: 17px; height: 17px; fill: currentColor; }
.float-icon--ok { background: var(--green); color: #fff; }
body.dark-mode .float-icon--ok { color: #0C1017; }

.float-text { display: flex; flex-direction: column; line-height: 1.35; }
.float-text b { font-size: 0.74rem; font-weight: 700; color: var(--text); }
.float-text span { font-size: 0.65rem; color: var(--text-faint); }

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-title em {
    display: block;
    font-style: normal;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 54ch;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    list-style: none;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.hero-facts li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding-inline-start: 1rem;
}
.hero-facts li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }
body.dark-mode .btn-primary { color: #0D1117; }

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: currentColor;
}
.btn-ghost:hover { background: var(--accent-tint); }

.btn-block { width: 100%; }

/* Tiles (pain) ------------------------------------------------------------ */

.tile {
    padding-top: 1.25rem;
    border-top: 4px solid var(--c);
}

.tile-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c);
    margin-bottom: 0.85rem;
}

.tile-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tile-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Panels (solutions) ------------------------------------------------------ */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--c);
    border-radius: var(--radius);
    padding: 2rem 2.25rem 2.25rem;
    transition: box-shadow 0.2s var(--ease);
}
.panel:hover { box-shadow: 0 6px 22px rgba(16, 21, 28, 0.07); }
body.dark-mode .panel:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); }

.panel-kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c);
    margin-bottom: 0.85rem;
}

.panel-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.panel-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.ticks {
    list-style: none;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}
.ticks li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.ticks li + li { margin-top: 0.7rem; }

/* Panneau pleine largeur (offre sites web) */
.panel-wide { grid-column: 1 / -1; }

.panel-wide-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.panel-wide-head .panel-text { max-width: 58ch; }
.panel-wide-cta { flex: none; }

.ticks-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem 2.5rem;
}
.ticks-cols li + li { margin-top: 0; }
.ticks li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
}

/* Marquee ----------------------------------------------------------------- */

.marquee-block { margin-bottom: 2.5rem; }
.marquee-block:last-of-type { margin-bottom: 0; }

.marquee-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.marquee {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line);
    padding: 1.1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    /* Ancre la piste à gauche dans les deux sens de lecture. Dans un parent RTL
       elle serait alignée à droite, et la variante inversée démarrerait hors
       écran. Chaque libellé garde sa direction propre via l'algorithme bidi. */
    direction: ltr;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    animation: marquee 52s linear infinite;
}
.marquee[data-reverse] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.logo-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    min-width: 132px;
    padding: 0 1.4rem;
    /* Pastille blanche dans les deux thèmes : les logos de marque sont dessinés
       pour un fond clair, et plusieurs sont noirs ou bleu nuit. Les poser sur du
       blanc évite d'avoir à gérer une variante par logo et par thème. */
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
body.dark-mode .logo-pill { border-color: transparent; }

.logo-pill img {
    max-height: 30px;
    max-width: 148px;
    width: auto;
    object-fit: contain;
}

/* Un fichier au cadrage carré paraît deux fois plus petit qu'un logotype large
   à hauteur égale : on le remonte pour équilibrer optiquement la ligne. */
.logo-pill--sq img { max-height: 40px; }

/* Marques dont aucun fichier exploitable n'existe : le nom tient lieu de logo. */
.logo-pill--text {
    font-family: var(--font-he);
    font-size: 1.05rem;
    font-weight: 700;
    /* Couleur figée, pas var(--text) : la pastille reste blanche en thème
       sombre, où le texte clair du thème deviendrait illisible. */
    color: #10151C;
    white-space: nowrap;
}

/* Work -------------------------------------------------------------------- */

.work-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s var(--ease);
}
.work-card { border-top: 4px solid var(--c); }
.work-card:hover { border-color: var(--line-strong); border-top-color: var(--c); }

.work-media {
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.work-body { padding: 1.65rem; }

.work-title {
    font-size: 1.075rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.work-text {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 1.15rem;
}

.work-tags {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.disclaimer {
    margin-top: 3rem;
    padding-inline-start: 1.25rem;
    border-inline-start: 2px solid var(--line-strong);
    color: var(--text-muted);
    font-size: 0.925rem;
    max-width: 82ch;
}

/* Comparison table -------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.compare th,
.compare td {
    padding: 1.15rem 1.5rem;
    text-align: start;
    vertical-align: top;
    font-size: 0.95rem;
}

.compare thead th {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--line);
}

.compare tbody tr + tr td { border-top: 1px solid var(--line); }

.compare tbody td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.compare tbody td:nth-child(2) { color: var(--text-muted); }

.compare .col-us {
    background: var(--accent-tint);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent), inset -3px 0 0 var(--accent);
}
.compare thead .col-us { color: var(--accent); }

/* Cases ------------------------------------------------------------------- */

.case {
    padding: 1.5rem 1.75rem 1.75rem;
    border-top: 4px solid var(--c);
    border-radius: var(--radius);
    background: var(--c-tint);
}

.case-metric {
    font-family: var(--font-lat);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--c);
}

.case-metric-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-faint);
    margin: 0.5rem 0 1.5rem;
}

.case-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.case-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Process ----------------------------------------------------------------- */

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
    margin-bottom: 4.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-num {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
body.dark-mode .step-num { color: #0C1017; }

.step-title {
    font-size: 1.075rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.step-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.guarantees {
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}

.guarantee-title {
    font-size: 0.975rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-top: 0.9rem;
    border-top: 4px solid var(--c);
}

.guarantee-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stack ------------------------------------------------------------------- */

.stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}

.stack-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c);
    margin-bottom: 0.6rem;
}

.stack-items {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--text-muted);
}

/* FAQ --------------------------------------------------------------------- */

.faq {
    border-top: 1px solid var(--line);
    max-width: 860px;
}

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
    padding: 1.35rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
    content: '+';
    flex: none;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    transition: transform 0.2s var(--ease);
}
.qa[open] summary::after { content: '\2013'; }

.qa p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    max-width: 72ch;
}

/* Contact ----------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-list {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 2rem;
}
.contact-list dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding-top: 0.15rem;
}
.contact-list dd { font-weight: 600; }
.contact-list a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
body.dark-mode .contact-list a { color: var(--accent-hover); }

.contact-form-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.25rem;
}

.field { margin-bottom: 1.15rem; }

.field-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-field {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.975rem;
}
.form-field::placeholder { color: var(--text-faint); }
.form-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}
textarea.form-field { resize: vertical; min-height: 120px; }
select.form-field { cursor: pointer; }

.form-field.invalid { border-color: #C0392B; }
body.dark-mode .form-field.invalid { border-color: #E27A6F; }

.field-error {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #C0392B;
}
.field-error.show { display: block; }
body.dark-mode .field-error { color: #E27A6F; }

/* Honeypot: hors écran, jamais affiché ni lu par les lecteurs d'écran. */
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 600;
}
.form-status.show { display: block; }
.form-status.ok {
    background: var(--accent-tint);
    color: var(--accent);
    border: 1px solid var(--accent);
}
body.dark-mode .form-status.ok { color: var(--accent-hover); }
.form-status.err {
    background: #FBEDEB;
    color: #A93226;
    border: 1px solid #E4B4AE;
}
body.dark-mode .form-status.err {
    background: #2C1A18;
    color: #E7A79E;
    border-color: #5A3230;
}
.form-status a { color: inherit; }

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

/* Pages internes (SEO) ---------------------------------------------------- */

.btn-header {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    width: auto;
}

.page-main { padding: 3rem 0 5rem; }

.article { max-width: 860px; }

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 2.25rem;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text-muted); }

.article-body { margin-top: 1.75rem; }
.article-body p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    max-width: 70ch;
}

.article-block { margin-top: 3rem; }

.article-h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.page-cta {
    padding: 2rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
}
.page-cta p {
    color: var(--text-muted);
    margin: 0.5rem 0 1.5rem;
    max-width: 60ch;
}
.page-cta .btn { width: auto; }

.related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.related a {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.related a:hover { border-color: var(--accent); color: var(--accent); }

.footer-lite { padding: 2rem 0; }
.footer-lite .footer-bottom { border-top: 0; padding-top: 0; }

/* Floating WhatsApp ------------------------------------------------------- */

.wa-float {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-start: 1.5rem;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1F8F4E;
    color: #fff;
    z-index: 900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background 0.15s var(--ease);
}
.wa-float:hover { background: #196F3D; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Footer ------------------------------------------------------------------ */

.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-lat);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}
.footer-logo span { color: var(--text-faint); font-weight: 600; }

.footer-desc {
    color: var(--text-muted);
    font-size: 0.925rem;
    max-width: 42ch;
}

.footer h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 0.6rem; }
.footer-links a {
    font-size: 0.925rem;
    color: var(--text-muted);
    text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--text-faint);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--text-muted); }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "copy" "visual" "facts";
        row-gap: 3rem;
    }
    .hero-visual { max-width: 560px; }
    .hero-grid > .hero-facts { margin-top: 0; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stack  { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .nav-toggle { display: grid; }

    .nav-menu {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 2rem 1.5rem;
    }
    .nav-menu.open { display: flex; }
    .nav-menu .nav-link { padding: 0.85rem 0; border-top: 1px solid var(--line); }
    .nav-link-cta {
        margin-top: 1rem;
        text-align: center;
        border-top: 0 !important;
    }
}

@media (max-width: 720px) {
    .container, .nav-container { padding-inline: 1.25rem; }

    .section { padding: 4rem 0; }
    .hero { padding: 2.75rem 0 2.75rem; }

    /* Sur mobile on va a l'essentiel : titre, une phrase, visuel, boutons. */
    .hero-grid { row-gap: 2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-visual { max-width: 100%; margin-inline-end: 0.5rem; }
    .float-wa { inset-inline-end: -0.4rem; }
    .float-tax { inset-inline-start: -0.4rem; }
    .app-url { display: none; }
    .app-side { display: none; }
    .app-body { grid-template-columns: 1fr; }
    .hero-facts { gap: 0.5rem 1.25rem; }
    .hero-facts li { font-size: 0.82rem; }

    .grid-2, .grid-3, .grid-4,
    .steps, .stack { grid-template-columns: 1fr; }

    .steps { gap: 2rem; margin-bottom: 3rem; }

    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }

    .panel, .contact-form-wrap { padding: 1.5rem; }

    .panel-wide-head { flex-direction: column; gap: 1.25rem; }
    .panel-wide-cta { width: 100%; }
    .ticks-cols { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .wa-float { width: 46px; height: 46px; bottom: 1rem; inset-inline-start: 1rem; }
    .wa-float svg { width: 23px; height: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
