/* ==========================================================
   4ACYBER - Page d'accueil
   Fichier : /css/index.css
   ========================================================== */

:root {
    --home-green: #16a329;
    --home-green-dark: #0d7f1d;
    --home-green-light: #55d266;
    --home-green-soft: #0f1b11;
    --home-black: #000000;
    --home-surface: #101010;
    --home-surface-alt: #080808;
    --home-surface-hover: #151515;
    --home-text: #eeeeee;
    --home-muted: #b5b5b5;
    --home-line: #343434;
    --home-max: 1180px;
    --home-radius: 14px;
    --home-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--home-black);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--home-black);
    color: var(--home-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

main {
    display: block;
    overflow: hidden;
    background: var(--home-black);
}

a {
    color: inherit;
}

.home-container {
    width: min(100% - 44px, var(--home-max));
    margin-inline: auto;
}

.home-kicker {
    margin: 0 0 10px;
    color: var(--home-green-light);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* HERO */
.home-hero {
    position: relative;
    border-bottom: 1px solid var(--home-line);
    background:
        radial-gradient(circle at 82% 18%, rgba(22, 163, 41, .13), transparent 31%),
        linear-gradient(135deg, rgba(22, 163, 41, .08), transparent 42%),
        var(--home-black);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(85, 210, 102, .08);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    min-height: 590px;
    padding-block: 88px 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 64px;
    align-items: center;
}

.home-hero-content h1 {
    margin: 0;
    font-size: clamp(3.4rem, 8vw, 6.8rem);
    line-height: .92;
    letter-spacing: -.055em;
}

.home-lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: #c9c9c9;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.home-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-button {
    min-height: 46px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--home-green);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.home-button:hover,
.home-button:focus-visible {
    transform: translateY(-2px);
}

.home-button-primary {
    background: var(--home-green);
    color: #ffffff;
}

.home-button-primary:hover,
.home-button-primary:focus-visible {
    background: var(--home-green-dark);
    border-color: var(--home-green-dark);
}

.home-button-secondary {
    background: #111111;
    color: var(--home-text);
}

.home-button-secondary:hover,
.home-button-secondary:focus-visible {
    background: #181818;
}

.home-highlight {
    padding: 30px;
    border: 1px solid var(--home-line);
    border-left: 5px solid var(--home-green);
    border-radius: var(--home-radius);
    background: rgba(16, 16, 16, .9);
    box-shadow: var(--home-shadow);
}

.home-highlight-label {
    margin: 0 0 12px;
    color: var(--home-green-light);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.home-highlight-text {
    margin: 0;
    color: #d0d0d0;
    font-size: 1.05rem;
}

/* SECTIONS */
.home-section {
    padding-block: 82px;
    background: var(--home-black);
}

.home-section-alt {
    border-block: 1px solid var(--home-line);
    background: var(--home-surface-alt);
}

.home-section-header {
    max-width: 780px;
    margin-bottom: 38px;
}

.home-section-header h2,
.home-split-content h2,
.home-cta h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.home-section-header > p:last-child,
.home-split-content > p:last-child,
.home-cta p {
    margin: 15px 0 0;
    color: var(--home-muted);
    font-size: 1.05rem;
}

.home-card-grid {
    display: grid;
    gap: 20px;
}

.home-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-card,
.home-feature-card {
    min-height: 220px;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    background: var(--home-surface);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
}

.home-card {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.home-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--home-green);
}

.home-card-number {
    display: block;
    margin-bottom: 24px;
    color: var(--home-green-light);
    font-weight: 800;
}

.home-card h3,
.home-feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.25;
}

.home-card p,
.home-feature-card p {
    margin: 0;
    color: var(--home-muted);
}

.home-feature-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.home-feature-card:hover {
    border-color: #3f6646;
    background: var(--home-surface-hover);
    transform: translateY(-2px);
}

.home-feature-tag {
    margin-bottom: 12px !important;
    color: var(--home-green-light) !important;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.home-text-link {
    width: fit-content;
    color: var(--home-green-light);
    text-decoration: none;
    font-weight: 800;
}

.home-text-link:hover,
.home-text-link:focus-visible {
    text-decoration: underline;
}

/* RESSOURCES */
.home-split {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    gap: 70px;
    align-items: start;
}

.home-resource-list {
    border-top: 1px solid var(--home-line);
}

.home-resource-item {
    padding: 23px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--home-line);
    text-decoration: none;
    transition: padding-left .15s ease, color .15s ease;
}

.home-resource-item:hover,
.home-resource-item:focus-visible {
    padding-left: 10px;
    color: var(--home-green-light);
}

.home-resource-item strong,
.home-resource-item small {
    display: block;
}

.home-resource-item strong {
    font-size: 1.08rem;
}

.home-resource-item small {
    margin-top: 4px;
    color: var(--home-muted);
    font-size: .92rem;
}

.home-resource-arrow {
    color: var(--home-green-light);
    font-size: 1.35rem;
    font-weight: 800;
}

/* CONTACT */
.home-cta {
    padding: 0 0 82px;
    background: var(--home-black);
}

.home-cta-inner {
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    border: 1px solid #214a28;
    border-radius: var(--home-radius);
    background:
        linear-gradient(120deg, rgba(22, 163, 41, .12), transparent 62%),
        var(--home-green-soft);
}

.home-contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* FOOTER */
.home-footer {
    border-top: 1px solid var(--home-line);
    background: #0a0a0a;
    color: var(--home-muted);
}

.home-footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-footer p {
    margin: 0;
}

.home-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.home-footer-links a {
    color: var(--home-muted);
    text-decoration: none;
}

.home-footer-links a:hover,
.home-footer-links a:focus-visible {
    color: var(--home-green-light);
}

/* ACCESSIBILITÉ */
.home-button:focus-visible,
.home-text-link:focus-visible,
.home-resource-item:focus-visible,
.home-footer-links a:focus-visible {
    outline: 2px solid var(--home-green-light);
    outline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .home-hero-grid,
    .home-split {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        min-height: auto;
        gap: 38px;
        padding-block: 68px 58px;
    }

    .home-highlight {
        max-width: 680px;
    }

    .home-card-grid-3 {
        grid-template-columns: 1fr;
    }

    .home-card-grid-2 {
        grid-template-columns: 1fr;
    }

    .home-split {
        gap: 34px;
    }
}

@media (max-width: 640px) {
    .home-container {
        width: min(100% - 30px, var(--home-max));
    }

    .home-hero-grid {
        padding-block: 54px 46px;
    }

    .home-section {
        padding-block: 62px;
    }

    .home-actions {
        flex-direction: column;
    }

    .home-button {
        width: 100%;
    }

    .home-card,
    .home-feature-card,
    .home-highlight,
    .home-cta-inner {
        padding: 23px;
    }

    .home-cta-inner {
        grid-template-columns: 1fr;
    }

    .home-contact-actions {
        justify-content: flex-start;
        flex-direction: column;
    }

    .home-footer-inner {
        padding-block: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .home-button,
    .home-feature-card,
    .home-resource-item {
        transition: none;
    }
}
