/* ============================================================
   HELM-IT — Design System
   Palette sombre, naturelle, tons verts désaturés + beige chaud
   ============================================================ */

:root {
    /* Couleurs */
    --bg:           #0F1412;
    --bg-2:         #161C19;
    --bg-card:      #1B2220;
    --text:         #E8EDEB;
    --text-muted:   #9FA8A3;
    --green:        #4F7C6B;
    --accent:       #C7BCA6;
    --cta:          #6FAF92;
    --cta-hover:    #5A9E7F;
    --border:       #2A332F;

    /* Typographie */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espacements */
    --s-xs:  0.5rem;
    --s-sm:  1rem;
    --s-md:  1.5rem;
    --s-lg:  2.5rem;
    --s-xl:  4rem;
    --s-2xl: 6rem;
    --s-3xl: 8rem;

    /* Layout */
    --max-w: 1120px;
    --pad:   2rem;

    /* Arrondis */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;

    /* Transition */
    --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Utilitaires
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: 0.9375rem; }

p { color: var(--text-muted); line-height: 1.7; }

.label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--s-sm);
}

.section {
    padding: var(--s-3xl) 0;
}

.section-header {
    max-width: 600px;
    margin-bottom: var(--s-2xl);
}

.section-header h2 {
    margin-top: var(--s-xs);
    margin-bottom: var(--s-sm);
}

.section-intro {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================================
   Boutons
   ============================================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--cta);
    color: #0A120F;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--r-md);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: -0.01em;
    transition: background var(--ease), transform var(--ease);
}

.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: var(--font);
    letter-spacing: -0.01em;
    transition: border-color var(--ease), color var(--ease), transform var(--ease);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--cta);
    transform: translateY(-1px);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.125rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: border-color var(--ease), color var(--ease);
    letter-spacing: -0.01em;
}

.btn-nav:hover {
    border-color: var(--green);
    color: var(--text);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.125rem 0;
    background: rgba(15, 20, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--s-lg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s-lg);
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

@media (max-width: 640px) {
    .nav-links { display: none; }
}

.logo {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: var(--s-3xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(79, 124, 107, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 660px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: var(--s-lg);
    opacity: 0.8;
}

.hero-title {
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: var(--s-lg);
}

.hero-title em {
    font-style: normal;
    color: var(--cta);
    font-weight: 500;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: var(--s-xl);
}

/* ============================================================
   Problème
   ============================================================ */

.problem {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    gap: 1px;
}

.problem-card {
    background: var(--bg-2);
    padding: var(--s-lg);
    transition: background var(--ease);
}

.problem-card:hover {
    background: var(--bg-card);
}

.card-icon {
    color: var(--green);
    margin-bottom: var(--s-md);
    opacity: 0.9;
}

.problem-card h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--s-xs);
    color: var(--text);
}

.problem-card p {
    font-size: 0.875rem;
    line-height: 1.62;
    color: var(--text-muted);
}

.problem-card--quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(79, 124, 107, 0.07);
}

.problem-card--quote:hover {
    background: rgba(79, 124, 107, 0.1);
}

.problem-card--quote blockquote {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1.55;
    margin-bottom: var(--s-sm);
    font-weight: 400;
}

.problem-card--quote p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================================
   Solution
   ============================================================ */

.solution {
    background: var(--bg);
}

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3xl);
    align-items: start;
}

.solution-text .label {
    display: block;
}

.solution-text h2 {
    margin-top: var(--s-xs);
    margin-bottom: var(--s-lg);
}

.solution-text p {
    font-size: 1rem;
    margin-bottom: var(--s-md);
    line-height: 1.7;
}

.solution-text .btn-outline {
    margin-top: var(--s-sm);
}

.solution-steps {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.step-item {
    display: flex;
    gap: var(--s-md);
    padding: var(--s-lg);
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: background var(--ease);
}

.step-item:last-child {
    border-bottom: none;
}

.step-item:hover {
    background: var(--bg-card);
}

.step-num {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent);
    flex-shrink: 0;
    padding-top: 3px;
    min-width: 22px;
    opacity: 0.8;
}

.step-item h4 {
    font-size: 0.9375rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.step-item p {
    font-size: 0.875rem;
    line-height: 1.58;
    color: var(--text-muted);
}

/* ============================================================
   Services
   ============================================================ */

.services {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services .section-header {
    max-width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    gap: 1px;
}

.service-card {
    background: var(--bg-2);
    padding: var(--s-xl);
    transition: background var(--ease);
}

.service-card:hover {
    background: var(--bg-card);
}

.service-icon {
    color: var(--green);
    margin-bottom: var(--s-md);
    opacity: 0.85;
}

.service-card h3 {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: var(--s-sm);
    font-weight: 500;
}

.service-card > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: var(--s-md);
}

.service-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-items li {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.5;
}

.service-items li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--green);
    opacity: 0.7;
}

/* ============================================================
   Approche
   ============================================================ */

.approche {
    background: var(--bg);
}

.approche-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--s-3xl);
    align-items: start;
}

.approche-left .label {
    display: block;
}

.approche-left h2 {
    margin-top: var(--s-xs);
}

.approche-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-xl);
}

.approche-item h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.approche-item p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ============================================================
   CTA Final
   ============================================================ */

.cta-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-3xl);
    align-items: start;
}

.cta-left .label {
    display: block;
}

.cta-left h2 {
    margin-top: var(--s-xs);
    margin-bottom: var(--s-md);
}

.cta-left > p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--s-xl);
}

.cta-trust {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cta);
    flex-shrink: 0;
    opacity: 0.8;
}

/* Formulaire */

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-xl);
    display: flex;
    flex-direction: column;
    gap: var(--s-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
}

label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

input,
textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text);
    font-family: var(--font);
    outline: none;
    transition: border-color var(--ease);
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: rgba(159, 168, 163, 0.35);
}

input:focus,
textarea:focus {
    border-color: var(--green);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: var(--s-xl) 0;
}

.footer-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-sm);
}

.footer-inner p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.8125rem !important;
    color: rgba(159, 168, 163, 0.4) !important;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    :root {
        --s-3xl: 5.5rem;
        --s-2xl: 4rem;
    }

    .solution-layout {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }

    .approche-layout {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }

    .cta-layout {
        grid-template-columns: 1fr;
        gap: var(--s-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --s-3xl: 4rem;
        --s-2xl: 3rem;
        --pad: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: var(--s-2xl);
        align-items: flex-start;
    }

    .hero::before { display: none; }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .approche-right {
        grid-template-columns: 1fr;
        gap: var(--s-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--s-lg);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.375rem; }
    h2 { font-size: 1.75rem; }
}
