/* ------------------------------------- */
/*  MERVEILLEUX HOMEPAGE REDESIGN CSS    */
/* ------------------------------------- */

/* --- SHARED UTILITIES --- */
.highlight-green {
    color: #7FFF00;
}

/* --- Badge child override ---
   Le style est maintenant géré globalement dans styles.css pour tous les enfants de .badge */
/* ============================================================ */
/*  SECTION 3 POINTS                                           */
/* ============================================================ */

.section-3-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    gap: 40px;
}

/* Title sits above everything */
.section-3pts-title {

    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: #EDEFEE;
    margin: 0;
    line-height: 1.3;
}

/* Content area = badge + grid stacked */
.section-3pts-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.s3pts-badge {
    /* already handled by .partner-badge */
}

/* 3 points grid */
.section-3-points .points-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    width: 100%;
}

.section-3-points .point-item {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 10px 24px;
    flex: 1;
}

/* Separator between point-items */
.section-3-points .point-item:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.section-3-points .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    border-radius: 18px;
    flex-shrink: 0;
}

.section-3-points .icon-container span {
    font-size: 24px;
}

.section-3-points .client-icon {
    background: linear-gradient(106deg, rgba(0, 255, 255, 0.06) 6.04%, rgba(0, 255, 255, 0.24) 94.49%);
    border: 1px solid rgba(0, 255, 255, 0.20);
    color: #00FFFF;
}

.section-3-points .offer-icon {
    background: linear-gradient(106deg, rgba(227, 0, 124, 0.06) 6.04%, rgba(227, 0, 124, 0.24) 94.49%);
    border: 1px solid rgba(227, 0, 124, 0.20);
    color: #FF64B8;
}

.section-3-points .result-icon {
    background: linear-gradient(106deg, rgba(222, 255, 0, 0.06) 6.04%, rgba(222, 255, 0, 0.24) 94.49%);
    border: 1px solid rgba(222, 255, 0, 0.20);
    color: #DEFF00;
}

.section-3-points .point-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-3-points .point-info h4 {

    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: white;
}

.section-3-points .point-info p {

    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    color: rgba(237, 239, 238, 0.7);
}

@media screen and (max-width: 900px) {
    .section-3-points .points-grid {
        flex-direction: column;
        gap: 24px;
    }

    .section-3-points .point-item:not(:first-child) {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 24px;
    }
}

/* ============================================================ */
/*  SECTION DOUBLE                                              */
/* ============================================================ */

.section-double {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 44px;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    color: white;
}

/* WHEN US side */
.section-double .when-us {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 540px;
    justify-content: flex-start;
    padding: 32px;
}

.section-double .when-us-title {

    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    color: #EDEFEE;
}

.section-double .trigger-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-double .trigger-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.section-double .arrow-green {
    color: #7FFF00;
    font-size: 18px;
    flex-shrink: 0;
}

/* OUR APPROACH side */
.section-double .our-approach {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: fit-content;
    flex: 1;
}

.section-double .approach-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-double .approach-title {

    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #EDEFEE;

}

/* Steps */
.section-double .steps-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.section-double .step {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
}

/* Wrapper that holds number + vertical line */
.section-double .step-connector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.section-double .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #EDEFEE;

    font-weight: 800;
    font-size: 16px;
    width: 55px;
    height: 52px;
    border-radius: 30px;
    flex-shrink: 0;
}

/* Dotted vertical connector line between steps */
.section-double .step-connector {
    width: 1px;
    height: 48px;
    border-left: 2px dashed rgba(127, 255, 0, 0.3);
    margin: 4px 0;
}

/* Step details */
.section-double .step-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 28px;
}

.section-double .last-step .step-details {
    padding-bottom: 0;
}

.section-double .step-details h5 {

    font-weight: 800;
    font-size: 20px;
    margin: 0;
    color: #EDEFEE;
}

.section-double .step-details p {

    font-weight: 500;
    font-size: 14px;
    color: rgba(237, 239, 238, 0.8);
    margin: 0;
    line-height: 1.4;
}

@media screen and (max-width: 1024px) {
    .section-double {
        flex-direction: column;
        gap: 60px;
    }
}

/* ============================================================ */
/*  SECTION SOCIAL PROOF                                        */
/* ============================================================ */

.section-social-proof {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 40px 20px;
    background: linear-gradient(90deg, rgba(217, 217, 217, 0.1) 0%, rgba(217, 217, 217, 0.05) 100%);
    max-width: 100%;
    margin: 80px 0;
}

.section-social-proof .rating-container {
    display: flex;
    flex-direction: column;
    gap: 38px;
    max-width: 450px;
}

.section-social-proof .client-rating {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-social-proof .rating-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 153px;
    width: fit-content;
}

.section-social-proof .score {

    font-size: 17.5px;
    font-weight: 700;
    color: #EDEFEE;
}

.section-social-proof .star-icon {
    background: linear-gradient(135deg, #00FFFF 0%, #7FFF00 50%, #DEFF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-variation-settings: 'FILL' 1;
}

.section-social-proof .social-proof-title {
    text-align: left;
}

.section-social-proof .clients-logos {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.section-social-proof .clients-logos img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.section-social-proof .social-proof-case {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    max-width: 617px;
    width: 85%;
}

.section-social-proof .client-case {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-social-proof .client-case-headline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.section-social-proof .client-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.section-social-proof .logo-placeholder {
    width: 43px;
    height: 43px;
    border-radius: 38px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.section-social-proof .client-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-social-proof .client-name {

    font-size: 18px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.section-social-proof .client-description {

    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
}

/* .cyan-badge : utiliser les classes du système global
   Ex: <div class="badge badge--ghost badge--cyan">cas client</div> */
.section-social-proof .cyan-badge {
    background: rgba(0, 255, 255, 0.12);
    border: 1px solid rgba(0, 255, 255, 0.28);
    padding: 6px 14px;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    color: #00FFFF;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    width: fit-content;
    line-height: 1;
}

.section-social-proof .client-case-description {

    font-size: 16px;
    font-weight: 300;
    color: white;
    line-height: 1.5;
    margin: 0;
}

/* Uses global .btn-outline */

@media screen and (max-width: 1024px) {
    .section-social-proof {
        flex-direction: column;
        gap: 60px;
        padding: 40px 20px;
    }
}

/* ============================================================ */
/*  SECTION SERVICES                                            */
/* ============================================================ */

.section-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    gap: 56px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-services .services-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 865px;
}

/* .green-badge dans les sections : utiliser le système global
   Ex: <div class="partner-badge">NOS OFFRES</div>
   ou : <div class="badge badge--ghost badge--green">NOS OFFRES</div> */
.section-services .green-badge {
    /* Hérite de .partner-badge dans styles.css.
       Surcharge ici inutile — laissé vide pour compatibilité. */
}

/* Override h2 default for services section */
.section-services .services-main-title {

    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: #EDEFEE;
    line-height: 1.3;
}

.section-services p {

    font-size: 16px;
    font-weight: 400;
    color: rgba(237, 239, 238, 0.8);
    margin: 0;
}

.section-services .service-blocks-container {
    display: flex;
    flex-direction: row;
    gap: 48px;
    justify-content: center;
    width: 100%;
}

.section-services .service-block {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    flex: 1;
    max-width: 390px;
    overflow: visible;
    position: relative;
}

.section-services .service-block.pink-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, #E3007C 0%, rgba(227, 0, 124, 0) 60%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.section-services .service-image {
    width: 100%;
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px 30px 0 0;
    overflow: clip;
}

.section-services .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-services .service-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 32px 32px 32px;
    gap: 28px;
    flex-grow: 1;
}

.section-services .service-title-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Override h3 default for service cards */
.section-services .service-title-container h3 {
    font-size: 18.5px;
    font-weight: 800;
    color: var(--sel-de-mer);
    margin: 0;
    text-align: left;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentcolor !important;
}

.section-services .service-description-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-services .green-category {
    background: rgba(127, 255, 0, 0.15);
    padding: 4px 8px;
    border-radius: 15px;
    width: fit-content;
}

.section-services .green-category span {

    font-size: 11.5px;
    font-weight: 700;
    color: #DEFF00;
}

.section-services .service-description-container p {
    font-weight: 300;
    color: #EDEFEE;
    line-height: 1.5;
}

/* Uses global .btn-outline */

.section-services .subscription-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(227, 0, 124, 0.3);
    padding: 8px 14px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-services .subscription-badge span {

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

@media screen and (max-width: 1024px) {
    .section-services .service-blocks-container {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================ */
/*  OFFER SELECTION SECTION                                     */
/* ============================================================ */

.section-offer-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 80px 20px;
    width: 100%;
    max-width: 1054px;
    margin: 0 auto;
}

.offer-selection-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 720px;
}

/* Override partner-badge for offer section — keep green */
.offer-badge {
    /* uses .partner-badge base styles */
}

.offer-selection-desc {
    color: rgba(237, 239, 238, 0.8);

    font-size: 16px;
    font-weight: 300;
    margin: 0;
}

.table-offer-container {
    overflow: auto;
    padding: 20px;
    width: 100%;
}

.table-offer-container::-webkit-scrollbar {
    display: none;
}

.table-offer-container .table-wrapper {
    border-radius: 25px;
    border: var(--border-small, 0.5px) solid rgba(255, 255, 255, 0.40);
    background: linear-gradient(116.14deg, rgba(217, 217, 217, 0.1) 0%, rgba(217, 217, 217, 0.05) 100%);
    padding: 20px 50px;
    margin: auto;
    width: fit-content;
}

.table-offer {
    border-collapse: collapse;
}

.table-offer th,
.table-offer td {
    padding: 12px 8px;
    text-align: center;
    min-width: 140px;
    max-width: 300px;
}

.table-offer th {
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(217, 217, 217, 0.1);
    letter-spacing: 0.5px;
    padding: 20px 0;
}

.table-offer th:first-child,
.table-offer td:first-child {
    text-align: left;
    vertical-align: baseline;
}

.table-offer th.gradient-text {
    background: linear-gradient(91.31deg, #00FFFF 0%, #7FFF00 50%, #DEFF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-offer td {
    color: #EDEFEE;
    font-size: 15px;
    font-weight: 300;
    border-bottom: 1px solid rgba(217, 217, 217, 0.1);
    vertical-align: middle;
}

.table-offer .cell-center {
    text-align: center;
}

.table-offer tr:last-child td {
    border-bottom: none;
}

.table-offer td.row-label {
    font-weight: 600;
    color: #EDEFEE;
}

.offer-cta-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

/* Uses global .btn-outline */

@media (max-width: 768px) {
    .section-offer-selection {
        padding: 40px 16px;
        gap: 32px;
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden;
        /* Prevent horizontal scrolls on the container section */
    }

    .offer-selection-header {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .offer-selection-desc {
        font-size: 14.5px;
        line-height: 1.4;
        text-align: center;
    }

    .table-offer-container {
        padding: 10px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
    }

    .table-offer-container .table-wrapper {
        padding: 16px 12px;
        width: max-content;
        /* Ensure wrapper auto-expands to contain cell min-widths */
        max-width: none;
        box-sizing: border-box;
    }

    .table-offer {
        width: auto;
    }

    .offer-cta-container {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        gap: 12px;
    }

    .offer-cta-container .main-button,
    .offer-cta-container .btn-outline {
        width: 100% !important;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ============================================================ */
/*  WHY US SECTION                                              */
/* ============================================================ */

.why-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 80px 20px;
    max-width: 1212px;
    margin: 0 auto;
    box-sizing: border-box;
}

.why-us-badge {
    /* uses .partner-badge + .green-badge styles */
}

.why-us-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}

/* Uses global .btn-outline */

@media (max-width: 768px) {
    .why-us {
        padding: 40px 16px;
        gap: 32px;
    }

    .why-us-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
    }

    .why-us-cta .main-button,
    .why-us-cta .btn-outline {
        width: 100% !important;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}