/* Shared decorative components — Écurie du Sorbier
   Reusable across every page: eyebrow labels, wave dividers, buttons,
   steps grid, FAQ accordion, closing CTA band. */

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.08); }
    75% { transform: rotate(8deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    @keyframes wiggle {
        0%, 100% { transform: none; }
    }
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-terracotta-dark);
    margin-bottom: 1rem;
}

.eyebrow.center {
    display: block;
    text-align: center;
}

.eyebrow.on-dark {
    color: #EAFBEF;
}

.highlight {
    color: var(--color-terracotta);
}

/* Wave divider — sits at the bottom of a `position: relative` section,
   filled with the color of the section that follows it. */
.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* Buttons */
.cta-button {
    background: var(--color-terracotta);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(63, 122, 74, 0.35);
}

.cta-button-outline {
    background: transparent;
    color: var(--color-forest);
    padding: 1rem 2rem;
    border: 2px solid var(--color-forest);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button-outline:hover {
    background: var(--color-forest);
    color: var(--color-white);
    transform: translateY(-2px);
}

.cta-button-outline-light {
    background: transparent;
    color: var(--color-white);
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button-outline-light:hover {
    background: var(--color-white);
    color: var(--color-forest);
    transform: translateY(-2px);
}

/* Steps Section */
.steps {
    padding: 5rem 0 4rem;
    background: var(--color-sage);
    text-align: center;
}

.steps-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.steps h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--color-forest);
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.75rem 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-terracotta);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-forest);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--color-ink-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--color-cream);
    text-align: center;
}

.faq-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--color-forest);
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq-item {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.4rem 1.5rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-forest);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-terracotta);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--color-ink-muted);
    line-height: 1.7;
    padding-bottom: 1.25rem;
}

/* Closing CTA band */
.home-cta {
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sun-tint) 100%);
    color: var(--color-ink);
    padding: 5rem 2rem;
    text-align: center;
}

.home-cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.home-cta h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.home-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.home-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        padding: 0 1rem;
    }

    .home-cta h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .steps h2,
    .faq h2 {
        font-size: 1.8rem;
    }

    .faq-item summary {
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
