.g3-base .g3-base-top.g3-home-signup-rail {
    --g3-rail-pad: clamp(15px, 1.5vw, 21px);
}

@media (min-width: 761px) {
    .g3-base .g3-base-top.g3-home-signup-rail {
        grid-template-rows: minmax(min-content, 1fr) auto;
        row-gap: 12px;
    }
    .g3-home-signup-rail > :is(#g3-accueil-motion, .g3-base-banner) { grid-area: 1 / 1 / 3 / 2; }
    .g3-home-signup-rail > .g3-order-guide { grid-area: 1 / 2; }
    .g3-home-signup-rail > .gn-home { grid-area: 2 / 2; }
}

@media (min-width: 761px) and (max-width: 1000px) {
    .g3-base .g3-base-top.g3-home-signup-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 12px;
    }
    .g3-home-signup-rail > :is(#g3-accueil-motion, .g3-base-banner) { grid-area: 1 / 1 / 2 / 3; }
    .g3-home-signup-rail > .g3-order-guide { grid-area: 2 / 1; }
    .g3-home-signup-rail > .gn-home { grid-area: 2 / 2; }
}

.g3-base-top > details.g3-order-guide {
    --g3-route-ink: #23253f;
    --g3-route-pad: clamp(14px, 1.3vw, 20px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d9dde7;
    border-radius: 15px;
    background: #fff;
    color: var(--g3-route-ink);
    box-shadow: 0 3px 12px #1d244508;
}
.g3-base-top > details.g3-order-guide::before,
.g3-base-top > details.g3-order-guide::after { content: none; }
.g3-base-top .g3-order-guide[open]::details-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.g3-base-top .g3-order-guide .g3-order-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--g3-route-pad) 0;
    min-height: 0;
    list-style: none;
}
.g3-base-top .g3-order-guide summary::marker { content: ''; }
.g3-base-top .g3-order-guide summary::-webkit-details-marker { display: none; }
.g3-base-top .g3-order-guide .g3-order-summary h2 {
    margin: 0;
    color: var(--g3-route-ink);
    font-size: clamp(20px, 1.65vw, 25px);
    line-height: 1.14;
    letter-spacing: -.03em;
    text-transform: none;
}
.g3-base-top .g3-order-guide :is(.g3-order-chevron, .g3-order-pocket) { display: none; }
.g3-base-top .g3-order-guide .g3-order-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0;
}
.g3-base-top .g3-order-guide ol.g3-order-route {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-content: center;
    gap: 0;
    margin: 0;
    padding: 8px max(6px, calc(var(--g3-route-pad) - 7px)) 12px;
    list-style: none;
}
.g3-base-top .g3-order-guide .g3-order-route li {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    min-height: 0;
    margin: 0;
    padding: 0;
    font: inherit;
    text-align: center;
}
.g3-base-top .g3-order-route li::before { content: none; }
.g3-base-top .g3-order-guide .g3-order-route li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: auto;
    bottom: auto;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #d9b876 0 3px, transparent 3px 7px);
    transform-origin: left;
}
.g3-base-top .g3-route-icon {
    display: block;
    width: 45px;
    height: 42px;
    color: var(--g3-route-ink);
}
.g3-base-top .g3-order-guide .g3-route-label {
    color: #53576c;
    font-size: clamp(12px, .88vw, 13px);
    font-weight: 400;
    line-height: 1.32;
}
.g3-base-top .g3-route-label strong {
    display: block;
    color: var(--g3-route-ink);
    font-size: clamp(13px, .98vw, 14px);
    font-weight: 700;
}
.g3-base-top .g3-route-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 10px;
    margin: 0 var(--g3-route-pad);
    padding: 1px 0;
    border-top: 1px solid #e4e5ec;
    color: #53576c;
}
.g3-base-top .g3-route-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.g3-base-top .g3-order-guide .g3-route-foot .g3-order-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--g3-route-ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.g3-base-top .g3-route-foot .g3-order-link svg { flex: none; color: #935e00; }
.g3-base-top .g3-route-foot .g3-order-link:is(:hover, :focus-visible) {
    color: #825300;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.g3-base-top .g3-order-guide :is(summary, .g3-order-link):focus-visible {
    outline: 2px solid #a36c00;
    outline-offset: -2px;
}

@media (max-width: 760px) {
    .g3-base-top .g3-order-guide .g3-order-summary {
        min-height: 56px;
        padding: 8px var(--g3-route-pad);
        cursor: pointer;
    }
    .g3-base-top .g3-order-guide .g3-order-summary h2 { flex: 1; font-size: 20px; }
    .g3-base-top .g3-order-guide .g3-order-pocket { display: block; flex: none; }
    .g3-base-top .g3-order-guide .g3-order-chevron {
        position: static;
        display: block;
        flex: none;
        color: #626578;
        transform: none;
    }
    .g3-base-top .g3-order-guide[open] .g3-order-chevron { transform: rotate(180deg); }
    .g3-base-top .g3-order-guide ol.g3-order-route { padding-block: 5px 12px; }
    .g3-base-top .g3-order-guide .g3-route-foot .g3-order-link { min-height: 44px; }
}

@media (prefers-reduced-motion: no-preference) {
    .g3-base-top .g3-order-guide .g3-order-chevron,
    .g3-base-top .g3-route-foot .g3-order-link svg { transition: transform .22s ease; }
    .g3-base-top .g3-route-foot .g3-order-link:is(:hover, :focus-visible) svg {
        transform: translateX(3px);
    }
    .g3-base-top .g3-order-route li:nth-child(2) { --g3-stop-delay: 110ms; }
    .g3-base-top .g3-order-route li:nth-child(3) { --g3-stop-delay: 220ms; }
    .g3-base-top .g3-order-guide[open] .g3-route-icon {
        animation: g3-route-arrive .48s cubic-bezier(.2,.8,.2,1) both;
        animation-delay: var(--g3-stop-delay, 0ms);
    }
    .g3-base-top .g3-order-guide[open] .g3-order-route li:not(:last-child)::after {
        animation: g3-route-connect .38s ease-out both;
        animation-delay: calc(var(--g3-stop-delay, 0ms) + 80ms);
    }
    @keyframes g3-route-arrive {
        from { opacity: .25; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes g3-route-connect {
        from { transform: scaleX(0); }
        to { transform: scaleX(1); }
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .g3-base-top .g3-order-guide[open]:is(:hover, :focus-within) .g3-order-route li:not(:last-child)::before {
        content: '';
        position: absolute;
        z-index: 1;
        top: 18px;
        left: calc(50% + 24px);
        width: calc(100% - 48px);
        height: 6px;
        background: radial-gradient(circle closest-side, #d38c18 85%, transparent) left center / 6px 6px no-repeat;
        animation: g3-trace-step .54s ease-in-out both;
        pointer-events: none;
    }
    .g3-base-top .g3-order-guide[open]:is(:hover, :focus-within) .g3-order-route li:nth-child(2)::before { animation-delay: .42s; }
    @keyframes g3-trace-step {
        0% { opacity: 0; background-position: left center; }
        15%, 80% { opacity: 1; }
        100% { opacity: 0; background-position: right center; }
    }
}

.g3-base-top.g3-home-signup-rail .gn-signup.gn-home {
    --gn-ink: #fbf8f2;
    --gn-text: #d9d9e3;
    --gn-accent: #ffbd55;
    --gn-hover: #ffcc77;
    --gn-button-ink: #252237;
    --gn-focus: #ffd47f;
    container-type: inline-size;
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 15px var(--g3-rail-pad, 19px) 13px;
    color: var(--gn-ink);
    background: radial-gradient(ellipse at 100% 0%, #393950 0, transparent 62%), #222339;
    border: 1px solid #292a40;
    border-radius: 15px;
    box-shadow: inset 0 1px 0 #ffffff12, 0 3px 12px #21223a0a;
}

.g3-base-top.g3-home-signup-rail .gn-home .gn-intro {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 51px;
    padding-inline-end: 78px;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-intro h2 {
    margin: 0;
    color: var(--gn-ink);
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-description {
    margin: 5px 0 0;
    color: var(--gn-text);
    font-size: 13px;
    line-height: 1.4;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-mail-art {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: -4px;
    display: block;
    width: 83px;
    height: auto;
    overflow: visible;
    pointer-events: none;
    transform: translateY(-50%);
}
.gn-home .gn-mail-envelope {
    transform-box: fill-box;
    transform-origin: center;
    transform: rotate(8deg);
}
.gn-home .gn-mail-letter {
    transform-box: fill-box;
    transform-origin: bottom center;
}

.g3-base-top.g3-home-signup-rail .gn-home .gn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}
.g3-base-top.g3-home-signup-rail .gn-home input.gn-email,
.g3-base-top.g3-home-signup-rail .gn-home button.gn-submit {
    min-height: 44px;
    margin: 0;
    border-radius: 8px;
}
.g3-base-top.g3-home-signup-rail .gn-home input.gn-email {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid #fff;
    color: #25273a;
    background: #fffdfa;
    font-size: 16px;
}
.g3-base-top.g3-home-signup-rail .gn-home input.gn-email::placeholder { color: #646577; }
.g3-base-top.g3-home-signup-rail .gn-home .gn-fields :is(input.gn-email, button.gn-submit):focus-visible {
    outline: 2px solid #ffcf75;
    outline-offset: 2px;
}
.g3-base-top.g3-home-signup-rail .gn-home button.gn-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    color: var(--gn-button-ink);
    background: var(--gn-accent);
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.g3-base-top.g3-home-signup-rail .gn-home button.gn-submit::after {
    content: "";
    width: 13px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(0 44%, 76% 44%, 46% 12%, 56% 2%, 100% 50%, 56% 98%, 46% 88%, 76% 56%, 0 56%);
}
.g3-base-top.g3-home-signup-rail .gn-home button.gn-submit:hover { background: var(--gn-hover); }
.g3-base-top.g3-home-signup-rail .gn-home button.gn-submit[aria-disabled="true"]::after { display: none; }
.g3-base-top.g3-home-signup-rail .gn-home input.gn-email[aria-invalid="true"] {
    border-color: #ff9c85;
    box-shadow: inset 0 0 0 1px #b74930;
}
.g3-base-top.g3-home-signup-rail .gn-home p.gn-help {
    margin: 7px 0 0;
    color: #d2d2df;
    font-size: 12px;
    line-height: 1.4;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-help a {
    margin-inline-start: .25em;
    color: #fff2d5;
    text-decoration: underline;
    text-decoration-color: #cfb58a;
    text-underline-offset: 2px;
}
.g3-base-top.g3-home-signup-rail .gn-home .gn-live-feedback[data-state="error"] { color: #752921; }
.g3-base-top.g3-home-signup-rail .gn-home .gn-live-feedback[data-state="received"] { color: #224b35; }
.g3-base-top.g3-home-signup-rail .gn-home .gn-live-feedback .gn-correct-email { color: #224b35; }
.g3-base-top.g3-home-signup-rail .gn-home .gn-live-feedback :focus-visible { outline-color: #345743; }

@container (max-width: 290px) {
    .g3-base-top.g3-home-signup-rail .gn-home .gn-intro { padding-inline-end: 56px; }
    .g3-base-top.g3-home-signup-rail .gn-home .gn-intro h2 { font-size: 22px; }
    .g3-base-top.g3-home-signup-rail .gn-home .gn-mail-art { width: 63px; }
    .g3-base-top.g3-home-signup-rail .gn-home button.gn-submit { gap: 5px; padding-inline: 10px; }
}
@container (max-width: 230px) {
    .g3-base-top.g3-home-signup-rail .gn-home .gn-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
    .gn-home .gn-mail-art { animation: gn-home-letter-in .48s ease-out both; }
    .gn-home .gn-mail-envelope, .gn-home .gn-mail-letter,
    .gn-home .gn-submit::after { transition: transform .28s ease-out; }
    .gn-home:focus-within .gn-mail-envelope { transform: translateY(-1px) rotate(2deg); }
    .gn-home:focus-within .gn-mail-letter { transform: translateY(-4px) rotate(-4deg); }
    .gn-home .gn-submit:focus-visible::after { transform: translateX(2px); }
    @keyframes gn-home-letter-in {
        from { opacity: 0; transform: translate(4px, calc(-50% + 4px)); }
        to { opacity: 1; transform: translateY(-50%); }
    }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .gn-home:hover .gn-mail-envelope { transform: translateY(-1px) rotate(2deg); }
    .gn-home:hover .gn-mail-letter { transform: translateY(-4px) rotate(-4deg); }
    .gn-home .gn-submit:hover::after { transform: translateX(2px); }
}
