.solution .content-row {
    display: flex;
    flex-direction: column;
    /* gap: 2rem; */
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 2% 0rem;
}

/* Logo image — takes up full height of the row */
.solution #logo_title {
    display:none;
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    padding-bottom: 1rem;
    align-self: flex-start;
}

/* Wrapper for text content — stacks title, sub_title, description horizontally */
.solution .text-column {
    display: flex;
    flex-direction: column;
    justify-content: top;
    gap: 3rem;
    flex: 1;
}

.solution #title_image {
    height: 100%;
    width: 50%;
    object-fit: contain;
    flex-shrink: 0;
    padding-top: 5%;
    padding-right: 10%;
    padding-bottom: 1%;
    margin-left: -5%; /* Pull image left to overlap text */
}

/* Title */
.solution .title {
    text-align: left;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: bolder;
    color: var(--text-blue-dark);
    display: flex;
    padding-left: 0rem;
    align-items: center;
}

/* Sub-title */
.solution .subtitle {
    text-align: left;
    padding-left: 0rem;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: bold;
    color: var(--blue-archi-light);
    display: flex;
    align-items: center;
}

/* Description */
.solution .description {
    font-size: clamp(1.1rem, 1.4vw, 2rem);
    padding-left: 0rem;
    color: var(--blue-archi-dark);
    text-align: left;
    display: flex;
    align-items: left;
    /* width: 80%; */
}

.solution #image_title {
    display: block;
  /* max-width:230px; */
  height: 20rem;;
 object-fit: cover;
 margin: auto auto;
} 

.solution .dark-blue {
    color: var(--blue-archi-dark);
}

.solution .description span {
    align-self: flex-start;
}

.solution .title-separator {
    border: none;
    border-top: 0px solid var(--blue-archi-light);
    margin: 0rem 20%;
    margin-top: 2rem;
}


.solution .rive-overlay-text {
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.25rem, 1.6vw, 2rem);
    font-weight: bold;
    color: var(--blue-archi-light);
}

.solution .rive-sticky {
    position: sticky;
    top: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F6FAFF;
    z-index: 1;
}

.solution #canvas-div {
    min-height: 100dvh;
    width: 100%;
    aspect-ratio: auto;
    max-height: 100dvh;
    max-width: 100%;
    background-color: #ffffff;
    height: 100dvh;
}

.solution #rive-canvas1 {
    width: 100%;
    height: 100%;
    display: block;
}

.solution #canvas-track {
    position: relative;
    top: 0;
    z-index: 1;
    overflow: visible;
}

.solution #en-savoir-plus {
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.solution #section-1 {
    /* height: 100vh; */
    min-height: 100vh;
    text-align: center;
    justify-content: top;
    /* gap: 10rem; */
    display: flex;
    flex-direction: row;
    align-items: stretch; /* All children get the same height */
    position: relative;
    margin: 0rem 0rem;
    padding: 5rem 5rem 0rem 5rem;
    /* padding-right: 2%; */

    background-color: var(--background-white);
    
}


.solution #section-2{
    position: relative;
    /* min-height: 100vh; */

    display: flex;
    flex-direction: column;

    justify-content: space-evenly;

    padding: 3rem 4rem;

    overflow: hidden;

    text-align: center;

    z-index: 2;
    background:
        radial-gradient(circle at top,
        rgb(0, 13, 63) 0%,
        rgb(0, 15, 77) 45%,
        rgb(0, 19, 97) 100%);
}


.solution #title-2{
    font-size:clamp(2.3rem,4vw,4rem);
    font-weight:600;
    letter-spacing:.5px;
    color: #4fa4ff;
}

.solution .subtitle-2{
    color: var(--background-anim);
    font-size:clamp(1rem,1.3vw,1.5rem);
    margin-bottom:2rem;
    margin-top: 2rem;
}

.solution .cards{

    flex:1;

    display:grid;
    grid-template-columns:repeat(3,1fr);

    align-items:stretch;

    gap:2rem;

    margin:2vh 0;
}

.solution .card{

    display:flex;
    flex-direction:column;

    align-items:center;

    padding:0 2rem;
}

.solution .card:not(:last-child){

    border-right:1px solid rgba(255,255,255,.15);
}

h2{
    text-align: left;
    margin-top:1rem;
    font-size:clamp(2rem,2.7vw,3.2rem);
    font-weight:500;
    color: #4fa4ff;
}

.solution .small-line{

    width:20%;
    height:3px;
    margin: 2rem 80% 2rem 0%;
    background:var(--blue-archi-light);
}

.solution .card p{
    text-align: left;
    color: rgb(169, 215, 245);
    font-size:clamp(1rem,1.1vw,1.4rem);
    margin:.3rem 0;
    line-height:1.4;
}



.solution #buttons {
    margin: 2rem 0rem;
    display:flex;
    justify-content: center;
}

.solution .btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:1rem;
    /* margin-top:1rem; */

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:10rem;
    height:3rem;

    font-size: clamp(0.9rem, 0.9vw, 1rem);

    color:var(--blue-archi-dark);
    text-decoration:none;

    border:2px solid var(--blue-archi-dark);

    border-radius:10px;


    transition:.3s;
}

.solution #btn1 {
    margin-right: 0.5rem;
    margin-left: 1rem;
}

.solution #btn2 {
    margin-right: 1rem;
    margin-left: 0.5rem;
    color: white;
    width:12rem;
    border:2px solid var(--blue-archi-light);
    background-color: var(--blue-archi-light);
}

.solution .btn:hover{
    cursor: pointer;
    background:var(--blue-archi-light);
    border:2px solid var(--blue-archi-light);
    color:white;
}

.solution #btn2:hover{
    cursor: pointer;
    background:var(--blue-archi-dark);
    border:2px solid var(--blue-archi-dark);
    color:white;
}



/* ============================= */
/* Desktop-only tightened layout */
/* ============================= */



@media (max-width: 1400px) {
    .solution #section-2 {

        overflow: hidden;
        display: flex;
        flex-direction: column;
    }


  

}

/* ============================= */
/* Tablet / small laptop         */
/* ============================= */
@media (max-width: 1024px) {
    .solution #section-1 {
        padding-top: 5rem;
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding-bottom: 2rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* Stack logo + text vertically instead of side-by-side */

    .solution #logo_title {
        display:flex;
        padding-bottom: 2rem;
        align-self: center;
    }

    .solution .text-column {
        gap: 1.8rem;
    }

    .solution .title {
        text-align: center;
        justify-content: center;        
    }

    .solution .title-separator {
        margin-right: 40%;
        margin-left: 40%;
    }

    .solution .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    .solution .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .solution #title_image{
        width: 40rem;
        max-height:30rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }
    .solution .description span {
        align-self: center;
    }
    .solution .rive-overlay-text {
        padding: 3rem 1rem 2rem 1rem;
    }
    .solution #section-2{
        padding: 3rem 1rem 1.5rem 1.5rem;
    }
    .solution #title-2 {
    }
    .solution .subtitle-2{
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    .solution .cards {
        gap: 0rem;
    }
    .solution .card {
        padding: 2rem 0rem 2rem 0rem; 
        margin: 0rem 10rem;
    }
    .solution .card:first-child {
        padding-top: 0rem; 
    }
    .solution .card:last-child {
        padding-bottom: 0rem; 
    }
    .solution .card:not(:last-child){
        border-right:0px solid rgba(255,255,255,.15);
        border-bottom:2px solid rgba(255,255,255,.15);
    }
    .solution .icon {
        width:3rem;
        height:3rem;
        margin-bottom:0rem;
    }
    .solution h2{
        margin-top: .1rem;
    }

    .solution .card p{
        margin:.1rem 0;
    }

    .solution .btn{
        margin-top:1.5rem;
    }
    .solution .cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .solution .columns {
        width: 100%;
    }

    .solution #col1{
        border-right: 0px solid var(--blue-archi-dark);
    }


}

/* ============================= */
/* Mobile (phones, landscape too)*/
/* ============================= */
@media (max-width: 768px) {
     
    .solution .text-column {
        gap: 1.8rem;
    }

    .solution #image_title {
            display: block;
        /* max-width:230px; */
        height: 10rem;;
        object-fit: cover;
        margin: auto auto;
    } 


    .solution #title_image{
        width: 20rem;
        max-height:15rem;
    }

    .solution .subtitle-2{
    }

    .solution .card {
        margin: 0rem 0rem;
    }
    
  


}

/* ============================= */
/* Small phones                  */
/* ============================= */
@media (max-width: 480px) {
   .solution #section-1 {
        padding-top: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }

    /* Stack logo + text vertically instead of side-by-side */

    .solution #logo_title {
        display:flex;
        max-height: 5rem;
        padding-bottom: 2rem;
        align-self: center;
    }

    .solution .text-column {
        gap: 1.8rem;
    }

    .solution .title {
        text-align: center;
        justify-content: center;
    }

    .solution .title-separator {
        border: none;
        border-top: 0px solid var(--blue-archi-light);
        margin-right: 40%;
        margin-left: 40%;

    }

    .solution .subtitle {
        text-align: center;
        justify-content: center;
    }

    /* Description no longer a narrow 27% column — full width under the title */
    .solution .description {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .solution #title_image{
        width: 20rem;
        max-height:15rem;
        align-self: center;
        padding-top: 2%;
        padding-right: 0%;
        margin: 0%
    }

    .solution .description span {
        align-self: center;
    }
    .solution #canvas-div {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
    }

    


    .solution .archi-img-wrap {
        height: 150px;
    }


    .solution .archi-step {

        width: 32px;
        height: 32px;
       
    }

    .solution #div-en-savoir-plus {
        padding-top: 1rem;
    }


    .solution #section-2{
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }

    .solution #title-2 {
    }

    .solution h2{
    }

   

}
