:root {
    --bg: #000000;
    --panel: #111111;
    --ink: #FFFFFF;
    --muted: #A8A8A8;
    --line: #333333;
    --orange: #FF9A00;
    --dark-gray: #A8A8A8;   /* utilisé par des styles inline des cas clients */
}

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

body {
    font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

a { color: inherit; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== BOUTON (flèche dans un carré orange) ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

.btn-primary .sq {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--orange);
    color: #000;
    flex: none;
    transition: transform 0.15s;
}

.btn-primary:hover .sq { transform: translateX(4px); }
.btn-primary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ===== HERO ===== */
.hero {
    padding: 24px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
}

/* photo en bas à droite, à côté de l'énoncé : le titre garde toute la largeur */
.hero-content > div:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
}

.hero-hook {
    color: var(--orange);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero h1 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(24px, 6vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.hero h1 span { display: block; }
.hero h1 .l2 { padding-left: 16%; }
.hero h1 .l3 { padding-left: 5%; }

.hero-subtitle {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 500;
    margin-bottom: 22px;
    max-width: 30em;
}

.hero-note {
    color: var(--muted);
    font-size: 14.5px;
    max-width: 38em;
    margin-top: 14px;
}

.hero-note + .hero-note { margin-top: 6px; }
.hero-note a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--ink); }

.cases-cta { margin-top: 24px; }

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--orange);
    object-fit: cover;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

.stat-box {
    border-top: 1px solid var(--ink);
    padding-top: 14px;
}

.stat-num {
    color: var(--orange);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-top: 4px;
}

.hero-author {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.hero-author-name { font-size: 18px; font-weight: 800; }
.hero-author-title { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ===== SECTIONS ===== */
section { padding: 48px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }

.section-header { margin-bottom: 28px; }

.section-tag {
    color: var(--orange);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.section-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testi-card {
    background: var(--panel);
    border-left: 4px solid var(--orange);
    padding: 22px;
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.testi-photo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange);
}

.testi-initials {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.testi-name { font-weight: 700; font-size: 16px; }
.testi-role { color: var(--muted); font-size: 14px; }
.testi-context { color: var(--orange); font-size: 13px; font-weight: 700; }
.testi-stars { color: var(--orange); margin-left: auto; }
.testi-stars-label { font-size: 12px; color: var(--muted); text-align: right; }

.testi-quote {
    color: #E6E6E6;
    font-size: 16px;
    line-height: 1.6;
}

.testi-malt {
    margin-top: 18px;
    font-size: 15px;
    color: var(--muted);
}

.testi-malt a { color: var(--orange); text-decoration: none; }

/* ===== CONSTAT ===== */
.constat-content { max-width: 820px; }

.constat-intro {
    font-weight: 800;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.constat-bullets {
    list-style: none;
    margin: 12px 0;
}

.constat-bullets li {
    padding: 6px 0 6px 28px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.constat-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 15px;
    width: 10px; height: 10px;
    background: var(--orange);
}

.quote-box {
    border-left: 4px solid var(--orange);
    padding: 4px 0 4px 22px;
    margin: 20px 0 0;
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
}

.method-box {
    background: var(--panel);
    border-top: 4px solid var(--orange);
    padding: 24px 28px;
    max-width: 820px;
}

.method-box h3 {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 10px;
}

.method-steps { padding-left: 1.4em; }

.method-steps li {
    color: var(--orange);
    font-weight: 700;
    padding: 4px 0 4px 6px;
}

.method-steps li::marker { color: var(--ink); }

/* ===== CE QUE JE LIVRE (lignes .task agrandies) ===== */
.deliver-price { font-size: 18px; max-width: 60em; margin-top: 16px; }
.deliver-target { color: var(--muted); font-size: 16px; max-width: 60em; margin-top: 4px; }

.deliver { padding: 36px 0; }
.deliver .section-header { margin-bottom: 20px; }
.task.deliver-row { gap: 24px; padding: 8px 6px; }   /* .task (syp-chrome.css) est chargé après : sélecteur plus précis */
.deliver-row:hover .sq { transform: translateX(4px); }

.d-num {
    flex: none;
    width: 2.2em;
    color: var(--orange);
    font-weight: 800;
    font-size: clamp(20px, 2vw, 26px);
}

.d-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.d-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.d-detail { color: var(--muted); font-size: 18px; }

.d-side { flex: none; display: flex; align-items: center; gap: 20px; text-align: right; }

.d-erp { color: var(--muted); font-size: 14px; }
.deliver-target a,
.case-erp-link a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.deliver-target a:hover,
.case-erp-link a:hover { color: var(--ink); }
.case-erp-link { color: var(--muted); font-size: 17px; margin-top: 40px; }

.d-more { font-size: 17px; }

/* ===== ENCART SIMULATEUR ===== */
.tool-teaser {
    padding-top: 0;
    border-top: 0;
}

.tool-teaser-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: var(--panel);
    border-left: 4px solid var(--orange);
    padding: 22px 28px;
}

.tool-teaser-title {
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tool-teaser-text {
    color: var(--muted);
    font-size: 16px;
    margin-top: 4px;
}

.tool-teaser .btn-primary { white-space: nowrap; }
a.tool-teaser-box { color: var(--ink); text-decoration: none; transition: background 0.15s; }
a.tool-teaser-box:hover { background: #181818; }
a.tool-teaser-box:hover .sq { transform: translateX(4px); }

/* ===== CAS (badge, sections, étapes, captures) ===== */
.case-badge {
    display: inline-block;
    background: var(--orange);
    color: #000;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.case-section-title {
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.case-section-title.problem { color: var(--orange); }
.case-section-title.solution { color: var(--ink); }
.case-section-title.results { color: var(--orange); }

.case-text {
    color: #E6E6E6;
    margin-bottom: 24px;
    line-height: 1.7;
}

.case-steps {
    list-style: none;
    margin: 12px 0 24px;
}

.case-steps li { padding: 5px 0; color: #E6E6E6; }
.case-steps li strong { color: var(--orange); }

.case-screenshot {
    width: 100%;
    height: auto;
    margin: 16px 0 28px;
    border: 1px solid var(--line);
}

/* ===== CARTES DES CAS (accueil) ===== */
.case-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1100px) { .case-cards { grid-template-columns: repeat(2, 1fr); } }

.case-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--panel);
    border-top: 4px solid var(--orange);
    padding: 22px;
    text-decoration: none;
    transition: background 0.15s;
}

.case-tile:hover { background: #181818; }
.case-tile:hover .sq { transform: translateX(4px); }

.case-tile-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.case-tile-sector { color: var(--muted); font-size: 15px; margin-top: 8px; }
.case-tile-num { color: var(--orange); font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; margin-top: auto; padding-top: 18px; }  /* en bas : chiffres alignés d'une carte à l'autre */
.case-tile-label { font-size: 15px; margin-top: 6px; }
.case-tile-more { margin-top: 18px; font-size: 16px; }

/* ===== PAGE D'UN CAS ===== */
.case-hero h1 { font-size: clamp(36px, 6vw, 88px); }
.case-hero .stats-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.case-page-when { color: var(--muted); font-size: 15px; font-weight: 400; }

.case-detail-body { max-width: 820px; }
.case-detail-body .case-screenshot { max-width: 100%; }

.case-testimonial { max-width: 820px; margin-top: 56px; }

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.case-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.case-nav a { text-decoration: none; }
.case-nav a:hover { color: var(--orange); }

/* ===== EN BREF (accueil) ===== */
.facts { padding: 28px 0; }
.facts-text { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 60em; }
.facts-text strong { color: var(--ink); }

/* ===== PAGES PAR ERP ===== */
.task.erp-plug { cursor: default; padding: 14px 6px; }
.task.erp-plug:hover { background: none; }
.erp-facts-text { max-width: 820px; margin-bottom: 0; }

.faq-list { max-width: 820px; border-top: 1px solid var(--ink); }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.faq-item p { color: #E6E6E6; line-height: 1.7; }

/* ===== NEWSLETTER (formulaire partagé : page /newsletter et pages des cas) ===== */
.nl-form { max-width: 820px; }
.case-newsletter { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 40px; }
.nl-lead { font-size: clamp(19px, 2vw, 22px); font-weight: 500; line-height: 1.45; margin-bottom: 20px; }
.nl-row { display: flex; align-items: flex-end; gap: 28px; }
.nl-row input[type=email] {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
    font: inherit;
    font-size: 19px;
    padding: 10px 0;
    border-radius: 0;
}
.nl-row input[type=email]::placeholder { color: var(--muted); }
.nl-row input[type=email]:focus { outline: none; border-bottom-color: var(--orange); }
.nl-form button { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.nl-form button:disabled { opacity: 0.5; cursor: default; }
.nl-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 15px; margin-top: 18px; cursor: pointer; }
.nl-consent input { accent-color: var(--orange); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.nl-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.nl-msg { font-size: 17px; font-weight: 700; color: var(--orange); margin-top: 16px; }
.nl-msg:empty { display: none; }
.nl-msg.err { color: var(--ink); font-weight: 500; border-left: 4px solid var(--orange); padding-left: 14px; }
.nl-form.done .nl-fields { display: none; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
    .nl-row { flex-direction: column; align-items: stretch; gap: 18px; }
}

/* ===== CTA ===== */
.cta {
    padding: 40px 0;
    position: relative;
}

.cta h2 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-text {
    color: var(--muted);
    font-size: 18px;
    max-width: 44em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cta-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.cta-author img {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    object-fit: cover;
}

.cta-author-name { font-weight: 800; }
.cta-author-title { color: var(--muted); font-size: 15px; }

.cta-contact {
    color: var(--muted);
    font-size: 15px;
    margin-top: 10px;
}

.cta-contact a { color: var(--orange); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    section { padding: 40px 0; }
    .hero-content > div:last-child { position: static; margin-top: 36px; }
    .hero-photo { width: 120px; height: 120px; }
    .hero h1 { line-height: 1.08; }   /* accents (TÂCHES) sans chevauchement quand le titre passe sur plus de lignes */
    .hero h1 .l2 { padding-left: 10%; }
    .hero h1 .l3 { padding-left: 0; }
    .stats-row { grid-template-columns: 1fr; gap: 16px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .case-cards { grid-template-columns: 1fr; }
    .task.deliver-row { flex-wrap: wrap; gap: 14px 16px; padding: 22px 4px; }
    .d-num { width: auto; }
    .d-main { flex-basis: calc(100% - 3em); }
    .d-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
    .tool-teaser-box { flex-direction: column; align-items: flex-start; padding: 24px; }
    .tool-teaser .btn-primary { white-space: normal; }
    .cta-author { flex-direction: column; align-items: flex-start; }
}
