/* Layout homepage & sections narratives */

.home-hero {
    position: relative;
    width: 100%;
    padding: calc(var(--header-h) + 12px) clamp(12px, 3vw, 28px) 20px;
    overflow: hidden;
    color: var(--text);
    background: #fff;
}

.home-hero__frame {
    position: relative;
    width: min(100%, 1040px);
    max-width: 1040px;
    margin-inline: auto;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    background-image: url("../images/hero.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(16px, 3vw, 32px);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: min(46%, 400px);
    max-width: 400px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(14px, 2vw, 22px);
    box-shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
    overflow: hidden;
}

.home-hero__brand {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 12px;
    max-width: 100%;
    overflow-wrap: anywhere;
    animation: heroReveal 0.9s var(--ease) both;
}

.home-hero__brand span {
    color: var(--primary);
}

.home-hero h1 {
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--text);
    animation: heroReveal 0.9s 0.1s var(--ease) both;
}

.home-hero__lead {
    margin-top: 14px;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.5;
    color: var(--text-muted);
    animation: heroReveal 0.9s 0.18s var(--ease) both;
}

.home-hero .btn-group {
    margin-top: 22px;
    gap: 10px;
    flex-wrap: wrap;
    animation: heroReveal 0.9s 0.26s var(--ease) both;
}

.home-hero .btn-group .btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.home-hero__band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary-green), var(--secondary-red));
    z-index: 2;
}

@media (max-width: 768px) {
    .home-hero {
        padding: calc(var(--header-h) + 10px) 12px 16px;
    }

    .home-hero__frame {
        aspect-ratio: 2 / 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px;
        border-radius: 14px;
        background-image: url("../images/hero.webp");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
    }

    .home-hero__content {
        width: min(58%, 280px);
        max-width: 280px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .home-hero__brand {
        font-size: clamp(1.55rem, 7vw, 2rem);
        margin-bottom: 6px;
    }

    .home-hero h1 {
        font-size: clamp(0.88rem, 3.4vw, 1.05rem);
        line-height: 1.3;
    }

    .home-hero__lead {
        display: none;
    }

    .home-hero .btn-group {
        margin-top: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .home-hero .btn-group .btn {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* Culture / ADN */
.section-culture {
    background: var(--bg);
}

/* Problem */
.section-problem {
    background: var(--bg-elevated);
}

.culture-copy--solo {
    max-width: 760px;
}

.culture-copy .section-title {
    margin-bottom: 12px;
}

.culture-copy > p:not(.eyebrow):not(.section-lead) {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 640px;
}

.pillars {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

@media (min-width: 700px) {
    .pillars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

.pillar {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.pillar strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
}

.pillar span {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.problem-list {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .problem-list {
        grid-template-columns: 1fr 1fr;
        gap: 20px 32px;
    }
}

.problem-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
}

.problem-item strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.problem-num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* System */
.system-grid {
    display: grid;
    gap: 20px;
}

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

.system-item {
    padding: 28px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.25s;
}

.system-item:hover {
    border-color: var(--primary);
}

.system-item h3 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
}

.system-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.system-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.system-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Method steps */
.method-steps {
    display: grid;
    gap: 0;
    counter-reset: step;
}

@media (min-width: 900px) {
    .method-steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

.method-step {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    counter-increment: step;
}

@media (min-width: 900px) {
    .method-step {
        border-top: none;
        border-left: 1px solid var(--border);
        padding: 8px 16px;
    }

    .method-step:first-child {
        border-left: none;
        padding-left: 0;
    }
}

.method-step::before {
    content: "0" counter(step);
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.method-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.method-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Case studies — texte à gauche, centré verticalement */
.section-cases {
    background: var(--bg-muted);
}

.section-cases__panel {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 18px;
    overflow: hidden;
    background-color: #fff;
    background-image: url("../images/case-studies.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(20px, 4vw, 48px);
    margin-bottom: clamp(28px, 4vw, 40px);
}

.section-cases__content {
    width: min(58%, 640px);
    max-width: 640px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(22px, 3vw, 36px);
    box-shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
}

.section-cases__content .eyebrow {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.section-cases__content .section-title {
    margin-bottom: 12px;
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    line-height: 1.15;
}

.section-cases__content .section-lead {
    margin-bottom: 22px;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.5;
}

.section-cases__content .btn {
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .section-cases__panel {
        aspect-ratio: 16 / 10;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 16px;
        border-radius: 14px;
        background-image: url("../images/case-studies.webp");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
        margin-bottom: 24px;
    }

    .section-cases__content {
        width: min(88%, 420px);
        max-width: 420px;
        padding: 18px 18px 20px;
        border-radius: 14px;
    }

    .section-cases__content .eyebrow {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .section-cases__content .section-title {
        font-size: clamp(1.25rem, 5vw, 1.55rem);
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .section-cases__content .section-lead {
        display: block;
        margin-bottom: 14px;
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .section-cases__content .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Testimonials band */
.section-social-proof {
    background: var(--bg-elevated);
}

/* Partners */
.section-partners {
    background: var(--bg);
    padding-top: 24px;
    padding-bottom: 8px;
}

.partners-strip {
    margin-top: 18px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    padding: 22px 16px;
    animation: partnerScroll 32s linear infinite;
}

.partners-strip:hover .partners-track {
    animation-play-state: paused;
}

.partners-empty {
    margin: 0;
    padding: 28px 16px;
    width: min(100vw, 720px);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: none;
}

.partners-track:has(.partners-empty) {
    width: 100%;
    justify-content: center;
    animation: none;
}

.partner-item {
    width: 168px;
    height: 108px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: default;
    box-shadow: 0 4px 14px rgba(18, 20, 26, 0.04);
}

.partner-item[role="link"] {
    cursor: pointer;
}

.partner-item--project {
    width: 180px;
    height: 118px;
    padding: 10px;
}

.partner-logo {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.2s ease;
}

.partner-logo--cover {
    width: 100%;
    max-height: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.partner-item:hover .partner-logo {
    transform: scale(1.04);
}

.partner-label {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-name-fallback {
    font-family: var(--font-display, "Syne", sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    line-height: 1.25;
}

@keyframes partnerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Proof section */
.section-proof {
    background: var(--bg-elevated);
}

.proof-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.proof-review-meta {
    display: block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.proof-metrics .empty-state,
.proof-reviews .empty-state {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .proof-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.proof-metric {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px;
}

.proof-value {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

.proof-metric p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.proof-reviews {
    display: grid;
    gap: 14px;
}

@media (min-width: 900px) {
    .proof-reviews {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.proof-review {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    padding: 18px;
}

.proof-review h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.proof-review p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Compare */
.section-compare {
    background: var(--bg);
}

/* Qualify */
.section-qualify {
    background: var(--bg-elevated);
}

/* CTA final */
.section-cta-final {
    position: relative;
    background-color: var(--bg-dark);
    background-image: url("../images/background.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--text-on-dark);
    text-align: center;
    padding: clamp(72px, 12vw, 120px) 0;
    overflow: hidden;
}

.section-cta-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 20, 26, 0.72);
    z-index: 0;
}

.section-cta-final .container {
    position: relative;
    z-index: 1;
}

.section-cta-final h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    max-width: 640px;
    margin-inline: auto;
}

.section-cta-final p {
    margin: 16px auto 28px;
    max-width: 440px;
    color: rgba(246, 247, 249, 0.78);
}

.section-cta-final .btn-group {
    justify-content: center;
}

.section-scarcity {
    background: var(--bg);
}

.scarcity-card {
    position: relative;
    width: min(100%, 1040px);
    max-width: 1040px;
    margin-inline: auto;
    aspect-ratio: 2 / 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: #fff;
    background-image: url("../images/disponibilite.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(16px, 3vw, 32px);
    text-align: left;
}

.scarcity-card__content {
    width: min(46%, 400px);
    max-width: 400px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(14px, 2vw, 22px);
    box-shadow: 0 10px 28px rgba(18, 20, 26, 0.08);
}

.scarcity-card .eyebrow {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.scarcity-card .section-title {
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.scarcity-card .section-lead {
    margin-bottom: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    line-height: 1.45;
}

.scarcity-card .btn-group {
    justify-content: flex-start;
    margin-top: 20px;
    gap: 10px;
}

.scarcity-card .btn {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .scarcity-card {
        aspect-ratio: 2 / 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px;
        border-radius: 14px;
        background-image: url("../images/disponibilite.webp");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
    }

    .scarcity-card__content {
        width: min(58%, 280px);
        max-width: 280px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .scarcity-card .eyebrow {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    .scarcity-card .section-title {
        font-size: clamp(0.95rem, 3.8vw, 1.15rem);
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .scarcity-card .section-lead {
        display: none;
    }

    .scarcity-card .btn-group {
        margin-top: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .scarcity-card .btn {
        width: 100%;
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.78rem;
    }
}

/* Action container under CMS grids */
.action-container {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

/* Ads spacing */
[data-ad-position] {
    width: var(--container);
    margin: 0 auto 24px;
}

/* Page main offset under fixed header */
.page-main {
    padding-top: 0;
}

/* Mobile polish général homepage */
@media (max-width: 768px) {
    .section {
        padding-block: clamp(40px, 10vw, 56px);
    }

    .section-cases .container,
    .section-scarcity .container {
        padding-inline: 12px;
    }

    .partners-strip {
        margin-top: 12px;
    }

    .partners-track {
        gap: 10px;
        padding: 14px 10px;
    }

    .partner-item {
        width: 132px;
        height: 72px;
        border-radius: 12px;
        padding: 10px;
    }

    .proof-metrics {
        gap: 10px;
    }

    .proof-metric {
        padding: 16px 14px;
    }

    .scarcity-card,
    .section-cases__panel,
    .home-hero__frame {
        box-shadow: 0 6px 18px rgba(18, 20, 26, 0.06);
    }
}

@media (max-width: 900px) {
    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .section-cta-final {
        padding-bottom: calc(clamp(72px, 12vw, 120px) + 24px);
    }
}

