:root {
    --encre: #0d0b08;
    --surface: #1a1610;
    --trait: #2e281e;
    --papier: #f1eadb;
    --gris: #a89f8d;
    --or: #d4af37;
    --or-fonce: #b8952e;
    --wrap: 1180px;
    --gutter: clamp(20px, 5vw, 48px);
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
    margin: 0;
    background: var(--encre);
    color: var(--papier);
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote {
    margin: 0;
}

ol, ul {
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}

h1, h2 {
    text-wrap: balance;
}

::selection {
    background: var(--or);
    color: var(--encre);
}

:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 3px;
}

.wrap {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1.0625rem;
    font-weight: 650;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-gold {
    background: var(--or);
    color: var(--encre);
}

.btn-gold:hover {
    background: var(--or-fonce);
}

.btn-line {
    border-color: var(--trait);
    color: var(--papier);
}

.btn-line:hover {
    border-color: var(--or);
}

.btn-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.9375rem;
}

.btn-small svg {
    width: 18px;
    height: 18px;
}

.btn-large {
    min-height: 60px;
    padding: 0 32px;
    font-size: 1.1875rem;
}

.text-link {
    font-weight: 600;
    text-decoration-color: var(--or);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.text-link:hover {
    color: var(--or);
}

/* En-tête */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 11, 8, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--trait);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
}

.wordmark {
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.035em;
    text-decoration: none;
}

.wordmark span {
    color: var(--or);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav ul {
    display: flex;
    gap: 28px;
}

.site-nav ul a {
    color: var(--gris);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
    color: var(--papier);
}

.menu-toggle {
    display: none;
}

/* Accueil */
.hero {
    padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.hero h1 {
    margin-bottom: 28px;
    font-size: clamp(2.35rem, 6vw, 4.75rem);
    font-weight: 740;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

.hero h1 .line {
    display: block;
}

.lead {
    max-width: 33em;
    margin-bottom: 32px;
    color: var(--gris);
    font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.hero-note {
    color: var(--gris);
    font-size: 1rem;
}

.demo {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.phone {
    width: 316px;
    padding: 10px;
    border: 1px solid var(--trait);
    border-radius: 46px;
    background: var(--surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.phone-screen {
    position: relative;
    width: 296px;
    height: 640px;
    overflow: hidden;
    border-radius: 36px;
    background: #eceeeb;
}

.phone-screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 390px;
    height: 844px;
    border: 0;
    transform: scale(0.759);
    transform-origin: 0 0;
}

.demo-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #101312;
    font-weight: 650;
}

.demo figcaption {
    color: var(--gris);
    font-size: 0.9375rem;
}

/* Sections */
.section {
    padding-block: clamp(72px, 9vw, 128px);
    border-top: 1px solid var(--trait);
}

.section h2 {
    max-width: 20em;
    margin-bottom: clamp(32px, 4vw, 56px);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 720;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

/* Réalisation */
.case {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.case-copy p {
    max-width: 30em;
    margin-bottom: 24px;
    color: var(--gris);
}

.quote blockquote p {
    font-size: clamp(1.375rem, 2.3vw, 1.875rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.quote figcaption {
    margin-top: 20px;
    color: var(--or);
    font-weight: 600;
}

/* Méthode */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
    counter-reset: etape;
}

.steps li {
    padding-top: 24px;
    border-top: 1px solid var(--trait);
    counter-increment: etape;
}

.steps li::before {
    content: counter(etape);
    display: block;
    margin-bottom: 18px;
    color: var(--or);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -0.04em;
}

.steps h3 {
    margin-bottom: 10px;
    font-size: 1.375rem;
    font-weight: 680;
    letter-spacing: -0.015em;
}

.steps p {
    color: var(--gris);
}

/* Tarifs */
.prices {
    border-top: 1px solid var(--trait);
}

.price-item {
    padding-block: 28px 32px;
    border-bottom: 1px solid var(--trait);
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}

.price-line h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.leader {
    flex: 1;
    min-width: 24px;
    border-bottom: 2px dotted #5a4f3b;
    transform: translateY(-0.2em);
}

.price {
    color: var(--or);
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 760;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.price span {
    color: var(--gris);
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0;
}

.tag {
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--or);
    color: var(--encre);
    font-size: 0.875rem;
    font-weight: 650;
    letter-spacing: 0;
}

.price-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 48px;
}

.price-body p {
    max-width: 40em;
    color: var(--gris);
}

/* À propos */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 clamp(32px, 6vw, 96px);
}

.about h2 {
    grid-column: 1 / -1;
}

.about-text p {
    max-width: 32em;
    margin-bottom: 18px;
    color: var(--gris);
}

.principles {
    display: grid;
    gap: 22px;
}

.principles div {
    padding-top: 16px;
    border-top: 1px solid var(--trait);
}

.principles dt {
    margin-bottom: 6px;
    font-size: 1.1875rem;
    font-weight: 680;
}

.principles dd {
    color: var(--gris);
}

/* FAQ */
.faq {
    max-width: 860px;
    border-top: 1px solid var(--trait);
}

.faq details {
    border-bottom: 1px solid var(--trait);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-size: 1.1875rem;
    font-weight: 620;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--or);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    max-width: 46em;
    padding-bottom: 24px;
    color: var(--gris);
}

/* Contact */
.contact {
    padding-block: clamp(88px, 12vw, 160px);
    border-top: 1px solid var(--trait);
}

.contact h2 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 740;
    line-height: 1;
    letter-spacing: -0.025em;
}

.contact-lead {
    max-width: 32em;
    margin-bottom: 32px;
    color: var(--gris);
    font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
}

.contact-alt {
    margin-top: 26px;
    color: var(--gris);
    font-size: 1rem;
}

.contact-alt a {
    color: var(--papier);
    text-decoration-color: var(--or);
    text-underline-offset: 4px;
}

/* Pied de page */
.site-footer {
    padding-block: 28px;
    border-top: 1px solid var(--trait);
    color: var(--gris);
    font-size: 0.9375rem;
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
}

.site-footer a {
    color: var(--papier);
    text-underline-offset: 3px;
}

.wa-float {
    display: none;
}

/* Animation d'arrivée */
@media (prefers-reduced-motion: no-preference) {
    .hero h1 .line {
        animation: monte 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both;
    }

    .hero h1 .line:nth-child(2) {
        animation-delay: 0.08s;
    }

    .hero h1 .line:nth-child(3) {
        animation-delay: 0.16s;
    }

    .lead,
    .actions,
    .hero-note {
        animation: apparait 0.8s ease 0.35s both;
    }

    .demo {
        animation: apparait 1s ease 0.5s both;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@keyframes monte {
    from {
        opacity: 0;
        transform: translateY(0.35em);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes apparait {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Tablette */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .demo {
        display: none;
    }
}

/* Mobile */
@media (max-width: 879px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 18px;
        border: 1px solid var(--trait);
        border-radius: 999px;
        background: transparent;
        color: var(--papier);
        font: inherit;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 4px var(--gutter) 24px;
        background: var(--encre);
        border-bottom: 1px solid var(--trait);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--trait);
        color: var(--papier);
        font-size: 1.25rem;
    }

    .case,
    .about,
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions .btn {
        flex: 1 1 auto;
    }

    .wa-float {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 60;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 52px;
        padding: 0 20px 0 16px;
        border-radius: 999px;
        background: var(--or);
        color: var(--encre);
        font-weight: 680;
        text-decoration: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .wa-float svg {
        width: 22px;
        height: 22px;
    }

    .site-footer {
        padding-bottom: 92px;
    }
}