/* Home page, direction « Net »: one message, the domain search first, then services, offers and help. */

/* Content column: the same width as the header, the other sections and the footer. */
.home-container,
.home-hero-inner {
    margin: 0 auto;
    max-width: calc(var(--container) + 2 * var(--gutter));
    padding: 0 var(--gutter);
}

.home-icon {
    align-items: center;
    background: var(--surface-blue);
    border-radius: 12px;
    color: var(--blue);
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.home-icon svg {
    height: 22px;
    width: 22px;
}

.home-heading {
    margin-bottom: 40px;
    max-width: 760px;
}

.home-heading h2,
.home-creation h2,
.home-affiliate h2,
.home-guides h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
    letter-spacing: -0.04em;
    line-height: 1.06;
    margin: 0;
}

.home-heading p:not(.eyebrow) {
    color: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 16px 0 0;
}

.home-heading-split {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    justify-content: space-between;
    max-width: none;
}

.home-heading-split h2 {
    max-width: 640px;
}

.home-heading-split p:not(.eyebrow) {
    margin: 0;
    max-width: 420px;
}

/* Hero */

.home-hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}

.home-hero-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
}

.home-hero-copy {
    flex: 1 1 520px;
    min-width: 0;
}

.home-hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    letter-spacing: -0.048em;
    line-height: 1.02;
    margin: 0;
}

.home-hero-lead {
    color: var(--body);
    font-size: 1.2rem;
    line-height: 1.55;
    margin: 26px 0 0;
    max-width: 560px;
}

.home-domain {
    margin-top: 38px;
    max-width: 580px;
}

.home-domain-form {
    margin: 0;
}

.home-domain-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.home-domain-field {
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(14, 21, 37, 0.06);
    display: flex;
    gap: 8px;
    padding: 7px;
}

.home-domain-field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(20, 92, 255, 0.14);
}

.home-domain-field > span {
    color: var(--muted);
    font-size: 1.05rem;
    padding-left: 12px;
}

.home-domain-field input {
    background: transparent;
    border: 0;
    color: var(--ink);
    flex: 1 1 150px;
    font-size: 1.05rem;
    min-width: 0;
    outline: none;
    padding: 12px 2px;
}

.home-domain-field .button {
    min-height: 48px;
    padding: 0 24px;
}

.home-domain-form.is-loading .button {
    opacity: 0.7;
}

.home-domain-result {
    margin-top: 12px;
}

.home-domain-result .domain-result {
    border-radius: 14px;
}

.home-domain-tlds {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.875rem;
    gap: 6px 12px;
    margin: 14px 0 0;
}

.home-domain-tlds .mono {
    color: var(--ink);
}

.home-points {
    color: var(--body);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    gap: 10px 26px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.home-points li {
    align-items: center;
    display: flex;
    gap: 8px;
}

.home-points svg {
    color: var(--blue);
    height: 18px;
    stroke-width: 2.4;
    width: 18px;
}

.home-hero-visual {
    background: var(--blue);
    border-radius: 28px;
    flex: 1 1 420px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    position: relative;
}

.home-hero-visual::before {
    background: var(--dot);
    border-radius: 50%;
    content: "";
    height: 190px;
    position: absolute;
    right: -56px;
    top: -56px;
    width: 190px;
}

.home-console {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(6, 22, 80, 0.3);
    padding: 22px 24px;
    position: relative;
}

.home-console-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.95rem;
    gap: 8px 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-console-head .mono {
    color: var(--muted);
    font-size: 0.75rem;
}

.home-console-row {
    align-items: center;
    border-top: 1px solid #edf0f5;
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.home-console-row:last-child {
    padding-bottom: 2px;
}

.home-console-row .home-icon {
    border-radius: 10px;
    flex-basis: 40px;
    height: 40px;
    width: 40px;
}

.home-console-row .home-icon svg {
    height: 20px;
    width: 20px;
}

.home-console-row > span:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
}

.home-console-row strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.home-console-row small {
    color: var(--muted);
    display: block;
    font-size: 0.8rem;
}

.home-console-row em {
    background: var(--surface-blue);
    border-radius: 999px;
    color: var(--blue);
    flex-shrink: 0;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    padding: 5px 10px;
}

.home-console-row em.is-ok {
    background: var(--success-soft);
    color: var(--success);
}

.home-hero-visual figcaption {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 22px;
    max-width: 380px;
    position: relative;
}

/* Services */

.home-services {
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: clamp(56px, 7vw, 92px) 0;
}

.home-service-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.home-service {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    text-decoration: none;
    transition: border-color 160ms ease;
}

.home-service:hover {
    border-color: var(--blue);
}

.home-service strong {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-service-text {
    color: var(--body);
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-service-action {
    color: var(--blue);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Website creation */

.home-creation {
    border-top: 1px solid var(--line);
    padding: clamp(64px, 8vw, 100px) 0;
}

.home-creation-inner {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 48px 72px;
}

.home-creation-copy {
    flex: 1 1 380px;
    min-width: 0;
}

.home-creation-copy > p:not(.eyebrow) {
    color: var(--body);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 22px 0 28px;
}

.home-paths {
    display: flex;
    flex: 1 1 520px;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.home-paths a {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    display: flex;
    gap: 22px;
    padding: 24px 28px;
    text-decoration: none;
    transition: border-color 160ms ease;
}

.home-paths a:hover {
    border-color: var(--blue);
}

.home-path-number {
    color: var(--blue);
    font-size: 0.875rem;
}

.home-path-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.home-path-copy strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-path-copy span {
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-path-arrow {
    flex: 0 0 22px;
    height: 22px;
    width: 22px;
}

/* Affiliation */

.home-affiliate {
    background: var(--blue);
    color: #ffffff;
    overflow: hidden;
    padding: clamp(56px, 7vw, 88px) 0;
    position: relative;
}

.home-affiliate::after {
    background: #3b78ff;
    border-radius: 50%;
    bottom: -160px;
    content: "";
    height: 420px;
    position: absolute;
    right: -120px;
    width: 420px;
}

.home-affiliate-inner {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.home-affiliate-copy {
    flex: 1 1 520px;
    min-width: 0;
}

.home-affiliate .eyebrow,
.home-affiliate h2,
.home-affiliate p {
    color: #ffffff;
}

.home-affiliate-copy > p:not(.eyebrow) {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 18px 0 26px;
    max-width: 560px;
}

.home-affiliate .home-affiliate-button {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ink);
}

.home-affiliate .home-affiliate-button:hover {
    background: var(--surface-blue);
    border-color: var(--surface-blue);
}

.home-affiliate-figure {
    flex: 0 1 300px;
    margin: 0;
}

.home-affiliate-figure strong {
    display: block;
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.home-affiliate-figure span {
    display: block;
    font-size: 1rem;
    margin-top: 10px;
}

/* Guides and help */

.home-guides {
    padding: clamp(64px, 8vw, 96px) 0;
}

.home-guides-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
}

.home-guides-copy {
    flex: 1 1 560px;
    min-width: 0;
}

.home-guides h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.home-guides-copy > p {
    color: var(--body);
    line-height: 1.55;
    margin: 12px 0 24px;
}

.home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-chips a {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 11px 18px;
    text-decoration: none;
}

.home-chips a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.home-guides-copy .home-note {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 22px 0 0;
}

.home-help {
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    flex: 1 1 340px;
    min-width: 0;
    padding: 30px;
}

.home-help h3 {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.home-help p {
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 10px 0 22px;
}

.home-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Small budget */

.home-budget {
    border-top: 1px solid var(--line);
    padding: clamp(64px, 8vw, 96px) 0;
}

.home-budget-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-budget-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
}

.home-budget-grid h3 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.home-budget-grid p {
    color: var(--body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Other Atelink brands */

.home-atelink {
    border-top: 1px solid var(--line);
}

.home-atelink .section-heading {
    text-align: left;
}

.home-atelink .section-heading p:not(.eyebrow) {
    margin: 12px 0 0;
}

@media (max-width: 760px) {
    .home-domain-field {
        flex-wrap: wrap;
    }

    .home-domain-field .button {
        flex: 1 1 100%;
    }

    .home-hero-visual {
        border-radius: 22px;
    }

    .home-paths a {
        gap: 14px;
        padding: 20px;
    }
}

/* Motion. The hero comes in on load (CSS alone), its blue panel breathing and its console floating; below it,
   js/home.js has the shared reveal (js/motion.js, css/motion.css) add .motion-reveal to the blocks still out of view and
   .is-visible when they come in, so nothing is hidden without the script, nor for blocks already on screen. Animations only fill backwards with opacity, translate and
   scale, so hover effects and the layout stay as they are; none of it runs with reduced motion. */

@media (prefers-reduced-motion: no-preference) {
    .home-hero-copy > *,
    .home-hero-visual,
    .home-console-row {
        animation: home-rise 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
    }

    .home-hero-copy > :nth-child(2) {
        animation-delay: 0.08s;
    }

    .home-hero-copy > :nth-child(3) {
        animation-delay: 0.18s;
    }

    .home-hero-copy > :nth-child(4) {
        animation-delay: 0.28s;
    }

    .home-hero-copy > :nth-child(n + 5) {
        animation-delay: 0.38s;
    }

    .home-hero-visual {
        animation-delay: 0.2s;
    }

    .home-hero-visual::before {
        animation: home-breathe 6s ease-in-out 1.2s infinite alternate;
    }

    .home-console {
        animation: home-float 7s ease-in-out 1.6s infinite alternate;
    }

    /* The rows follow the panel, each status badge pops once its row is in; « En ligne » keeps a soft pulse. */
    .home-console-row {
        animation-delay: var(--row-delay);
    }

    .home-console-row:nth-child(2) {
        --row-delay: 0.5s;
    }

    .home-console-row:nth-child(3) {
        --row-delay: 0.6s;
    }

    .home-console-row:nth-child(4) {
        --row-delay: 0.7s;
    }

    .home-console-row:nth-child(n + 5) {
        --row-delay: 0.8s;
    }

    .home-console-row em {
        animation: home-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--row-delay) + 0.45s) backwards;
    }

    .home-console-row:nth-child(2) em.is-ok {
        animation: home-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--row-delay) + 0.45s) backwards, home-live 2.6s ease-out 1.8s infinite;
    }

    .home-paths > li.motion-reveal.is-visible {
        animation-name: home-slide;
    }

    .home-affiliate::after {
        animation: home-drift 18s ease-in-out infinite alternate;
    }

    .home-affiliate-figure strong {
        transform-origin: left bottom;
    }

    .home-affiliate-figure.is-visible strong {
        animation: home-pop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--reveal-delay, 0s) + 0.2s) backwards;
    }

    /* The family opened by its tab comes in, its cards one after the other (offers.js shows it, home.js sets the class). */
    .offer-home.is-switched [data-offer-family]:not([hidden]) .offer-section-heading {
        animation: home-fade 0.4s ease backwards;
    }

    .offer-home.is-switched [data-offer-family]:not([hidden]) .offer-card,
    .offer-home.is-switched [data-offer-family]:not([hidden]) .offer-empty {
        animation: home-rise 0.6s cubic-bezier(0.2, 0.75, 0.25, 1) calc(var(--card-index, 0) * 70ms + 0.08s) backwards;
    }

    .home-service,
    .home-service .home-icon,
    .home-path-arrow {
        transition: border-color 160ms ease, box-shadow 0.22s ease, transform 0.22s ease;
    }

    .home-paths a {
        transition: border-color 160ms ease, background-color 0.22s ease;
    }

    @media (hover: hover) and (pointer: fine) {
        .home-service:hover {
            box-shadow: 0 16px 36px rgba(14, 21, 37, 0.08);
            transform: translateY(-4px);
        }

        .home-service:hover .home-icon {
            transform: rotate(-6deg) scale(1.06);
        }

        .home-paths a:hover {
            background-color: var(--surface-soft);
        }

        .home-paths a:hover .home-path-arrow {
            color: var(--blue);
            transform: translateX(4px);
        }
    }
}

@keyframes home-rise {
    from {
        opacity: 0;
        translate: 0 26px;
    }
}

@keyframes home-slide {
    from {
        opacity: 0;
        translate: 32px 0;
    }
}

@keyframes home-fade {
    from {
        opacity: 0;
    }
}

@keyframes home-pop {
    from {
        opacity: 0;
        scale: 0.6;
    }
}

@keyframes home-breathe {
    to {
        scale: 1.18;
    }
}

@keyframes home-float {
    to {
        translate: 0 -8px;
    }
}

@keyframes home-drift {
    to {
        translate: -48px -36px;
        scale: 1.1;
    }
}

@keyframes home-live {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 110, 77, 0.35);
    }

    70%,
    100% {
        box-shadow: 0 0 0 8px rgba(11, 110, 77, 0);
    }
}
