/* =========================================
   CAS D'USAGE — OPENCARDFLOW
   (complète style.css, mêmes variables)
========================================= */

/* ---------- Section home ---------- */

.usecases-section {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(139, 124, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(97, 232, 213, 0.04), transparent 50%);
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
    margin-top: 65px;
}

.usecase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(19, 27, 48, 0.65);

    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.usecase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 124, 255, 0.38);
    background: var(--surface);
}

.usecase-card-image {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.usecase-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(11, 16, 32, 0.75));
}

.usecase-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.usecase-card:hover .usecase-card-image img {
    transform: scale(1.06);
}

.usecase-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 28px;
}

.usecase-card-body h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: -0.5px;
}

.usecase-card-body p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.85;
}

.usecase-card-body .text-link {
    margin-top: auto;
    padding-top: 20px;
}

.usecase-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;

    padding: 6px 11px;
    border: 1px solid rgba(100, 229, 173, 0.3);
    border-radius: 50px;

    background: rgba(11, 16, 32, 0.7);
    backdrop-filter: blur(10px);

    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 45px;
}

.chip-row.left {
    justify-content: flex-start;
    margin-top: 22px;
}

.chip {
    padding: 8px 14px;

    border: 1px solid rgba(139, 124, 255, 0.22);
    border-radius: 50px;
    background: rgba(139, 124, 255, 0.07);

    color: #d1cbff;
    font-size: 12px;
    font-weight: 600;
}

.usecases-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}


/* ---------- Page cas d'usage ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 175px 0 70px;
    text-align: center;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;

    color: var(--text-soft);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--purple-light);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.1;
    letter-spacing: -3.2px;
    font-weight: 600;
}

.page-hero-lead {
    max-width: 640px;
    margin: 26px auto 0;

    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.9;
}

.page-hero .hero-actions {
    justify-content: center;
}

.page-hero-image {
    width: 600px;          /* 50 % de la largeur d'origine (1200 px) */
    max-width: 100%;
    height: auto;
    margin: 40px auto 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 38px;
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;

    border: 1px solid var(--border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);

    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;

    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.anchor-nav a:hover {
    color: white;
    border-color: rgba(139, 124, 255, 0.45);
    background: rgba(139, 124, 255, 0.1);
}

.anchor-nav a b {
    color: var(--purple-light);
    font-family: var(--font-heading);
}

.usecase {
    padding: 80px 0;
}

.usecase:nth-of-type(even) {
    background: #0e1424;
}

.usecase-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.usecase.reverse .usecase-visual {
    order: -1;
}

.usecase-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.8vw, 46px);
    line-height: 1.18;
    letter-spacing: -2px;
    font-weight: 600;
}

.usecase-content > p {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.95;
}

.usecase-points {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 28px 0 8px;
}

.usecase-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: #c4ccdf;
    font-size: 13px;
    line-height: 1.7;
}

.usecase-points li strong {
    color: var(--text);
    font-weight: 600;
}

.usecase-note {
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 11px;
    font-style: italic;
}

.usecase-grid-2 {
    align-items: start;
}

.usecase-visual {
    position: sticky;
    top: 120px;
    align-self: start;
    min-height: 480px;
}

@media (max-width: 900px) {
    .usecase-visual {
        position: relative;
        top: 0;
    }
}

.usecase-photo {
    position: absolute;
    inset: 0 0 50px 40px;
    overflow: hidden;
    border-radius: 28px;
}

.usecase.reverse .usecase-photo {
    inset: 0 40px 50px 0;
}

.usecase-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 16, 32, 0.12), rgba(11, 16, 32, 0.65));
}

.usecase-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.usecase-panel {
    position: absolute;
    z-index: 2;
    left: -10px;
    bottom: 0;

    width: min(330px, 92%);
    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 20px;
    background: rgba(18, 25, 44, 0.95);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);

    animation: floatSmall 6s ease-in-out infinite;
}

.usecase.reverse .usecase-panel {
    left: auto;
    right: -10px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;

    color: #a6b0c6;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 8px;

    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);

    font-size: 11px;
}

.panel-row:last-child {
    margin-bottom: 0;
}

.panel-row .p-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;

    border-radius: 8px;
    background: rgba(139, 124, 255, 0.14);
    color: var(--purple-light);
    font-size: 14px;
    font-weight: 800;
}

.panel-row .p-icon.green {
    background: rgba(100, 229, 173, 0.1);
    color: var(--green);
}

.panel-row .p-icon.blue {
    background: rgba(63, 151, 255, 0.13);
    color: #8ac5ff;
}

.panel-row .p-icon.orange {
    background: rgba(255, 126, 92, 0.13);
    color: #ffb29d;
}

.panel-row > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.panel-row small {
    color: var(--text-soft);
    font-size: 9px;
}

.panel-row .ok {
    color: var(--green);
    font-size: 12px;
}

.panel-row.indent {
    margin-left: 22px;
}

.panel-counter {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.panel-counter strong {
    font-family: var(--font-heading);
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.panel-counter span {
    color: var(--text-muted);
    font-size: 11px;
}

.panel-bar {
    overflow: hidden;
    height: 4px;
    margin-bottom: 14px;

    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.panel-bar span {
    display: block;
    width: 88%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}

/* Bloc "et aussi" */

.also-section {
    padding: 90px 0 40px;
}

.also-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.also-card {
    padding: 26px 24px;

    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(19, 27, 48, 0.65);

    transition: transform var(--transition), border-color var(--transition);
}

.also-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 124, 255, 0.38);
}

.also-card .card-icon {
    margin-bottom: 16px;
}

.also-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: -0.4px;
}

.also-card p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
    margin-top: 30px;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .usecase-grid-2 {
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .usecase-grid {
        grid-template-columns: 1fr;
        max-width: 530px;
        margin-inline: auto;
        margin-top: 45px;
    }

    .also-grid {
        grid-template-columns: 1fr;
        max-width: 530px;
        margin-inline: auto;
    }

    .usecase {
        padding: 60px 0;
    }

    .usecase-grid-2 {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .usecase.reverse .usecase-visual {
        order: 0;
    }

    .usecase-visual {
        min-height: 440px;
    }

    .usecase-photo,
    .usecase.reverse .usecase-photo {
        inset: 0 0 45px 30px;
    }

    .usecase-panel,
    .usecase.reverse .usecase-panel {
        left: 0;
        right: auto;
    }
}

@media (max-width: 800px) {
    .page-hero {
        padding: 130px 0 45px;
    }

    .page-hero h1 {
        letter-spacing: -2px;
    }
}

@media (max-width: 480px) {
    .page-hero-lead {
        font-size: 14px;
    }

    .usecase-content h2 {
        font-size: 32px;
        letter-spacing: -1.6px;
    }

    .usecase-visual {
        min-height: 400px;
    }

    .usecase-panel {
        padding: 15px;
    }

    .page-links .btn {
        width: 100%;
    }
}
