@import "../template.css?v=20260614-section-flow";

/* ========================================
   HERO SECTION SERVICE
======================================== */
.hero-opti {
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    padding: clamp(74px, 9vw, 132px) 0 clamp(80px, 9vw, 130px);
}

.hero-opti-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(44px, 7vw, 96px);
    align-items: center;
    margin: 0 auto;
}

.hero-opti-image {
    width: 100%;
    height: clamp(390px, 34vw, 560px);
    border-radius: 26px;
    overflow: hidden;
    background: #edf3fb;
}

body.dark-theme .hero-opti-image {
    background: #1e1e1e;
}

.hero-opti-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    display: block;
}

.hero-opti-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background: transparent;
}

.hero-opti-text h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #0f2947;
    margin: 0 0 clamp(22px, 2.3vw, 34px);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero-opti-text h1 span {
    color: var(--brand-sapphire);
}

body.dark-theme .hero-opti-text h1 {
    color: #fff;
}

body.dark-theme .hero-opti-text h1 span {
    color: var(--brand-blue-circuit);
}

.hero-description {
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    font-weight: 600;
    line-height: 1.65;
    color: #4b5565;
    margin-bottom: clamp(32px, 3vw, 46px);
    max-width: 650px;
}

body.dark-theme .hero-description {
    color: #b8c4d6;
}

.hero-opti-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-opti {
    background: var(--brand-sapphire);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--ui-radius-button);
    cursor: pointer;
    transition: background-color var(--ui-transition), transform var(--ui-transition), box-shadow var(--ui-transition);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
}

.btn-primary-opti:hover {
    background: var(--brand-blue-circuit);
}

.btn-primary-opti.small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-primary-opti.large {
    padding: 18px 50px;
    font-size: 1.05rem;
    width: 100%;
}

/* ========================================
   STICKY PRICE BAR
======================================== */
.sticky-price-bar {
    position: fixed;
    top: 116px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 100;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

body.dark-theme .sticky-price-bar {
    background: #1e1e1e;
    border-color: #334155;
}

.sticky-price-content {
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

body.dark-theme .sticky-title {
    color: #fff;
}

.sticky-price-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
}

.sticky-price-bar .btn-primary-opti.small {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 0.86rem;
    gap: 8px;
    align-self: center;
}

body.dark-theme .sticky-price {
    color: #fff;
}

/* ========================================
   SECTION 3 ICÔNES
======================================== */
.features-icons-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 44px);
    background: var(--background-box);
    border-radius: 16px;
    padding: clamp(24px, 2.6vw, 34px) clamp(24px, 4vw, 56px);
    margin: 0 auto var(--section-spacing-y);
}

.page-container > section.features-icons-section:not(.hero-section):not(.title-page):not(.landing-hero):not(.sfait-section-flush) {
    padding-block: clamp(22px, 2vw, 30px);
}

.icon-feature {
    text-align: center;
}

.icon-circle {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(30, 30, 226, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .icon-circle {
    background: rgba(255, 255, 255, 0.08);
}

.icon-circle i {
    font-size: 1.5rem;
    color: var(--brand-sapphire);
}

body.dark-theme .icon-circle i {
    color: var(--brand-blue-circuit);
}

.icon-feature h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 7px;
}

body.dark-theme .icon-feature h3 {
    color: #fff;
}

.icon-feature p {
    max-width: 380px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

body.dark-theme .icon-feature p {
    color: #94a3b8;
}

/* ========================================
   SECTIONS IMAGE/TEXTE ALTERNÉES
======================================== */
.image-text-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-heading-gap);
    margin: 0 auto;
    align-items: center;
}

.image-side {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.dark-theme .image-side {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-side h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--hero-title);
    margin-bottom: 20px;
    line-height: 1.3;
}

.text-side p {
    font-size: 1.05rem;
    color: var(--hero-subtitle);
    line-height: 1.7;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--hero-subtitle);
}

.check-list i {
    color: var(--brand-sapphire);
    font-size: 1.3rem;
}

body.dark-theme .check-list i {
    color: var(--brand-blue-circuit);
}

/* ========================================
   SECTION PROCESSUS
======================================== */
.process-section {
    padding: var(--section-padding-y-compact) var(--layout-gutter);
    text-align: center;
    color: #000;
    margin: 0;
}

.section-details-opti {
    background: var(--background-box);
    color: white;
    border-radius: 16px;
    padding: 50px;
}

body.dark-theme .process-section-icon {
    background: rgba(255,255,255,0.15);
}

.process-section-icon i {
    font-size: 2.2rem;
    color: var(--brand-sapphire);
}

body.dark-theme .process-section-icon i {
    color: var(--brand-blue-circuit);
}

.process-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

body.dark-theme .process-section h2 {
    color: white;
}

.process-section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: var(--section-heading-gap);
}

body.dark-theme .process-section-subtitle {
    color: #94a3b8;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--section-grid-gap);
    max-width: 1200px;
    margin: 0 auto;
}

.process-feature {
    text-align: center;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

body.dark-theme .process-icon {
    background: rgba(255,255,255,0.12);
}

.process-icon i {
    font-size: 1.5rem;
    color: var(--brand-sapphire);
}

body.dark-theme .process-icon i {
    color: var(--brand-blue-circuit);
}

.process-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

body.dark-theme .process-feature h3 {
    color: white;
}

.process-feature p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

body.dark-theme .process-feature p {
    color: #94a3b8;
}

/* ========================================
   CATALOGUE D'INTERVENTIONS
======================================== */
.interventions-catalog-section {
    text-align: left;
}

.interventions-catalog {
    background: var(--background-box);
    border: 1px solid var(--section-border);
    border-radius: 18px;
    padding: clamp(30px, 4vw, 56px);
}

.interventions-catalog-heading {
    width: 100%;
    max-width: 1120px;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.interventions-catalog-heading h2 {
    color: var(--hero-title);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}

.interventions-catalog-heading p {
    color: var(--hero-subtitle);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

.intervention-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: flex-start;
    min-height: 100%;
    padding: clamp(20px, 2.4vw, 28px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--section-border);
    border-radius: 14px;
}

body.dark-theme .intervention-card {
    background: rgba(255, 255, 255, 0.03);
}

.intervention-card-featured {
    margin-bottom: var(--section-grid-gap);
    background:
        linear-gradient(135deg, rgba(30, 30, 226, 0.12), rgba(39, 153, 255, 0.06)),
        rgba(255, 255, 255, 0.86);
}

body.dark-theme .intervention-card-featured {
    background:
        linear-gradient(135deg, rgba(39, 153, 255, 0.13), rgba(30, 30, 226, 0.09)),
        rgba(255, 255, 255, 0.04);
}

.intervention-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--section-grid-gap);
}

.intervention-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(30, 30, 226, 0.1);
    color: var(--brand-sapphire);
}

body.dark-theme .intervention-card-icon {
    background: rgba(39, 153, 255, 0.16);
    color: var(--brand-blue-circuit);
}

.intervention-card-icon i {
    font-size: 1.4rem;
}

.intervention-card-content {
    min-width: 0;
}

.intervention-card-heading {
    margin-bottom: 12px;
}

.intervention-card-heading h3 {
    color: var(--hero-title);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.intervention-card p {
    color: var(--hero-subtitle);
    font-size: 0.96rem;
    line-height: 1.62;
    margin: 0;
}

/* ========================================
   PRICING SECTION
======================================== */
.pricing-section {
    padding: var(--section-padding-y) var(--layout-gutter);
    margin: 0;
}

.pricing-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.dark-theme .pricing-card {
    background: #1e1e1e;
}

.pricing-icon {
    width: 90px;
    height: 90px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

body.dark-theme .pricing-icon {
    background: #2a2a2a;
}

.pricing-icon i {
    font-size: 2.5rem;
    color: var(--brand-sapphire);
}

body.dark-theme .pricing-icon i {
    color: var(--brand-blue-circuit);
}

.pricing-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

body.dark-theme .pricing-card h2 {
    color: #fff;
}

.pricing-tagline {
    font-size: 1rem;
    color: #666;
    margin-bottom: 35px;
}

body.dark-theme .pricing-tagline {
    color: #94a3b8;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.price-big {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--brand-sapphire);
    line-height: 1;
    font-family: 'Chakra Petch', sans-serif;
}

body.dark-theme .price-big {
    color: var(--brand-blue-circuit);
}

.price-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
}

.price-ht {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
}

body.dark-theme .price-ht {
    color: #fff;
}

.price-per {
    font-size: 0.9rem;
    color: #666;
}

body.dark-theme .price-per {
    color: #94a3b8;
}

.pricing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    text-align: left;
    margin-bottom: 40px;
    padding: 0 20px;
}

.feature-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-check i {
    color: var(--brand-sapphire);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

body.dark-theme .feature-check i {
    color: var(--brand-blue-circuit);
}

.feature-check span {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

body.dark-theme .feature-check span {
    color: #cbd5e1;
}

/* ========================================
   TITRES ET UTILITAIRES
======================================== */
.section-intro {
    text-align: center;
    margin-bottom: var(--section-heading-gap);
}

.section-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--hero-title);
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.text-primary {
    color: var(--brand-sapphire);
}

body.dark-theme .text-primary {
    color: var(--brand-blue-circuit);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
    .image-text-content {
        grid-template-columns: 1fr;
        gap: var(--section-grid-gap);
    }

    /* Ordre image - texte pour toutes les sections sur mobile */
    .image-text-section .image-side {
        order: 1;
    }

    .image-text-section .text-side {
        order: 2;
    }

    .image-side {
        height: 350px;
    }

    .process-grid,
    .intervention-card-grid,
    .features-icons-section {
        grid-template-columns: 1fr;
    }

    .hero-opti {
        padding: clamp(52px, 8vw, 78px) 0 clamp(64px, 9vw, 88px);
    }

    .hero-opti-inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-opti-image {
        height: clamp(320px, 54vw, 460px);
        order: 2;
    }

    .hero-opti-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .sticky-price-bar {
        width: calc(100% - 20px);
        top: 85px;
        border-radius: 12px;
    }

    .sticky-price-content {
        padding: 10px 16px;
        gap: 12px;
    }

    .sticky-title {
        font-size: 0.8rem;
    }

    .sticky-price-right {
        gap: 12px;
    }

    .sticky-price {
        font-size: 0.85rem;
    }

    .btn-primary-opti.small {
        padding: 8px 16px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .pricing-section,
    .image-text-section,
    .process-section {
        padding: var(--section-padding-y-compact) var(--layout-gutter);
    }

    .section-intro {
        margin-bottom: 35px;
    }

    .section-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .interventions-catalog {
        padding: 24px;
        border-radius: 16px;
    }

    .intervention-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .intervention-card-icon {
        width: 44px;
        height: 44px;
    }

    .hero-opti {
        padding-top: 42px;
        padding-bottom: 58px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .features-icons-section {
        padding: 24px var(--layout-gutter);
        gap: 24px;
    }

    .icon-circle {
        width: 54px;
        height: 54px;
        margin-bottom: 10px;
    }

    .icon-circle i {
        font-size: 1.35rem;
    }

    .icon-feature h3 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .icon-feature p {
        font-size: 0.88rem;
    }

    .text-side h2 {
        font-size: 1.9rem;
        margin-bottom: 15px;
    }

    .text-side p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .check-list {
        margin-top: 20px;
    }

    .check-list li {
        margin-bottom: 12px;
        font-size: 0.95rem;
    }

    .check-list i {
        font-size: 1.15rem;
    }

    .image-side {
        height: 280px;
    }

    .process-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .process-icon i {
        font-size: 1.3rem;
    }

    .process-feature h3 {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .process-feature p {
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 35px 24px;
    }

    .pricing-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .pricing-icon i {
        font-size: 2rem;
    }

    .pricing-card h2 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .pricing-tagline {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .pricing-amount {
        margin-bottom: 30px;
    }

    .price-big {
        font-size: 3.2rem;
    }

    .pricing-features {
        grid-template-columns: 1fr;
        gap: 12px 30px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .feature-check {
        gap: 10px;
    }

    .feature-check i {
        font-size: 1.1rem;
    }

    .feature-check span {
        font-size: 0.9rem;
    }

}

@media (max-width: 576px) {
    .hero-opti {
        padding-top: 34px;
        padding-bottom: 46px;
    }

    .hero-opti-inner {
        gap: 28px;
    }

    .hero-opti-text h1 {
        font-size: clamp(1.65rem, 7vw, 2rem);
        margin-bottom: 18px;
    }

    .hero-description {
        font-size: 0.98rem;
        margin-bottom: 24px;
    }

    .hero-opti-actions {
        width: 100%;
        align-items: stretch;
    }

    .hero-opti-actions .btn-primary-opti {
        width: 100%;
    }

    .btn-primary-opti {
        padding: 14px 22px;
        font-size: 0.95rem;
    }

    .hero-opti-image {
        height: 220px;
        border-radius: 18px;
    }

    .pricing-section,
    .image-text-section,
    .process-section {
        padding: var(--section-padding-y-compact) var(--layout-gutter);
    }

    .section-intro {
        margin-bottom: 30px;
    }

    .section-intro h2 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .features-icons-section {
        padding: 22px var(--layout-gutter);
        gap: 22px;
    }

    .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 9px;
    }

    .icon-circle i {
        font-size: 1.25rem;
    }

    .icon-feature h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .icon-feature p {
        font-size: 0.84rem;
    }

    .image-side {
        height: 240px;
    }

    .text-side h2 {
        font-size: 1.65rem;
        margin-bottom: 12px;
    }

    .text-side p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .check-list {
        margin-top: 18px;
    }

    .check-list li {
        margin-bottom: 10px;
        font-size: 0.9rem;
        gap: 10px;
    }

    .check-list i {
        font-size: 1.05rem;
    }

    .process-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
    }

    .process-icon i {
        font-size: 1.2rem;
    }

    .process-feature h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .process-feature p {
        font-size: 0.85rem;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 18px;
    }

    .pricing-icon i {
        font-size: 1.8rem;
    }

    .pricing-card h2 {
        font-size: 1.55rem;
        margin-bottom: 10px;
    }

    .pricing-tagline {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .pricing-amount {
        margin-bottom: 25px;
    }

    .price-big {
        font-size: 2.8rem;
    }

    .price-ht {
        font-size: 0.95rem;
    }

    .price-per {
        font-size: 0.85rem;
    }

    .pricing-features {
        gap: 10px 25px;
        margin-bottom: 25px;
        padding: 0 5px;
    }

    .feature-check {
        gap: 8px;
    }

    .feature-check i {
        font-size: 1rem;
    }

    .feature-check span {
        font-size: 0.88rem;
    }

    .btn-primary-opti.large {
        padding: 15px 40px;
        font-size: 1rem;
    }

}
