/* Page Concept, mise en page v2. Palette : #4fa9d3, #0F2454, #F3F7FA. Complète realisations.css (rp-hero, rp-cta, rp-zoom). */

/* ---------- Les deux solutions ---------- */
.cv-cards {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.cv-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 38px;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgb(15 36 84 / 8%);
    transition: transform .35s ease, box-shadow .35s ease;
}

.cv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgb(15 36 84 / 14%);
}

.cv-card.is-featured {
    border-color: transparent;
    background: #0F2454;
    color: rgb(255 255 255 / 86%);
}

.cv-card-tag {
    margin-bottom: 16px;
    padding: 5px 16px;
    border-radius: 50px;
    background: #F3F7FA;
    color: #4fa9d3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cv-card.is-featured .cv-card-tag {
    background: rgb(79 169 211 / 18%);
}

.cv-card h3 {
    margin-bottom: 14px;
    font-size: 28px;
    font-weight: 700;
    color: #0F2454;
}

.cv-card.is-featured h3 {
    color: #ffffff;
}

.cv-card ul {
    margin: 18px 0 28px;
    padding: 0;
    list-style: none;
}

.cv-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.cv-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #4fa9d3;
    font-weight: 700;
}

.cv-card .theme-btn {
    margin-top: auto;
}

/* ---------- Tableau comparatif ---------- */
.cv-compare-wrap {
    margin-top: 60px;
    overflow-x: auto;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgb(15 36 84 / 6%);
}

.cv-compare {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: #ffffff;
}

.cv-compare th,
.cv-compare td {
    padding: 18px 24px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

.cv-compare thead th {
    background: #0F2454;
    color: #ffffff;
    font-weight: 600;
}

.cv-compare tbody th {
    width: 22%;
    color: #0F2454;
    font-weight: 600;
}

.cv-compare tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.cv-compare tbody tr:last-child th,
.cv-compare tbody tr:last-child td {
    border-bottom: 0;
}

/* ---------- Sélecteur ---------- */
.cv-switch {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 6px;
    border-radius: 60px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgb(15 36 84 / 10%);
}

.cv-tab {
    padding: 13px 30px;
    border: 0;
    border-radius: 50px;
    background: transparent;
    color: #0F2454;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.cv-tab.is-active {
    background: #4fa9d3;
    color: #ffffff;
}

.cv-tab:focus-visible {
    outline: 3px solid #0F2454;
    outline-offset: 2px;
}

/* sans JavaScript : les deux solutions restent visibles l'une sous l'autre */
.cv-js .cv-panel {
    display: none;
}

.cv-js .cv-panel.is-active {
    display: block;
}

.cv-panel + .cv-panel {
    margin-top: 90px;
}

.cv-js .cv-panel + .cv-panel {
    margin-top: 0;
}

.cv-js .cv-switch {
    display: flex;
}

.cv-switch {
    display: none;
}

/* ---------- Présentation ---------- */
.cv-intro {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 56px;
}

.cv-intro.is-single {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.cv-intro-text .site-title {
    margin-bottom: 22px;
}

.cv-intro-text p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.8;
}

.cv-intro-photo {
    margin: 0;
}

.cv-intro-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 46px rgb(15 36 84 / 20%);
}

.cv-subtitle {
    margin: 80px 0 34px;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #0F2454;
}

/* ---------- Avantages ---------- */
.cv-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cv-adv {
    padding: 28px 24px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgb(15 36 84 / 7%);
    transition: transform .3s ease, box-shadow .3s ease;
}

.cv-adv:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgb(15 36 84 / 13%);
}

.cv-adv i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #4fa9d3;
    color: #ffffff;
    font-size: 16px;
}

.cv-adv h4 {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 600;
    color: #0F2454;
}

.cv-adv p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Étapes ---------- */
.cv-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.cv-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 24px;
    width: 2px;
    background: #cfe3ef;
}

.cv-timeline li {
    position: relative;
    display: flex;
    gap: 26px;
    padding-bottom: 30px;
}

.cv-timeline li:last-child {
    padding-bottom: 0;
}

.cv-step-num {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 4px solid #F3F7FA;
    border-radius: 50%;
    background: #0F2454;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.cv-timeline li > div {
    flex: 1;
    padding: 20px 26px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgb(15 36 84 / 7%);
}

.cv-timeline h4 {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #0F2454;
}

.cv-timeline p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- Galerie ---------- */
.cv-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cv-photos .rp-gallery-item {
    aspect-ratio: 4 / 3;
}

.cv-photos .rp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1199px) {
    .cv-advantages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cv-cards,
    .cv-intro {
        grid-template-columns: 1fr;
    }

    .cv-intro-photo img {
        aspect-ratio: 16 / 10;
    }

    .cv-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .cv-card {
        padding: 30px 24px;
    }

    .cv-card h3 {
        font-size: 24px;
    }

    .cv-advantages,
    .cv-photos {
        grid-template-columns: 1fr;
    }

    .cv-switch {
        flex-direction: column;
        width: 100%;
        border-radius: 22px;
    }

    .cv-tab {
        padding: 12px 18px;
    }

    .cv-subtitle {
        margin: 60px 0 26px;
        font-size: 24px;
    }

    .cv-timeline::before {
        left: 20px;
    }

    .cv-timeline li {
        gap: 16px;
    }

    .cv-step-num {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 15px;
    }

    .cv-timeline li > div {
        padding: 16px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-card,
    .cv-adv,
    .cv-tab {
        transition: none;
    }

    .cv-card:hover,
    .cv-adv:hover {
        transform: none;
    }
}
